summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-11 00:57:35 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-11 01:04:45 +0200
commitb2d589188f36cc69ffb8148810dc706d82dcebf6 (patch)
tree8adcddbb4fa273dbf2656894c630847dfdfff675
parentd5226fc575781a8066a92f1b635d82b68e4bc9df (diff)
lavfi/histogram: switch to an AVOptions-based system.
-rw-r--r--doc/filters.texi2
-rw-r--r--libavfilter/avfilter.c1
-rw-r--r--libavfilter/vf_histogram.c3
3 files changed, 2 insertions, 4 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 8616be76d0..001cd50a2e 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3474,7 +3474,7 @@ Compute and draw a color distribution histogram for the input video.
The computed histogram is a representation of distribution of color components
in an image.
-The filter accepts the following named parameters:
+The filter accepts the following options:
@table @option
@item mode
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index e6d7f05301..e8f836a9a6 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -680,6 +680,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "geq" ) ||
!strcmp(filter->filter->name, "gradfun" ) ||
!strcmp(filter->filter->name, "histeq" ) ||
+ !strcmp(filter->filter->name, "histogram" ) ||
!strcmp(filter->filter->name, "hqdn3d" ) ||
!strcmp(filter->filter->name, "ocv" ) ||
!strcmp(filter->filter->name, "life" ) ||
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index b9cba6be1a..3c348858a6 100644
--- a/libavfilter/vf_histogram.c
+++ b/libavfilter/vf_histogram.c
@@ -311,8 +311,6 @@ static const AVFilterPad outputs[] = {
{ NULL }
};
-static const char *const shorthand[] = { NULL };
-
AVFilter avfilter_vf_histogram = {
.name = "histogram",
.description = NULL_IF_CONFIG_SMALL("Compute and draw a histogram."),
@@ -321,5 +319,4 @@ AVFilter avfilter_vf_histogram = {
.inputs = inputs,
.outputs = outputs,
.priv_class = &histogram_class,
- .shorthand = shorthand,
};