]> git.sesse.net Git - ffmpeg/blob - libavfilter/af_afir.h
libavfilter/ebur128: add gauge option
[ffmpeg] / libavfilter / af_afir.h
1 /*
2  * Copyright (c) 2017 Paul B Mahol
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20
21 #ifndef AVFILTER_AFIR_H
22 #define AVFILTER_AFIR_H
23
24 #include "libavutil/audio_fifo.h"
25 #include "libavutil/common.h"
26 #include "libavutil/float_dsp.h"
27 #include "libavutil/opt.h"
28 #include "libavcodec/avfft.h"
29
30 #include "audio.h"
31 #include "avfilter.h"
32 #include "formats.h"
33 #include "internal.h"
34
35 typedef struct AudioFIRContext {
36     const AVClass *class;
37
38     float wet_gain;
39     float dry_gain;
40     float length;
41     int again;
42     int gtype;
43     float ir_gain;
44     int ir_format;
45     float max_ir_len;
46     int response;
47     int w, h;
48     int ir_channel;
49
50     float gain;
51
52     int eof_coeffs;
53     int have_coeffs;
54     int nb_coeffs;
55     int nb_taps;
56     int part_size;
57     int part_index;
58     int coeff_size;
59     int block_size;
60     int nb_partitions;
61     int nb_channels;
62     int ir_length;
63     int fft_length;
64     int nb_coef_channels;
65     int one2many;
66     int nb_samples;
67     int want_skip;
68     int need_padding;
69
70     RDFTContext **rdft, **irdft;
71     float **sum;
72     float **block;
73     FFTComplex **coeff;
74
75     AVAudioFifo *fifo;
76     AVFrame *in[2];
77     AVFrame *buffer;
78     AVFrame *video;
79     int64_t pts;
80     int index;
81
82     AVFloatDSPContext *fdsp;
83     void (*fcmul_add)(float *sum, const float *t, const float *c,
84                       ptrdiff_t len);
85 } AudioFIRContext;
86
87 void ff_afir_init_x86(AudioFIRContext *s);
88
89 #endif /* AVFILTER_AFIR_H */