FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
af_afir.h
Go to the documentation of this file.
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 gtype;
42  float ir_gain;
43  int ir_format;
44  float max_ir_len;
45  int response;
46  int w, h;
48 
49  float gain;
50 
53  int nb_coeffs;
54  int nb_taps;
55  int part_size;
61  int ir_length;
64  int one2many;
66  int want_skip;
68 
70  float **sum;
71  float **block;
73 
75  AVFrame *in[2];
78  int64_t pts;
79  int index;
80 
82  void (*fcmul_add)(float *sum, const float *t, const float *c,
83  ptrdiff_t len);
85 
87 
88 #endif /* AVFILTER_AFIR_H */
AVFrame * in[2]
Definition: af_afir.h:75
This structure describes decoded (raw) audio or video data.
Definition: frame.h:226
int nb_coef_channels
Definition: af_afir.h:63
int nb_channels
Definition: af_afir.h:60
Main libavfilter public API header.
RDFTContext ** irdft
Definition: af_afir.h:69
float ir_gain
Definition: af_afir.h:42
int block_size
Definition: af_afir.h:58
int eof_coeffs
Definition: af_afir.h:51
float dry_gain
Definition: af_afir.h:39
AVOptions.
int coeff_size
Definition: af_afir.h:57
int fft_length
Definition: af_afir.h:62
void ff_afir_init_x86(AudioFIRContext *s)
Definition: af_afir_init.c:28
RDFTContext ** rdft
Definition: af_afir.h:69
float ** block
Definition: af_afir.h:71
Context for an Audio FIFO Buffer.
Definition: audio_fifo.c:34
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int ir_channel
Definition: af_afir.h:47
#define s(width, name)
Definition: cbs_vp9.c:257
FFTComplex ** coeff
Definition: af_afir.h:72
void(* fcmul_add)(float *sum, const float *t, const float *c, ptrdiff_t len)
Definition: af_afir.h:82
int64_t pts
Definition: af_afir.h:78
AVFloatDSPContext * fdsp
Definition: af_afir.h:81
FFT functions.
float ** sum
Definition: af_afir.h:70
AVAudioFifo * fifo
Definition: af_afir.h:74
AVFrame * buffer
Definition: af_afir.h:76
Describe the class of an AVClass context structure.
Definition: log.h:67
int have_coeffs
Definition: af_afir.h:52
float max_ir_len
Definition: af_afir.h:44
int nb_samples
Definition: af_afir.h:65
int need_padding
Definition: af_afir.h:67
float length
Definition: af_afir.h:40
common internal and external API header
static double c[64]
int part_index
Definition: af_afir.h:56
AVFrame * video
Definition: af_afir.h:77
float gain
Definition: af_afir.h:49
int nb_partitions
Definition: af_afir.h:59
Audio FIFO Buffer.
int len
float wet_gain
Definition: af_afir.h:38
internal API functions