37 #define PIX_FMT_NAME_MAXSIZE 32
42 const char *cur, *sep;
48 for (cur = args; cur; cur = sep ? sep+1 :
NULL) {
49 if (!(sep = strchr(cur,
':')))
50 pix_fmt_name_len = strlen(cur);
52 pix_fmt_name_len = sep - cur;
58 memcpy(pix_fmt_name, cur, pix_fmt_name_len);
59 pix_fmt_name[pix_fmt_name_len] = 0;
81 for (pix_fmt = 0; pix_fmt <
PIX_FMT_NB; pix_fmt++)
88 #if CONFIG_FORMAT_FILTER
97 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
101 .query_formats = query_formats_format,
118 #if CONFIG_NOFORMAT_FILTER
127 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
131 .query_formats = query_formats_noformat,
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
int listed_pix_fmt_flags[PIX_FMT_NB]
List of flags telling if a given image format has been listed as argument to the filter.
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
void avfilter_null_end_frame(AVFilterLink *link)
end_frame() handler for filters which simply pass video along
A filter pad used for either input or output.
void avfilter_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
A helper for query_formats() which sets all links to the same list of formats.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
void av_log(void *avcl, int level, const char *fmt,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
void avfilter_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
start_frame() handler for filters which simply pass video along
const char * name
filter name
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
void avfilter_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
draw_slice() handler for filters which simply pass video along
enum PixelFormat av_get_pix_fmt(const char *name)
Return the pixel format corresponding to name.