48 #define AV_PIX_FMT_NAME_MAXSIZE 32
53 const char *cur, *sep;
55 int pix_fmt_name_len,
ret;
62 for (cur = s->
pix_fmts; cur; cur = sep ? sep + 1 : NULL) {
63 if (!(sep = strchr(cur,
'|')))
64 pix_fmt_name_len = strlen(cur);
66 pix_fmt_name_len = sep - cur;
72 memcpy(pix_fmt_name, cur, pix_fmt_name_len);
73 pix_fmt_name[pix_fmt_name_len] = 0;
101 #define OFFSET(x) offsetof(FormatContext, x)
107 #if CONFIG_FORMAT_FILTER
114 #define format_options options
117 static const AVFilterPad avfilter_vf_format_inputs[] = {
126 static const AVFilterPad avfilter_vf_format_outputs[] = {
136 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
138 .query_formats = query_formats_format,
140 .priv_class = &format_class,
141 .
inputs = avfilter_vf_format_inputs,
142 .
outputs = avfilter_vf_format_outputs,
146 #if CONFIG_NOFORMAT_FILTER
153 #define noformat_options options
156 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
165 static const AVFilterPad avfilter_vf_noformat_outputs[] = {
175 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
177 .query_formats = query_formats_noformat,
179 .priv_class = &noformat_class,
180 .
inputs = avfilter_vf_noformat_inputs,
181 .
outputs = avfilter_vf_noformat_outputs,