1 /*
2 * Copyright (c) 2013 Georg Martius <georg dot martius at web dot de>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
22
23 /** convert AV's pixelformat to vid.stab pixelformat */
25 {
26 switch (pf) {
38 default:
40 return PF_NONE;
41 }
42 }
43
44 /** struct to hold a valid context for logging from within vid.stab lib */
48
49 /** wrapper to log vs_log into av_log */
51 {
52 va_list ap;
57 .option = 0,
60 };
62 va_start(ap, format);
63 av_vlog(&ctx, type, format, ap);
64 va_end(ap);
65 return VS_OK;
66 }
67
68 /** sets the memory allocation function and logging constants to av versions */
70 {
75
80
82
83 VS_ERROR = 0;
84 VS_OK = 1;
85 }