mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
audio/filter: remove useless af_info fields
Drop the author and comment fields. They were completely unused - not even printed in verbose mode, just dead weight. Also use designated initializers and drop redundant flags.
This commit is contained in:
parent
a46453347f
commit
b08617ff71
@ -45,8 +45,6 @@ struct af_instance;
|
||||
struct af_info {
|
||||
const char *info;
|
||||
const char *name;
|
||||
const char *author;
|
||||
const char *comment;
|
||||
const int flags;
|
||||
int (*open)(struct af_instance *vf);
|
||||
bool (*test_conversion)(int src_format, int dst_format);
|
||||
|
@ -197,12 +197,9 @@ static int af_open(struct af_instance *af)
|
||||
|
||||
/// Description of this filter
|
||||
struct af_info af_info_bs2b = {
|
||||
"Bauer stereophonic-to-binaural audio filter",
|
||||
"bs2b",
|
||||
"Andrew Savchenko",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open,
|
||||
.info = "Bauer stereophonic-to-binaural audio filter",
|
||||
.name = "bs2b",
|
||||
.open = af_open,
|
||||
.priv_size = sizeof(struct af_bs2b),
|
||||
.options = (const struct m_option[]) {
|
||||
OPT_INTRANGE("fcut", fcut, 0, BS2B_MINFCUT, BS2B_MAXFCUT),
|
||||
|
@ -119,10 +119,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_center = {
|
||||
"Audio filter for adding a center channel",
|
||||
"center",
|
||||
"Alex Beregszaszi",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Audio filter for adding a center channel",
|
||||
.name = "center",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -3,6 +3,8 @@
|
||||
* command line parameter channels. It is stupid and can only add
|
||||
* silence or copy channels, not mix or filter.
|
||||
*
|
||||
* Original author: Anders
|
||||
*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
@ -262,10 +264,7 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_channels = {
|
||||
"Insert or remove channels",
|
||||
"channels",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "Insert or remove channels",
|
||||
.name = "channels",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -126,11 +126,8 @@ static int af_open(struct af_instance *af)
|
||||
}
|
||||
|
||||
struct af_info af_info_convert24 = {
|
||||
"Convert between 24 and 32 bit sample format",
|
||||
"convert24",
|
||||
"",
|
||||
"",
|
||||
0,
|
||||
af_open,
|
||||
.info = "Convert between 24 and 32 bit sample format",
|
||||
.name = "convert24",
|
||||
.open = af_open,
|
||||
.test_conversion = test_conversion,
|
||||
};
|
||||
|
@ -123,11 +123,8 @@ static int af_open(struct af_instance *af)
|
||||
}
|
||||
|
||||
struct af_info af_info_convertsignendian = {
|
||||
"Convert between sample format sign/endian",
|
||||
"convertsignendian",
|
||||
"",
|
||||
"",
|
||||
0,
|
||||
af_open,
|
||||
.info = "Convert between sample format sign/endian",
|
||||
.name = "convertsignendian",
|
||||
.open = af_open,
|
||||
.test_conversion = test_conversion,
|
||||
};
|
||||
|
@ -3,6 +3,8 @@
|
||||
* channels and can be used for simple position panning.
|
||||
* An extension for this filter would be a reverb.
|
||||
*
|
||||
* Original author: Anders
|
||||
*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
@ -188,10 +190,7 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_delay = {
|
||||
"Delay audio filter",
|
||||
"delay",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "Delay audio filter",
|
||||
.name = "delay",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -339,10 +339,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_drc = {
|
||||
"Dynamic range compression filter",
|
||||
"drc",
|
||||
"Alex Beregszaszi & Pierre Lombard",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Dynamic range compression filter",
|
||||
.name = "drc",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -2,6 +2,8 @@
|
||||
* The name speaks for itself. This filter is a dummy and will
|
||||
* not blow up regardless of what you do with it.
|
||||
*
|
||||
* Original author: Anders
|
||||
*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
@ -67,10 +69,7 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_dummy = {
|
||||
"dummy",
|
||||
"dummy",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "dummy",
|
||||
.name = "dummy",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -213,10 +213,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_equalizer = {
|
||||
"Equalizer audio filter",
|
||||
"equalizer",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Equalizer audio filter",
|
||||
.name = "equalizer",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -7,6 +7,8 @@
|
||||
* the area changes),
|
||||
* the rest is payload (non-interleaved).
|
||||
*
|
||||
* Authors: Anders; Gustavo Sverzut Barbieri <gustavo.barbieri@ic.unicamp.br>
|
||||
*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
@ -270,10 +272,7 @@ static int af_open( struct af_instance* af )
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_export = {
|
||||
"Sound export filter",
|
||||
"export",
|
||||
"Anders; Gustavo Sverzut Barbieri <gustavo.barbieri@ic.unicamp.br>",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "Sound export filter",
|
||||
.name = "export",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -139,10 +139,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_extrastereo = {
|
||||
"Increase difference between audio channels",
|
||||
"extrastereo",
|
||||
"Alex Beregszaszi & Pierre Lombard",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Increase difference between audio channels",
|
||||
.name = "extrastereo",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -128,12 +128,9 @@ static int af_open(struct af_instance *af)
|
||||
#define OPT_BASE_STRUCT struct priv
|
||||
|
||||
struct af_info af_info_format = {
|
||||
"Force audio format",
|
||||
"format",
|
||||
"",
|
||||
"",
|
||||
0,
|
||||
af_open,
|
||||
.info = "Force audio format",
|
||||
.name = "format",
|
||||
.open = af_open,
|
||||
.priv_size = sizeof(struct priv),
|
||||
.options = (const struct m_option[]) {
|
||||
OPT_AUDIOFORMAT("format", in_format, 0),
|
||||
|
@ -3,6 +3,8 @@
|
||||
* encoded rear channels into headphone signal using FIR filtering
|
||||
* with HRTF.
|
||||
*
|
||||
* Author: ylai
|
||||
*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
@ -660,10 +662,7 @@ static int af_open(struct af_instance* af)
|
||||
|
||||
/* Description of this filter */
|
||||
struct af_info af_info_hrtf = {
|
||||
"HRTF Headphone",
|
||||
"hrtf",
|
||||
"ylai",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "HRTF Headphone",
|
||||
.name = "hrtf",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -87,10 +87,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_karaoke = {
|
||||
"Simple karaoke/voice-removal audio filter",
|
||||
"karaoke",
|
||||
"Reynaldo H. Verdejo Pinochet",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Simple karaoke/voice-removal audio filter",
|
||||
.name = "karaoke",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -103,12 +103,9 @@ static int af_ladspa_malloc_failed(char*);
|
||||
/* Description */
|
||||
|
||||
struct af_info af_info_ladspa = {
|
||||
"LADSPA plugin loader",
|
||||
"ladspa",
|
||||
"Ivo van Poorten",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "LADSPA plugin loader",
|
||||
.name = "ladspa",
|
||||
.open = af_open,
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
@ -379,10 +379,7 @@ static int af_open(struct af_instance* af){
|
||||
}
|
||||
|
||||
struct af_info af_info_lavcac3enc = {
|
||||
"runtime encode to ac3 using libavcodec",
|
||||
"lavcac3enc",
|
||||
"Ulion",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "runtime encode to ac3 using libavcodec",
|
||||
.name = "lavcac3enc",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -307,12 +307,9 @@ static int af_open(struct af_instance *af)
|
||||
#define OPT_BASE_STRUCT struct priv
|
||||
|
||||
struct af_info af_info_lavfi = {
|
||||
"libavfilter bridge",
|
||||
"lavfi",
|
||||
"",
|
||||
"",
|
||||
0,
|
||||
af_open,
|
||||
.info = "libavfilter bridge",
|
||||
.name = "lavfi",
|
||||
.open = af_open,
|
||||
.priv_size = sizeof(struct priv),
|
||||
.options = (const struct m_option[]) {
|
||||
OPT_STRING("graph", cfg_graph, 0),
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2013 Stefano Pigozzi <stefano.pigozzi@gmail.com>
|
||||
*
|
||||
* This file is part of mpv.
|
||||
* Based on Michael Niedermayer's lavcresample.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -370,12 +371,9 @@ static int af_open(struct af_instance *af)
|
||||
#define OPT_BASE_STRUCT struct af_resample
|
||||
|
||||
struct af_info af_info_lavrresample = {
|
||||
"Sample frequency conversion using libavresample",
|
||||
"lavrresample",
|
||||
"Stefano Pigozzi (based on Michael Niedermayer's lavcresample)",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open,
|
||||
.info = "Sample frequency conversion using libavresample",
|
||||
.name = "lavrresample",
|
||||
.open = af_open,
|
||||
.test_conversion = test_conversion,
|
||||
.priv_size = sizeof(struct af_resample),
|
||||
.priv_defaults = &(const struct af_resample) {
|
||||
|
@ -205,10 +205,7 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_pan = {
|
||||
"Panning audio filter",
|
||||
"pan",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "Panning audio filter",
|
||||
.name = "pan",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -507,12 +507,9 @@ static int af_open(struct af_instance* af){
|
||||
#define OPT_BASE_STRUCT af_scaletempo_t
|
||||
|
||||
struct af_info af_info_scaletempo = {
|
||||
"Scale audio tempo while maintaining pitch",
|
||||
"scaletempo",
|
||||
"Robert Juliano",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open,
|
||||
.info = "Scale audio tempo while maintaining pitch",
|
||||
.name = "scaletempo",
|
||||
.open = af_open,
|
||||
.priv_size = sizeof(af_scaletempo_t),
|
||||
.priv_defaults = &(const af_scaletempo_t) {
|
||||
.ms_stride = 60,
|
||||
|
@ -162,10 +162,7 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_sinesuppress = {
|
||||
"Sine Suppress",
|
||||
"sinesuppress",
|
||||
"Michael Niedermayer",
|
||||
"",
|
||||
0,
|
||||
af_open
|
||||
.info = "Sine Suppress",
|
||||
.name = "sinesuppress",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -178,10 +178,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_sub = {
|
||||
"Audio filter for adding a sub-base channel",
|
||||
"sub",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Audio filter for adding a sub-base channel",
|
||||
.name = "sub",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -262,10 +262,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
struct af_info af_info_surround =
|
||||
{
|
||||
"Surround decoder filter",
|
||||
"surround",
|
||||
"Steve Davies <steve@daviesfam.org>",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Surround decoder filter",
|
||||
.name = "surround",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -92,10 +92,7 @@ static int af_open(struct af_instance* af){
|
||||
}
|
||||
|
||||
struct af_info af_info_sweep = {
|
||||
"sine sweep",
|
||||
"sweep",
|
||||
"Michael Niedermayer",
|
||||
"",
|
||||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
.info = "sine sweep",
|
||||
.name = "sweep",
|
||||
.open = af_open,
|
||||
};
|
||||
|
@ -199,10 +199,8 @@ static int af_open(struct af_instance* af){
|
||||
|
||||
// Description of this filter
|
||||
struct af_info af_info_volume = {
|
||||
"Volume control audio filter",
|
||||
"volume",
|
||||
"Anders",
|
||||
"",
|
||||
AF_FLAGS_NOT_REENTRANT,
|
||||
af_open
|
||||
.info = "Volume control audio filter",
|
||||
.name = "volume",
|
||||
.flags = AF_FLAGS_NOT_REENTRANT,
|
||||
.open = af_open,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user