[FFmpeg-cvslog] lavfi/idet: switch to an AVOptions-based system.

Clément Bœsch git at videolan.org
Thu Apr 11 01:10:18 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 11 01:01:49 2013 +0200| [7668b6832d3c1fd5555be5f4cf6f8e9930dd9c4e] | committer: Clément Bœsch

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7668b6832d3c1fd5555be5f4cf6f8e9930dd9c4e
---

 doc/filters.texi       |    9 +++++++++
 libavfilter/avfilter.c |    1 +
 libavfilter/vf_idet.c  |    3 ---
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 001cd50..9668248 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:
+
+ at table @option
+ at item intl_thres
+Set interlacing threshold.
+ at item prog_thres
+Set progressive threshold.
+ at end table
+
 @section il
 
 Deinterleave or interleave fields.
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index e8f836a..8db477c 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 275302f..bef7f3e 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,
 };



More information about the ffmpeg-cvslog mailing list