History

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

Clément Bœsch committed 13 years ago

Commit 7668b681 parent b2d58913 files · +10 −3Browse files

Unified · Split

3 files
  1. doc/filters.texi +9 −0
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vf_idet.c +0 −3
doc/filters.texi+9−0
@@ -3730,6 +3730,15 @@ Detect video interlacing type. · 3729 unmodified lines
37303730 This filter tries to detect if the input is interlaced or progressive,
37313731 top or bottom field first.
37323732
3733+The filter accepts the following options:
3734+
3735+@table @option
3736+@item intl_thres
3737+Set interlacing threshold.
3738+@item prog_thres
3739+Set progressive threshold.
3740+@end table
3741+
37333742 @section il
37343743
37353744 Deinterleave or interleave fields.
libavfilter/avfilter.c+1−0
@@ -682,6 +682,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 681 unmodified lines
682682 !strcmp(filter->filter->name, "histeq" ) ||
683683 !strcmp(filter->filter->name, "histogram" ) ||
684684 !strcmp(filter->filter->name, "hqdn3d" ) ||
685+ !strcmp(filter->filter->name, "idet" ) ||
685686 !strcmp(filter->filter->name, "ocv" ) ||
686687 !strcmp(filter->filter->name, "life" ) ||
687688 !strcmp(filter->filter->name, "lut" ) ||
libavfilter/vf_idet.c+0−3
@@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = { · 303 unmodified lines
304304 { NULL }
305305 };
306306
307−static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL };
308−
309307 AVFilter avfilter_vf_idet = {
310308 .name = "idet",
311309 .description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
@@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = { · 5 unmodified lines
317315 .inputs = idet_inputs,
318316 .outputs = idet_outputs,
319317 .priv_class = &idet_class,
320− .shorthand = shorthand,
321318 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t