44 #define AV_PIX_FMT_NAME_MAXSIZE 32
49 const char *cur, *sep;
55 for (cur = args; cur; cur = sep ? sep+1 :
NULL) {
56 if (!(sep = strchr(cur,
':')))
57 pix_fmt_name_len = strlen(cur);
59 pix_fmt_name_len = sep - cur;
65 memcpy(pix_fmt_name, cur, pix_fmt_name_len);
66 pix_fmt_name[pix_fmt_name_len] = 0;
95 #if CONFIG_FORMAT_FILTER
102 static const AVFilterPad avfilter_vf_format_inputs[] = {
111 static const AVFilterPad avfilter_vf_format_outputs[] = {
121 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
125 .query_formats = query_formats_format,
129 .
inputs = avfilter_vf_format_inputs,
130 .
outputs = avfilter_vf_format_outputs,
134 #if CONFIG_NOFORMAT_FILTER
141 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
150 static const AVFilterPad avfilter_vf_noformat_outputs[] = {
160 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
164 .query_formats = query_formats_noformat,
168 .
inputs = avfilter_vf_noformat_inputs,
169 .
outputs = avfilter_vf_noformat_outputs,
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
int listed_pix_fmt_flags[AV_PIX_FMT_NB]
List of flags telling if a given image format has been listed as argument to the filter.
static const AVFilterPad outputs[]
memory handling functions
static enum AVSampleFormat formats[]
const char * name
Pad name.
A filter pad used for either input or output.
#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,...)
common internal API header
enum AVPixelFormat pix_fmt
static const AVFilterPad inputs[]
const char * name
filter name
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
enum AVPixelFormat av_get_pix_fmt(const char *name)
Return the pixel format corresponding to name.
AVFilterBufferRef * ff_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
AVPixelFormat
Pixel format.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...