mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/histogram: switch to an AVOptions-based system.
This commit is contained in:
parent
d5226fc575
commit
b2d589188f
|
@ -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
|
The computed histogram is a representation of distribution of color components
|
||||||
in an image.
|
in an image.
|
||||||
|
|
||||||
The filter accepts the following named parameters:
|
The filter accepts the following options:
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item mode
|
@item mode
|
||||||
|
|
|
@ -680,6 +680,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
||||||
!strcmp(filter->filter->name, "geq" ) ||
|
!strcmp(filter->filter->name, "geq" ) ||
|
||||||
!strcmp(filter->filter->name, "gradfun" ) ||
|
!strcmp(filter->filter->name, "gradfun" ) ||
|
||||||
!strcmp(filter->filter->name, "histeq" ) ||
|
!strcmp(filter->filter->name, "histeq" ) ||
|
||||||
|
!strcmp(filter->filter->name, "histogram" ) ||
|
||||||
!strcmp(filter->filter->name, "hqdn3d" ) ||
|
!strcmp(filter->filter->name, "hqdn3d" ) ||
|
||||||
!strcmp(filter->filter->name, "ocv" ) ||
|
!strcmp(filter->filter->name, "ocv" ) ||
|
||||||
!strcmp(filter->filter->name, "life" ) ||
|
!strcmp(filter->filter->name, "life" ) ||
|
||||||
|
|
|
@ -311,8 +311,6 @@ static const AVFilterPad outputs[] = {
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *const shorthand[] = { NULL };
|
|
||||||
|
|
||||||
AVFilter avfilter_vf_histogram = {
|
AVFilter avfilter_vf_histogram = {
|
||||||
.name = "histogram",
|
.name = "histogram",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Compute and draw a histogram."),
|
.description = NULL_IF_CONFIG_SMALL("Compute and draw a histogram."),
|
||||||
|
@ -321,5 +319,4 @@ AVFilter avfilter_vf_histogram = {
|
||||||
.inputs = inputs,
|
.inputs = inputs,
|
||||||
.outputs = outputs,
|
.outputs = outputs,
|
||||||
.priv_class = &histogram_class,
|
.priv_class = &histogram_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue