Browse Source

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

tags/n2.0
Clément Bœsch 13 years ago
parent
commit
7668b6832d
3 changed files with 10 additions and 3 deletions
  1. +9
    -0
      doc/filters.texi
  2. +1
    -0
      libavfilter/avfilter.c
  3. +0
    -3
      libavfilter/vf_idet.c

+ 9
- 0
doc/filters.texi View File

@@ -3730,6 +3730,15 @@ Detect video interlacing type.
This filter tries to detect if the input is interlaced or progressive,
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

Deinterleave or interleave fields.


+ 1
- 0
libavfilter/avfilter.c View File

@@ -682,6 +682,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "histeq" ) ||
!strcmp(filter->filter->name, "histogram" ) ||
!strcmp(filter->filter->name, "hqdn3d" ) ||
!strcmp(filter->filter->name, "idet" ) ||
!strcmp(filter->filter->name, "ocv" ) ||
!strcmp(filter->filter->name, "life" ) ||
!strcmp(filter->filter->name, "lut" ) ||


+ 0
- 3
libavfilter/vf_idet.c View File

@@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = {
{ NULL }
};

static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL };

AVFilter avfilter_vf_idet = {
.name = "idet",
.description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
@@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = {
.inputs = idet_inputs,
.outputs = idet_outputs,
.priv_class = &idet_class,
.shorthand = shorthand,
};

Loading…
Cancel
Save