Commit 7668b683 authored by Clément Bœsch's avatar Clément Bœsch

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

parent b2d58918
...@@ -3730,6 +3730,15 @@ Detect video interlacing type. ...@@ -3730,6 +3730,15 @@ Detect video interlacing type.
This filter tries to detect if the input is interlaced or progressive, This filter tries to detect if the input is interlaced or progressive,
top or bottom field first. top or bottom field first.
The filter accepts the following options:
@table @option
@item intl_thres
Set interlacing threshold.
@item prog_thres
Set progressive threshold.
@end table
@section il @section il
Deinterleave or interleave fields. Deinterleave or interleave fields.
......
...@@ -682,6 +682,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -682,6 +682,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "histeq" ) || !strcmp(filter->filter->name, "histeq" ) ||
!strcmp(filter->filter->name, "histogram" ) || !strcmp(filter->filter->name, "histogram" ) ||
!strcmp(filter->filter->name, "hqdn3d" ) || !strcmp(filter->filter->name, "hqdn3d" ) ||
!strcmp(filter->filter->name, "idet" ) ||
!strcmp(filter->filter->name, "ocv" ) || !strcmp(filter->filter->name, "ocv" ) ||
!strcmp(filter->filter->name, "life" ) || !strcmp(filter->filter->name, "life" ) ||
!strcmp(filter->filter->name, "lut" ) || !strcmp(filter->filter->name, "lut" ) ||
......
...@@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = { ...@@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL };
AVFilter avfilter_vf_idet = { AVFilter avfilter_vf_idet = {
.name = "idet", .name = "idet",
.description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."), .description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
...@@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = { ...@@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = {
.inputs = idet_inputs, .inputs = idet_inputs,
.outputs = idet_outputs, .outputs = idet_outputs,
.priv_class = &idet_class, .priv_class = &idet_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