Merge remote-tracking branch 'ubitux/shorthand-cleanup'

* ubitux/shorthand-cleanup:
  lavfi/idet: switch to an AVOptions-based system.
  lavfi/histogram: switch to an AVOptions-based system.
  lavfi/stereo3d: switch to an AVOptions-based system.
  lavfi/noise: switch to an AVOptions-based system.
  lavfi/histeq: switch to an AVOptions-based system.

Conflicts:
	libavfilter/avfilter.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/21/head
Michael Niedermayer 12 years ago
commit 8ac7090c23
  1. 24
      doc/filters.texi
  2. 5
      libavfilter/avfilter.c
  3. 3
      libavfilter/vf_histeq.c
  4. 3
      libavfilter/vf_histogram.c
  5. 3
      libavfilter/vf_idet.c
  6. 3
      libavfilter/vf_noise.c
  7. 3
      libavfilter/vf_stereo3d.c

@ -3445,12 +3445,7 @@ viewed as an "automatically adjusting contrast filter". This filter is
useful only for correcting degraded or poorly captured source useful only for correcting degraded or poorly captured source
video. video.
The filter accepts parameters as a list of @var{key}=@var{value} The filter accepts the following options:
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:
@table @option @table @option
@item strength @item strength
@ -3479,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
@ -3735,6 +3730,15 @@ Detect video interlacing type.
This filter tries to detect if the input is interlaced or progressive, This filter tries to detect if the input is interlaced or progressive,
top or bottom field first. top or bottom field first.
The filter accepts the following options:
@table @option
@item intl_thres
Set interlacing threshold.
@item prog_thres
Set progressive threshold.
@end table
@section il @section il
Deinterleave or interleave fields. Deinterleave or interleave fields.
@ -4069,8 +4073,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
@ -5181,8 +5184,7 @@ is set.
Convert between different stereoscopic image formats. Convert between different stereoscopic image formats.
This filter accepts the following named options, expressed as a The filters accept the following options:
sequence of @var{key}=@var{value} pairs, separated by ":".
@table @option @table @option
@item in @item in

@ -679,7 +679,10 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "frei0r_src") || !strcmp(filter->filter->name, "frei0r_src") ||
!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, "histogram" ) ||
!strcmp(filter->filter->name, "hqdn3d" ) || !strcmp(filter->filter->name, "hqdn3d" ) ||
!strcmp(filter->filter->name, "idet" ) ||
!strcmp(filter->filter->name, "il" ) || !strcmp(filter->filter->name, "il" ) ||
!strcmp(filter->filter->name, "kerndeint" ) || !strcmp(filter->filter->name, "kerndeint" ) ||
!strcmp(filter->filter->name, "ocv" ) || !strcmp(filter->filter->name, "ocv" ) ||
@ -690,6 +693,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") ||
@ -703,6 +707,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "showspectrum") || !strcmp(filter->filter->name, "showspectrum") ||
!strcmp(filter->filter->name, "silencedetect") || !strcmp(filter->filter->name, "silencedetect") ||
!strcmp(filter->filter->name, "smartblur") || !strcmp(filter->filter->name, "smartblur") ||
!strcmp(filter->filter->name, "stereo3d" ) ||
!strcmp(filter->filter->name, "subtitles") || !strcmp(filter->filter->name, "subtitles") ||
!strcmp(filter->filter->name, "thumbnail") || !strcmp(filter->filter->name, "thumbnail") ||
!strcmp(filter->filter->name, "transpose") || !strcmp(filter->filter->name, "transpose") ||

@ -269,8 +269,6 @@ static const AVFilterPad histeq_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "strength", "intensity", "antibanding", NULL };
AVFilter avfilter_vf_histeq = { AVFilter avfilter_vf_histeq = {
.name = "histeq", .name = "histeq",
.description = NULL_IF_CONFIG_SMALL("Apply global color histogram equalization."), .description = NULL_IF_CONFIG_SMALL("Apply global color histogram equalization."),
@ -281,5 +279,4 @@ AVFilter avfilter_vf_histeq = {
.inputs = histeq_inputs, .inputs = histeq_inputs,
.outputs = histeq_outputs, .outputs = histeq_outputs,
.priv_class = &histeq_class, .priv_class = &histeq_class,
.shorthand = shorthand,
}; };

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

@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL };
AVFilter avfilter_vf_idet = { AVFilter avfilter_vf_idet = {
.name = "idet", .name = "idet",
.description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."), .description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),
@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = {
.inputs = idet_inputs, .inputs = idet_inputs,
.outputs = idet_outputs, .outputs = idet_outputs,
.priv_class = &idet_class, .priv_class = &idet_class,
.shorthand = shorthand,
}; };

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

@ -440,8 +440,6 @@ static const AVFilterPad stereo3d_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "in", "out", NULL };
AVFilter avfilter_vf_stereo3d = { AVFilter avfilter_vf_stereo3d = {
.name = "stereo3d", .name = "stereo3d",
.description = NULL_IF_CONFIG_SMALL("Convert video stereoscopic 3D view."), .description = NULL_IF_CONFIG_SMALL("Convert video stereoscopic 3D view."),
@ -450,5 +448,4 @@ AVFilter avfilter_vf_stereo3d = {
.inputs = stereo3d_inputs, .inputs = stereo3d_inputs,
.outputs = stereo3d_outputs, .outputs = stereo3d_outputs,
.priv_class = &stereo3d_class, .priv_class = &stereo3d_class,
.shorthand = shorthand,
}; };

Loading…
Cancel
Save