Browse Source

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

tags/n2.0
Clément Bœsch 12 years ago
parent
commit
b2d589188f
3 changed files with 2 additions and 4 deletions
  1. +1
    -1
      doc/filters.texi
  2. +1
    -0
      libavfilter/avfilter.c
  3. +0
    -3
      libavfilter/vf_histogram.c

+ 1
- 1
doc/filters.texi View File

@@ -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


+ 1
- 0
libavfilter/avfilter.c View File

@@ -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" ) ||


+ 0
- 3
libavfilter/vf_histogram.c View File

@@ -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,
};

Loading…
Cancel
Save