lavfi/field: switch to AVOption-based system
authorStefano Sabatini <stefasab@gmail.com>
Wed, 10 Apr 2013 22:14:06 +0000 (00:14 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 10 Apr 2013 22:16:25 +0000 (00:16 +0200)
Also remove mention to syntax explanation which is or will be redundant
and possibly confusing.

doc/filters.texi
libavfilter/avfilter.c
libavfilter/vf_field.c

index 251bcb5bc7047f92cc7c33e3ac60a86482dc803e..b2d375df5aabce9c3e95f0799e26a5c2c1f88619 100644 (file)
@@ -3112,17 +3112,6 @@ Specify whether to extract the top (if the value is @code{0} or
 @code{bottom}).
 @end table
 
-If the option key is not specified, the first value sets the @var{type}
-option. For example:
-@example
-field=bottom
-@end example
-
-is equivalent to:
-@example
-field=type=bottom
-@end example
-
 @section fieldorder
 
 Transform the field order of the input video.
index 71d5e9cc4ee96db01171baff6cd30366dde0adf2..753567fe817f4145c447e3f8048d614bb8f895d6 100644 (file)
@@ -670,6 +670,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
         !strcmp(filter->filter->name,  "ebur128"   ) ||
         !strcmp(filter->filter->name,  "edgedetect") ||
         !strcmp(filter->filter->name,  "fade"      ) ||
+        !strcmp(filter->filter->name,  "field"     ) ||
         !strcmp(filter->filter->name,  "fieldorder") ||
         !strcmp(filter->filter->name,  "fps"       ) ||
         !strcmp(filter->filter->name,  "frei0r"    ) ||
index eb8680df9ea561ca7aa4a2cae8bfa693cee06bfa..c113512b74ca10e17bc947e1dcf1cd18602b6505 100644 (file)
@@ -117,5 +117,4 @@ AVFilter avfilter_vf_field = {
     .inputs        = field_inputs,
     .outputs       = field_outputs,
     .priv_class    = &field_class,
-    .shorthand     = shorthand,
 };