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

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


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 11 00:54:27 2013 +0200| [d5226fc575781a8066a92f1b635d82b68e4bc9df] | committer: Clément Bœsch

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

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

 doc/filters.texi          |    3 +--
 libavfilter/avfilter.c    |    1 +
 libavfilter/vf_stereo3d.c |    3 ---
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index e25a49a..8616be7 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -5181,8 +5181,7 @@ is set.
 
 Convert between different stereoscopic image formats.
 
-This filter accepts the following named options, expressed as a
-sequence of @var{key}=@var{value} pairs, separated by ":".
+The filters accept the following options:
 
 @table @option
 @item in
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 5dff27a..e6d7f05 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -703,6 +703,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
         !strcmp(filter->filter->name, "showspectrum") ||
         !strcmp(filter->filter->name, "silencedetect") ||
         !strcmp(filter->filter->name, "smartblur") ||
+        !strcmp(filter->filter->name, "stereo3d" ) ||
         !strcmp(filter->filter->name, "subtitles") ||
         !strcmp(filter->filter->name, "thumbnail") ||
         !strcmp(filter->filter->name, "transpose") ||
diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c
index 156470f..c7f39e6 100644
--- a/libavfilter/vf_stereo3d.c
+++ b/libavfilter/vf_stereo3d.c
@@ -440,8 +440,6 @@ static const AVFilterPad stereo3d_outputs[] = {
     { NULL }
 };
 
-static const char *const shorthand[] = { "in", "out", NULL };
-
 AVFilter avfilter_vf_stereo3d = {
     .name          = "stereo3d",
     .description   = NULL_IF_CONFIG_SMALL("Convert video stereoscopic 3D view."),
@@ -450,5 +448,4 @@ AVFilter avfilter_vf_stereo3d = {
     .inputs        = stereo3d_inputs,
     .outputs       = stereo3d_outputs,
     .priv_class    = &stereo3d_class,
-    .shorthand     = shorthand,
 };



More information about the ffmpeg-cvslog mailing list