diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-11 00:40:33 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-11 01:04:44 +0200 |
commit | e4bd1db88ec05ad389dd4443461ef50a6007b808 (patch) | |
tree | 53158e85dc78ed768676d12a112db9ce63e3b5ef | |
parent | c2696dabbbc6674e31b16d4e06b81e647e907d11 (diff) | |
download | ffmpeg-e4bd1db88ec05ad389dd4443461ef50a6007b808.tar.gz |
lavfi/histeq: switch to an AVOptions-based system.
-rw-r--r-- | doc/filters.texi | 7 | ||||
-rw-r--r-- | libavfilter/avfilter.c | 1 | ||||
-rw-r--r-- | libavfilter/vf_histeq.c | 3 |
3 files changed, 2 insertions, 9 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 72bfce66ff..490bbb817b 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3445,12 +3445,7 @@ viewed as an "automatically adjusting contrast filter". This filter is useful only for correcting degraded or poorly captured source video. -The filter accepts parameters as a list of @var{key}=@var{value} -pairs, separated by ":". If the key of the first options is omitted, -the arguments are interpreted according to syntax -@var{strength}:@var{intensity}:@var{antibanding}. - -This filter accepts the following named options: +The filter accepts the following options: @table @option @item strength diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 036949d467..23da5292c5 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -679,6 +679,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque !strcmp(filter->filter->name, "frei0r_src") || !strcmp(filter->filter->name, "geq" ) || !strcmp(filter->filter->name, "gradfun" ) || + !strcmp(filter->filter->name, "histeq" ) || !strcmp(filter->filter->name, "hqdn3d" ) || !strcmp(filter->filter->name, "ocv" ) || !strcmp(filter->filter->name, "life" ) || diff --git a/libavfilter/vf_histeq.c b/libavfilter/vf_histeq.c index 05e1d59a66..f4d7795cbd 100644 --- a/libavfilter/vf_histeq.c +++ b/libavfilter/vf_histeq.c @@ -269,8 +269,6 @@ static const AVFilterPad histeq_outputs[] = { { NULL } }; -static const char *const shorthand[] = { "strength", "intensity", "antibanding", NULL }; - AVFilter avfilter_vf_histeq = { .name = "histeq", .description = NULL_IF_CONFIG_SMALL("Apply global color histogram equalization."), @@ -281,5 +279,4 @@ AVFilter avfilter_vf_histeq = { .inputs = histeq_inputs, .outputs = histeq_outputs, .priv_class = &histeq_class, - .shorthand = shorthand, }; |