Commit 77add967 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/setfield: switch to an AVOptions-based system.

parent 73c1a00e
...@@ -5057,9 +5057,12 @@ output frames. It does not change the input frame, but only sets the ...@@ -5057,9 +5057,12 @@ output frames. It does not change the input frame, but only sets the
corresponding property, which affects how the frame is treated by corresponding property, which affects how the frame is treated by
following filters (e.g. @code{fieldorder} or @code{yadif}). following filters (e.g. @code{fieldorder} or @code{yadif}).
This filter accepts a single option @option{mode}, which can be The filter accepts the following options:
specified either by setting @code{mode=VALUE} or setting the value
alone. Available values are: @table @option
@item mode
Available values are:
@table @samp @table @samp
@item auto @item auto
...@@ -5074,6 +5077,7 @@ Mark the frame as top-field-first. ...@@ -5074,6 +5077,7 @@ Mark the frame as top-field-first.
@item prog @item prog
Mark the frame as progressive. Mark the frame as progressive.
@end table @end table
@end table
@section showinfo @section showinfo
......
...@@ -751,6 +751,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -751,6 +751,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "setpts" ) || !strcmp(filter->filter->name, "setpts" ) ||
!strcmp(filter->filter->name, "settb" ) || !strcmp(filter->filter->name, "settb" ) ||
!strcmp(filter->filter->name, "asettb" ) || !strcmp(filter->filter->name, "asettb" ) ||
!strcmp(filter->filter->name, "setfield") ||
!strcmp(filter->filter->name, "showspectrum") || !strcmp(filter->filter->name, "showspectrum") ||
!strcmp(filter->filter->name, "silencedetect") || !strcmp(filter->filter->name, "silencedetect") ||
!strcmp(filter->filter->name, "sine" ) || !strcmp(filter->filter->name, "sine" ) ||
......
...@@ -85,8 +85,6 @@ static const AVFilterPad setfield_outputs[] = { ...@@ -85,8 +85,6 @@ static const AVFilterPad setfield_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "mode", NULL };
AVFilter avfilter_vf_setfield = { AVFilter avfilter_vf_setfield = {
.name = "setfield", .name = "setfield",
.description = NULL_IF_CONFIG_SMALL("Force field for the output video frame."), .description = NULL_IF_CONFIG_SMALL("Force field for the output video frame."),
...@@ -94,5 +92,4 @@ AVFilter avfilter_vf_setfield = { ...@@ -94,5 +92,4 @@ AVFilter avfilter_vf_setfield = {
.inputs = setfield_inputs, .inputs = setfield_inputs,
.outputs = setfield_outputs, .outputs = setfield_outputs,
.priv_class = &setfield_class, .priv_class = &setfield_class,
.shorthand = shorthand,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment