45 #define AV_PIX_FMT_NAME_MAXSIZE 32
50 const char *cur, *sep;
52 int pix_fmt_name_len, ret;
56 for (cur = args; cur; cur = sep ? sep+1 :
NULL) {
57 if (!(sep = strchr(cur,
':')))
58 pix_fmt_name_len = strlen(cur);
60 pix_fmt_name_len = sep - cur;
66 memcpy(pix_fmt_name, cur, pix_fmt_name_len);
67 pix_fmt_name[pix_fmt_name_len] = 0;
93 #if CONFIG_FORMAT_FILTER
100 static const AVFilterPad avfilter_vf_format_inputs[] = {
109 static const AVFilterPad avfilter_vf_format_outputs[] = {
119 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
123 .query_formats = query_formats_format,
127 .
inputs = avfilter_vf_format_inputs,
128 .
outputs = avfilter_vf_format_outputs,
132 #if CONFIG_NOFORMAT_FILTER
139 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
148 static const AVFilterPad avfilter_vf_noformat_outputs[] = {
158 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
162 .query_formats = query_formats_noformat,
166 .
inputs = avfilter_vf_noformat_inputs,
167 .
outputs = avfilter_vf_noformat_outputs,