]> git.sesse.net Git - ffmpeg/blob - libavfilter/af_afir.h
avfilter/af_afir: remove dead store variable
[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/common.h"
25 #include "libavutil/float_dsp.h"
26 #include "libavutil/opt.h"
27 #include "libavcodec/avfft.h"
28
29 #include "audio.h"
30 #include "avfilter.h"
31 #include "formats.h"
32 #include "internal.h"
33
34 typedef struct AudioFIRContext {
35     const AVClass *class;
36
37     float wet_gain;
38     float dry_gain;
39     float length;
40     int gtype;
41     float ir_gain;
42     int ir_format;
43     float max_ir_len;
44     int response;
45     int w, h;
46     AVRational frame_rate;
47     int ir_channel;
48     int minp;
49     int maxp;
50
51     float gain;
52
53     int eof_coeffs;
54     int have_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 fft_length;
63     int nb_coef_channels;
64     int one2many;
65     int nb_samples;
66
67     RDFTContext **rdft, **irdft;
68     float **sum;
69     float **block;
70     FFTComplex **coeff;
71
72     AVFrame *in[2];
73     AVFrame *buffer;
74     AVFrame *video;
75     int64_t pts;
76     int index;
77
78     AVFloatDSPContext *fdsp;
79     void (*fcmul_add)(float *sum, const float *t, const float *c,
80                       ptrdiff_t len);
81 } AudioFIRContext;
82
83 void ff_afir_init_x86(AudioFIRContext *s);
84
85 #endif /* AVFILTER_AFIR_H */