mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavfi/noise: switch to an AVOptions-based system.
This commit is contained in:
parent
e4bd1db88e
commit
a689a6b698
@ -4070,8 +4070,7 @@ noformat=yuv420p|yuv444p|yuv410p
|
|||||||
|
|
||||||
Add noise on video input frame.
|
Add noise on video input frame.
|
||||||
|
|
||||||
This filter accepts a list of options in the form of @var{key}=@var{value}
|
The filter accepts the following options:
|
||||||
pairs separated by ":". A description of the accepted options follows.
|
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item all_seed
|
@item all_seed
|
||||||
|
@ -689,6 +689,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
|||||||
!strcmp(filter->filter->name, "mandelbrot" ) ||
|
!strcmp(filter->filter->name, "mandelbrot" ) ||
|
||||||
!strcmp(filter->filter->name, "mptestsrc" ) ||
|
!strcmp(filter->filter->name, "mptestsrc" ) ||
|
||||||
!strcmp(filter->filter->name, "negate" ) ||
|
!strcmp(filter->filter->name, "negate" ) ||
|
||||||
|
!strcmp(filter->filter->name, "noise" ) ||
|
||||||
!strcmp(filter->filter->name, "overlay" ) ||
|
!strcmp(filter->filter->name, "overlay" ) ||
|
||||||
!strcmp(filter->filter->name, "pad" ) ||
|
!strcmp(filter->filter->name, "pad" ) ||
|
||||||
!strcmp(filter->filter->name, "format") ||
|
!strcmp(filter->filter->name, "format") ||
|
||||||
|
@ -462,8 +462,6 @@ static const AVFilterPad noise_outputs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *const shorthand[] = { NULL };
|
|
||||||
|
|
||||||
AVFilter avfilter_vf_noise = {
|
AVFilter avfilter_vf_noise = {
|
||||||
.name = "noise",
|
.name = "noise",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Add noise."),
|
.description = NULL_IF_CONFIG_SMALL("Add noise."),
|
||||||
@ -474,5 +472,4 @@ AVFilter avfilter_vf_noise = {
|
|||||||
.inputs = noise_inputs,
|
.inputs = noise_inputs,
|
||||||
.outputs = noise_outputs,
|
.outputs = noise_outputs,
|
||||||
.priv_class = &noise_class,
|
.priv_class = &noise_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user