diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-11 01:01:49 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-11 01:04:45 +0200 |
commit | 7668b6832d3c1fd5555be5f4cf6f8e9930dd9c4e (patch) | |
tree | 685eb30193d2d5386d968c00487ee569d07c256c | |
parent | b2d589188f36cc69ffb8148810dc706d82dcebf6 (diff) | |
download | ffmpeg-7668b6832d3c1fd5555be5f4cf6f8e9930dd9c4e.tar.gz |
lavfi/idet: switch to an AVOptions-based system.
-rw-r--r-- | doc/filters.texi | 9 | ||||
-rw-r--r-- | libavfilter/avfilter.c | 1 | ||||
-rw-r--r-- | libavfilter/vf_idet.c | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 001cd50a2e..96682486ce 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -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. diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e8f836a9a6..8db477cc58 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -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" ) || diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 275302f16c..bef7f3ee3d 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -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, }; |