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 }
static const char * format[]
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AV_LOG_WARNING
Something somehow does not look correct.
#define LIBAVUTIL_VERSION_INT
packed RGB 8:8:8, 24bpp, RGBRGB...
const char * av_default_item_name(void *ptr)
Return the context name.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
static int vs2av_log(int type, const char *tag, const char *format,...)
wrapper to log vs_log into av_log
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_LOG_VERBOSE
Detailed information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
packed RGB 8:8:8, 24bpp, BGRBGR...
#define AV_LOG_INFO
Standard information.
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Describe the class of an AVClass context structure.
void av_vlog(void *avcl, int level, const char *fmt, va_list vl)
Send the specified message to the log if the level is less than or equal to the current av_log_level...
struct to hold a valid context for logging from within vid.stab lib
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf)
convert AV's pixelformat to vid.stab pixelformat
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
void ff_vs_init(void)
sets the memory allocation function and logging constants to av versions
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
AVPixelFormat
Pixel format.