68 while ((cur = strchr(cur,
'|'))) {
80 for (i = 0; i < nb_formats; i++) {
81 sep = strchr(cur,
'|');
95 int nb_formats_lavu = 0, nb_formats_allowed = 0;
101 formats_allowed =
av_malloc_array(nb_formats_lavu + 1,
sizeof(*formats_allowed));
102 if (!formats_allowed)
110 for (i = 0; i < nb_formats; i++) {
117 formats_allowed[nb_formats_allowed++] =
pix_fmt;
140 #define OFFSET(x) offsetof(FormatContext, x)
146 #if CONFIG_FORMAT_FILTER
148 #define format_options options
151 static const AVFilterPad avfilter_vf_format_inputs[] = {
160 static const AVFilterPad avfilter_vf_format_outputs[] = {
170 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
178 .priv_class = &format_class,
180 .
inputs = avfilter_vf_format_inputs,
181 .
outputs = avfilter_vf_format_outputs,
185 #if CONFIG_NOFORMAT_FILTER
187 #define noformat_options options
190 static const AVFilterPad avfilter_vf_noformat_inputs[] = {
199 static const AVFilterPad avfilter_vf_noformat_outputs[] = {
209 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
217 .priv_class = &noformat_class,
219 .
inputs = avfilter_vf_noformat_inputs,
220 .
outputs = avfilter_vf_noformat_outputs,