Skip to content

Commit

Permalink
avfilter: Constify all AVFilters
Browse files Browse the repository at this point in the history
This is possible now that the next-API is gone.

Signed-off-by: Andreas Rheinhardt <[email protected]>
Signed-off-by: James Almer <[email protected]>
  • Loading branch information
mkver authored and jamrial committed Apr 27, 2021
1 parent 85ba17f commit a04ad24
Show file tree
Hide file tree
Showing 388 changed files with 967 additions and 967 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3899,7 +3899,7 @@ find_things_extern(){

find_filters_extern(){
file=$source_path/$1
sed -n 's/^extern AVFilter ff_[avfsinkrc]\{2,5\}_\([[:alnum:]_]\{1,\}\);/\1_filter/p' $file
sed -n 's/^extern const AVFilter ff_[avfsinkrc]\{2,5\}_\([[:alnum:]_]\{1,\}\);/\1_filter/p' $file
}

FILTER_LIST=$(find_filters_extern libavfilter/allfilters.c)
Expand Down Expand Up @@ -7636,7 +7636,7 @@ cp_if_changed $TMPH libavutil/avconfig.h
# full_filter_name_foo=vf_foo
# full_filter_name_bar=asrc_bar
# ...
eval "$(sed -n "s/^extern AVFilter ff_\([avfsinkrc]\{2,5\}\)_\(.*\);/full_filter_name_\2=\1_\2/p" $source_path/libavfilter/allfilters.c)"
eval "$(sed -n "s/^extern const AVFilter ff_\([avfsinkrc]\{2,5\}\)_\(.*\);/full_filter_name_\2=\1_\2/p" $source_path/libavfilter/allfilters.c)"

# generate the lists of enabled components
print_enabled_components(){
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/aeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static const AVFilterPad aevalsrc_outputs[] = {
{ NULL }
};

AVFilter ff_asrc_aevalsrc = {
const AVFilter ff_asrc_aevalsrc = {
.name = "aevalsrc",
.description = NULL_IF_CONFIG_SMALL("Generate an audio signal generated by an expression."),
.query_formats = query_formats,
Expand Down Expand Up @@ -473,7 +473,7 @@ static const AVFilterPad aeval_outputs[] = {
{ NULL }
};

AVFilter ff_af_aeval = {
const AVFilter ff_af_aeval = {
.name = "aeval",
.description = NULL_IF_CONFIG_SMALL("Filter audio signal according to a specified expression."),
.query_formats = aeval_query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_acontrast.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_acontrast = {
const AVFilter ff_af_acontrast = {
.name = "acontrast",
.description = NULL_IF_CONFIG_SMALL("Simple audio dynamic range compression/expansion filter."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_acopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static const AVFilterPad acopy_outputs[] = {
{ NULL }
};

AVFilter ff_af_acopy = {
const AVFilter ff_af_acopy = {
.name = "acopy",
.description = NULL_IF_CONFIG_SMALL("Copy the input audio unchanged to the output."),
.inputs = acopy_inputs,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_acrossover.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ static const AVFilterPad inputs[] = {
{ NULL }
};

AVFilter ff_af_acrossover = {
const AVFilter ff_af_acrossover = {
.name = "acrossover",
.description = NULL_IF_CONFIG_SMALL("Split audio into per-bands streams."),
.priv_size = sizeof(AudioCrossoverContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_acrusher.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static const AVFilterPad avfilter_af_acrusher_outputs[] = {
{ NULL }
};

AVFilter ff_af_acrusher = {
const AVFilter ff_af_acrusher = {
.name = "acrusher",
.description = NULL_IF_CONFIG_SMALL("Reduce audio bit resolution."),
.priv_size = sizeof(ACrusherContext),
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/af_adeclick.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_adeclick = {
const AVFilter ff_af_adeclick = {
.name = "adeclick",
.description = NULL_IF_CONFIG_SMALL("Remove impulsive noise from input audio."),
.query_formats = query_formats,
Expand Down Expand Up @@ -798,7 +798,7 @@ static const AVOption adeclip_options[] = {

AVFILTER_DEFINE_CLASS(adeclip);

AVFilter ff_af_adeclip = {
const AVFilter ff_af_adeclip = {
.name = "adeclip",
.description = NULL_IF_CONFIG_SMALL("Remove clipping from input audio."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_adelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static const AVFilterPad adelay_outputs[] = {
{ NULL }
};

AVFilter ff_af_adelay = {
const AVFilter ff_af_adelay = {
.name = "adelay",
.description = NULL_IF_CONFIG_SMALL("Delay one or more audio channels."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_adenorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static const AVOption adenorm_options[] = {

AVFILTER_DEFINE_CLASS(adenorm);

AVFilter ff_af_adenorm = {
const AVFilter ff_af_adenorm = {
.name = "adenorm",
.description = NULL_IF_CONFIG_SMALL("Remedy denormals by adding extremely low-level noise."),
.query_formats = query_formats,
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/af_aderivative.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static const AVFilterPad aderivative_outputs[] = {
{ NULL }
};

AVFilter ff_af_aderivative = {
const AVFilter ff_af_aderivative = {
.name = "aderivative",
.description = NULL_IF_CONFIG_SMALL("Compute derivative of input audio."),
.query_formats = query_formats,
Expand All @@ -196,7 +196,7 @@ AVFilter ff_af_aderivative = {
.outputs = aderivative_outputs,
};

AVFilter ff_af_aintegral = {
const AVFilter ff_af_aintegral = {
.name = "aintegral",
.description = NULL_IF_CONFIG_SMALL("Compute integral of input audio."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aecho.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static const AVFilterPad aecho_outputs[] = {
{ NULL }
};

AVFilter ff_af_aecho = {
const AVFilter ff_af_aecho = {
.name = "aecho",
.description = NULL_IF_CONFIG_SMALL("Add echoing to the audio."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aemphasis.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static const AVFilterPad avfilter_af_aemphasis_outputs[] = {
{ NULL }
};

AVFilter ff_af_aemphasis = {
const AVFilter ff_af_aemphasis = {
.name = "aemphasis",
.description = NULL_IF_CONFIG_SMALL("Audio emphasis."),
.priv_size = sizeof(AudioEmphasisContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aexciter.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static const AVFilterPad avfilter_af_aexciter_outputs[] = {
{ NULL }
};

AVFilter ff_af_aexciter = {
const AVFilter ff_af_aexciter = {
.name = "aexciter",
.description = NULL_IF_CONFIG_SMALL("Enhance high frequency part of audio."),
.priv_size = sizeof(AExciterContext),
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/af_afade.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static const AVFilterPad avfilter_af_afade_outputs[] = {
{ NULL }
};

AVFilter ff_af_afade = {
const AVFilter ff_af_afade = {
.name = "afade",
.description = NULL_IF_CONFIG_SMALL("Fade in/out input audio."),
.query_formats = query_formats,
Expand Down Expand Up @@ -653,7 +653,7 @@ static const AVFilterPad avfilter_af_acrossfade_outputs[] = {
{ NULL }
};

AVFilter ff_af_acrossfade = {
const AVFilter ff_af_acrossfade = {
.name = "acrossfade",
.description = NULL_IF_CONFIG_SMALL("Cross fade two input audio streams."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_afftdn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_afftdn = {
const AVFilter ff_af_afftdn = {
.name = "afftdn",
.description = NULL_IF_CONFIG_SMALL("Denoise audio samples using FFT."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_afftfilt.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_afftfilt = {
const AVFilter ff_af_afftfilt = {
.name = "afftfilt",
.description = NULL_IF_CONFIG_SMALL("Apply arbitrary expressions to samples in frequency domain."),
.priv_size = sizeof(AFFTFiltContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_afir.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ static const AVOption afir_options[] = {

AVFILTER_DEFINE_CLASS(afir);

AVFilter ff_af_afir = {
const AVFilter ff_af_afir = {
.name = "afir",
.description = NULL_IF_CONFIG_SMALL("Apply Finite Impulse Response filter with supplied coefficients in additional stream(s)."),
.priv_size = sizeof(AudioFIRContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static const AVFilterPad avfilter_af_aformat_outputs[] = {
{ NULL }
};

AVFilter ff_af_aformat = {
const AVFilter ff_af_aformat = {
.name = "aformat",
.description = NULL_IF_CONFIG_SMALL("Convert the input audio to one of the specified formats."),
.init = init,
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/af_afreqshift.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_afreqshift = {
const AVFilter ff_af_afreqshift = {
.name = "afreqshift",
.description = NULL_IF_CONFIG_SMALL("Apply frequency shifting to input audio."),
.query_formats = query_formats,
Expand All @@ -412,7 +412,7 @@ static const AVOption aphaseshift_options[] = {

AVFILTER_DEFINE_CLASS(aphaseshift);

AVFilter ff_af_aphaseshift = {
const AVFilter ff_af_aphaseshift = {
.name = "aphaseshift",
.description = NULL_IF_CONFIG_SMALL("Apply phase shifting to input audio."),
.query_formats = query_formats,
Expand Down
4 changes: 2 additions & 2 deletions libavfilter/af_agate.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_agate = {
const AVFilter ff_af_agate = {
.name = "agate",
.description = NULL_IF_CONFIG_SMALL("Audio gate."),
.query_formats = query_formats,
Expand Down Expand Up @@ -437,7 +437,7 @@ static const AVFilterPad sidechaingate_outputs[] = {
{ NULL }
};

AVFilter ff_af_sidechaingate = {
const AVFilter ff_af_sidechaingate = {
.name = "sidechaingate",
.description = NULL_IF_CONFIG_SMALL("Audio sidechain gate."),
.priv_size = sizeof(AudioGateContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aiir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ static const AVOption aiir_options[] = {

AVFILTER_DEFINE_CLASS(aiir);

AVFilter ff_af_aiir = {
const AVFilter ff_af_aiir = {
.name = "aiir",
.description = NULL_IF_CONFIG_SMALL("Apply Infinite Impulse Response filter with supplied coefficients."),
.priv_size = sizeof(AudioIIRContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_alimiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static const AVFilterPad alimiter_outputs[] = {
{ NULL }
};

AVFilter ff_af_alimiter = {
const AVFilter ff_af_alimiter = {
.name = "alimiter",
.description = NULL_IF_CONFIG_SMALL("Audio lookahead limiter."),
.priv_size = sizeof(AudioLimiterContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_amerge.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static const AVFilterPad amerge_outputs[] = {
{ NULL }
};

AVFilter ff_af_amerge = {
const AVFilter ff_af_amerge = {
.name = "amerge",
.description = NULL_IF_CONFIG_SMALL("Merge two or more audio streams into "
"a single multi-channel stream."),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_amix.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ static const AVFilterPad avfilter_af_amix_outputs[] = {
{ NULL }
};

AVFilter ff_af_amix = {
const AVFilter ff_af_amix = {
.name = "amix",
.description = NULL_IF_CONFIG_SMALL("Audio mixing."),
.priv_size = sizeof(MixContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_amultiply.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_amultiply = {
const AVFilter ff_af_amultiply = {
.name = "amultiply",
.description = NULL_IF_CONFIG_SMALL("Multiply two audio streams."),
.priv_size = sizeof(AudioMultiplyContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_anequalizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ static const AVFilterPad inputs[] = {
{ NULL }
};

AVFilter ff_af_anequalizer = {
const AVFilter ff_af_anequalizer = {
.name = "anequalizer",
.description = NULL_IF_CONFIG_SMALL("Apply high-order audio parametric multi band equalizer."),
.priv_size = sizeof(AudioNEqualizerContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_anlmdn.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_anlmdn = {
const AVFilter ff_af_anlmdn = {
.name = "anlmdn",
.description = NULL_IF_CONFIG_SMALL("Reduce broadband noise from stream using Non-Local Means."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_anlms.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_anlms = {
const AVFilter ff_af_anlms = {
.name = "anlms",
.description = NULL_IF_CONFIG_SMALL("Apply Normalized Least-Mean-Squares algorithm to first audio stream."),
.priv_size = sizeof(AudioNLMSContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_anull.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static const AVFilterPad avfilter_af_anull_outputs[] = {
{ NULL }
};

AVFilter ff_af_anull = {
const AVFilter ff_af_anull = {
.name = "anull",
.description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."),
.inputs = avfilter_af_anull_inputs,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_apad.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static const AVFilterPad apad_outputs[] = {
{ NULL }
};

AVFilter ff_af_apad = {
const AVFilter ff_af_apad = {
.name = "apad",
.description = NULL_IF_CONFIG_SMALL("Pad audio with silence."),
.init = init,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aphaser.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static const AVFilterPad aphaser_outputs[] = {
{ NULL }
};

AVFilter ff_af_aphaser = {
const AVFilter ff_af_aphaser = {
.name = "aphaser",
.description = NULL_IF_CONFIG_SMALL("Add a phasing effect to the audio."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_apulsator.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_apulsator = {
const AVFilter ff_af_apulsator = {
.name = "apulsator",
.description = NULL_IF_CONFIG_SMALL("Audio pulsator."),
.priv_size = sizeof(AudioPulsatorContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_aresample.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static const AVFilterPad aresample_outputs[] = {
{ NULL }
};

AVFilter ff_af_aresample = {
const AVFilter ff_af_aresample = {
.name = "aresample",
.description = NULL_IF_CONFIG_SMALL("Resample audio data."),
.init_dict = init_dict,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_arnndn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ static const AVOption arnndn_options[] = {

AVFILTER_DEFINE_CLASS(arnndn);

AVFilter ff_af_arnndn = {
const AVFilter ff_af_arnndn = {
.name = "arnndn",
.description = NULL_IF_CONFIG_SMALL("Reduce noise from speech using Recurrent Neural Networks."),
.query_formats = query_formats,
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_asetnsamples.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static const AVFilterPad asetnsamples_outputs[] = {
{ NULL }
};

AVFilter ff_af_asetnsamples = {
const AVFilter ff_af_asetnsamples = {
.name = "asetnsamples",
.description = NULL_IF_CONFIG_SMALL("Set the number of samples for each output audio frames."),
.priv_size = sizeof(ASNSContext),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_asetrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static const AVFilterPad asetrate_outputs[] = {
{ NULL }
};

AVFilter ff_af_asetrate = {
const AVFilter ff_af_asetrate = {
.name = "asetrate",
.description = NULL_IF_CONFIG_SMALL("Change the sample rate without "
"altering the data."),
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/af_ashowinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static const AVFilterPad outputs[] = {
{ NULL }
};

AVFilter ff_af_ashowinfo = {
const AVFilter ff_af_ashowinfo = {
.name = "ashowinfo",
.description = NULL_IF_CONFIG_SMALL("Show textual information for each audio frame."),
.priv_size = sizeof(AShowInfoContext),
Expand Down
Loading

0 comments on commit a04ad24

Please sign in to comment.