Commit 57148122 authored by Michael Niedermayer's avatar Michael Niedermayer

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

* mbouron/shorthand-cleanup:
  lavfi/aphaser: switch to AVOption-based system
  lavfi/apad: switch to AVOption-based system
  lavfi/afade: switch to AVOption-base system
  lavfi/blend: switch to AVOption-based system

Conflicts:
	libavfilter/avfilter.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ac217bda f43da3de
...@@ -610,9 +610,6 @@ Beware of clipping when using a positive gain. ...@@ -610,9 +610,6 @@ Beware of clipping when using a positive gain.
Apply fade-in/out effect to input audio. Apply fade-in/out effect to input audio.
The filter accepts parameters as a list of @var{key}=@var{value}
pairs, separated by ":".
A description of the accepted parameters follows. A description of the accepted parameters follows.
@table @option @table @option
...@@ -1904,8 +1901,7 @@ It takes two input streams and outputs one stream, the first input is the ...@@ -1904,8 +1901,7 @@ It takes two input streams and outputs one stream, the first input is the
"top" layer and second input is "bottom" layer. "top" layer and second input is "bottom" layer.
Output terminates when shortest input terminates. Output terminates when shortest input terminates.
This filter accepts a list of options in the form of @var{key}=@var{value} A description of the accepted options follows.
pairs separated by ":". A description of the accepted options follows.
@table @option @table @option
@item c0_mode @item c0_mode
...@@ -6347,9 +6343,6 @@ Add a phasing effect to the input audio. ...@@ -6347,9 +6343,6 @@ Add a phasing effect to the input audio.
A phaser filter creates series of peaks and troughs in the frequency spectrum. A phaser filter creates series of peaks and troughs in the frequency spectrum.
The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect. The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect.
The filter accepts parameters as a list of @var{key}=@var{value}
pairs, separated by ":".
A description of the accepted parameters follows. A description of the accepted parameters follows.
@table @option @table @option
......
...@@ -288,8 +288,6 @@ static const AVFilterPad avfilter_af_afade_outputs[] = { ...@@ -288,8 +288,6 @@ static const AVFilterPad avfilter_af_afade_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { NULL };
AVFilter avfilter_af_afade = { AVFilter avfilter_af_afade = {
.name = "afade", .name = "afade",
.description = NULL_IF_CONFIG_SMALL("Fade in/out input audio."), .description = NULL_IF_CONFIG_SMALL("Fade in/out input audio."),
...@@ -299,5 +297,4 @@ AVFilter avfilter_af_afade = { ...@@ -299,5 +297,4 @@ AVFilter avfilter_af_afade = {
.inputs = avfilter_af_afade_inputs, .inputs = avfilter_af_afade_inputs,
.outputs = avfilter_af_afade_outputs, .outputs = avfilter_af_afade_outputs,
.priv_class = &afade_class, .priv_class = &afade_class,
.shorthand = shorthand,
}; };
...@@ -144,8 +144,6 @@ static const AVFilterPad apad_outputs[] = { ...@@ -144,8 +144,6 @@ static const AVFilterPad apad_outputs[] = {
{ NULL }, { NULL },
}; };
static const char *const shorthand[] = { NULL };
AVFilter avfilter_af_apad = { AVFilter avfilter_af_apad = {
.name = "apad", .name = "apad",
.description = NULL_IF_CONFIG_SMALL("Pad audio with silence."), .description = NULL_IF_CONFIG_SMALL("Pad audio with silence."),
...@@ -154,5 +152,4 @@ AVFilter avfilter_af_apad = { ...@@ -154,5 +152,4 @@ AVFilter avfilter_af_apad = {
.inputs = apad_inputs, .inputs = apad_inputs,
.outputs = apad_outputs, .outputs = apad_outputs,
.priv_class = &apad_class, .priv_class = &apad_class,
.shorthand = shorthand,
}; };
...@@ -344,8 +344,6 @@ static const AVFilterPad aphaser_outputs[] = { ...@@ -344,8 +344,6 @@ static const AVFilterPad aphaser_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { "in_gain", "out_gain", "delay", "decay", "speed", "type", NULL };
AVFilter avfilter_af_aphaser = { AVFilter avfilter_af_aphaser = {
.name = "aphaser", .name = "aphaser",
.description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."), .description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."),
...@@ -356,5 +354,4 @@ AVFilter avfilter_af_aphaser = { ...@@ -356,5 +354,4 @@ AVFilter avfilter_af_aphaser = {
.inputs = aphaser_inputs, .inputs = aphaser_inputs,
.outputs = aphaser_outputs, .outputs = aphaser_outputs,
.priv_class = &aphaser_class, .priv_class = &aphaser_class,
.shorthand = shorthand,
}; };
...@@ -656,11 +656,15 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque ...@@ -656,11 +656,15 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
AVDictionaryEntry *e; AVDictionaryEntry *e;
int ret=0; int ret=0;
int anton_options = int anton_options =
!strcmp(filter->filter->name, "afade" ) ||
!strcmp(filter->filter->name, "aformat") || !strcmp(filter->filter->name, "aformat") ||
!strcmp(filter->filter->name, "amix" ) || !strcmp(filter->filter->name, "amix" ) ||
!strcmp(filter->filter->name, "apad" ) ||
!strcmp(filter->filter->name, "aphaser" ) ||
!strcmp(filter->filter->name, "ass") || !strcmp(filter->filter->name, "ass") ||
!strcmp(filter->filter->name, "asyncts" ) || !strcmp(filter->filter->name, "asyncts" ) ||
!strcmp(filter->filter->name, "blackframe") || !strcmp(filter->filter->name, "blackframe") ||
!strcmp(filter->filter->name, "blend" ) ||
!strcmp(filter->filter->name, "boxblur" ) || !strcmp(filter->filter->name, "boxblur" ) ||
!strcmp(filter->filter->name, "cellauto") || !strcmp(filter->filter->name, "cellauto") ||
!strcmp(filter->filter->name, "colormatrix") || !strcmp(filter->filter->name, "colormatrix") ||
......
...@@ -453,8 +453,6 @@ static const AVFilterPad blend_outputs[] = { ...@@ -453,8 +453,6 @@ static const AVFilterPad blend_outputs[] = {
{ NULL } { NULL }
}; };
static const char *const shorthand[] = { NULL };
AVFilter avfilter_vf_blend = { AVFilter avfilter_vf_blend = {
.name = "blend", .name = "blend",
.description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."), .description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."),
...@@ -465,5 +463,4 @@ AVFilter avfilter_vf_blend = { ...@@ -465,5 +463,4 @@ AVFilter avfilter_vf_blend = {
.inputs = blend_inputs, .inputs = blend_inputs,
.outputs = blend_outputs, .outputs = blend_outputs,
.priv_class = &blend_class, .priv_class = &blend_class,
.shorthand = shorthand,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment