70 while ((cur = strchr(cur,
'|'))) {
82 for (i = 0; i < nb_formats; i++) {
83 sep = strchr(cur,
'|');
97 int nb_formats_lavu = 0, nb_formats_allowed = 0;
103 formats_allowed =
av_malloc_array(nb_formats_lavu + 1,
sizeof(*formats_allowed));
104 if (!formats_allowed)
112 for (i = 0; i < nb_formats; i++) {
119 formats_allowed[nb_formats_allowed++] =
pix_fmt;
142 #define OFFSET(x) offsetof(FormatContext, x)
148 #if CONFIG_FORMAT_FILTER
150 #define format_options options
153 static const AVFilterPad avfilter_vf_format_inputs[] = {
162 static const AVFilterPad avfilter_vf_format_outputs[] = {
172 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
180 .priv_class = &format_class,
182 .
inputs = avfilter_vf_format_inputs,
183 .
outputs = avfilter_vf_format_outputs,
187 #if CONFIG_NOFORMAT_FILTER
189 #define noformat_options options
192 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
201 static const AVFilterPad avfilter_vf_noformat_outputs[] = {
211 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
219 .priv_class = &noformat_class,
221 .
inputs = avfilter_vf_noformat_inputs,
222 .
outputs = avfilter_vf_noformat_outputs,