FFmpeg
4.0
libavfilter
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
#define MAX_IR_DURATION 30
36
37
typedef
struct
AudioFIRContext
{
38
const
AVClass
*
class
;
39
40
float
wet_gain
;
41
float
dry_gain
;
42
float
length
;
43
int
again
;
44
45
float
gain
;
46
47
int
eof_coeffs
;
48
int
have_coeffs
;
49
int
nb_coeffs
;
50
int
nb_taps
;
51
int
part_size
;
52
int
part_index
;
53
int
coeff_size
;
54
int
block_size
;
55
int
nb_partitions
;
56
int
nb_channels
;
57
int
ir_length
;
58
int
fft_length
;
59
int
nb_coef_channels
;
60
int
one2many
;
61
int
nb_samples
;
62
int
want_skip
;
63
int
need_padding
;
64
65
RDFTContext
**
rdft
, **
irdft
;
66
float
**
sum
;
67
float
**
block
;
68
FFTComplex
**
coeff
;
69
70
AVAudioFifo
*
fifo
[2];
71
AVFrame
*
in
[2];
72
AVFrame
*
buffer
;
73
int64_t
pts
;
74
int
index
;
75
76
AVFloatDSPContext
*
fdsp
;
77
void
(*
fcmul_add
)(
float
*
sum
,
const
float
*t,
const
float
*
c
,
78
ptrdiff_t
len
);
79
}
AudioFIRContext
;
80
81
void
ff_afir_init_x86
(
AudioFIRContext
*
s
);
82
83
#endif
/* AVFILTER_AFIR_H */
s
const char * s
Definition:
avisynth_c.h:768
audio.h
AudioFIRContext::in
AVFrame * in[2]
Definition:
af_afir.h:71
AVFrame
This structure describes decoded (raw) audio or video data.
Definition:
frame.h:218
AudioFIRContext::nb_coef_channels
int nb_coef_channels
Definition:
af_afir.h:59
AudioFIRContext::nb_channels
int nb_channels
Definition:
af_afir.h:56
RDFTContext
Definition:
rdft.h:28
avfilter.h
Main libavfilter public API header.
AudioFIRContext::want_skip
int want_skip
Definition:
af_afir.h:62
float_dsp.h
AudioFIRContext::irdft
RDFTContext ** irdft
Definition:
af_afir.h:65
AudioFIRContext::block_size
int block_size
Definition:
af_afir.h:54
AudioFIRContext::eof_coeffs
int eof_coeffs
Definition:
af_afir.h:47
AudioFIRContext::dry_gain
float dry_gain
Definition:
af_afir.h:41
opt.h
AVOptions.
AudioFIRContext::coeff_size
int coeff_size
Definition:
af_afir.h:53
AudioFIRContext::fft_length
int fft_length
Definition:
af_afir.h:58
AudioFIRContext::fcmul_add
void(* fcmul_add)(float *sum, const float *t, const float *c, ptrdiff_t len)
Definition:
af_afir.h:77
ff_afir_init_x86
void ff_afir_init_x86(AudioFIRContext *s)
Definition:
af_afir_init.c:28
AudioFIRContext::index
int index
Definition:
af_afir.h:74
AudioFIRContext::rdft
RDFTContext ** rdft
Definition:
af_afir.h:65
AudioFIRContext::one2many
int one2many
Definition:
af_afir.h:60
AudioFIRContext::again
int again
Definition:
af_afir.h:43
AudioFIRContext::block
float ** block
Definition:
af_afir.h:67
AudioFIRContext::nb_coeffs
int nb_coeffs
Definition:
af_afir.h:49
AudioFIRContext::nb_taps
int nb_taps
Definition:
af_afir.h:50
AVAudioFifo
Context for an Audio FIFO Buffer.
Definition:
audio_fifo.c:34
AudioFIRContext::ir_length
int ir_length
Definition:
af_afir.h:57
AVFloatDSPContext
Definition:
float_dsp.h:24
AudioFIRContext::coeff
FFTComplex ** coeff
Definition:
af_afir.h:68
AudioFIRContext::pts
int64_t pts
Definition:
af_afir.h:73
AudioFIRContext::fdsp
AVFloatDSPContext * fdsp
Definition:
af_afir.h:76
void
typedef void(RENAME(mix_any_func_type))
Definition:
rematrix_template.c:52
AudioFIRContext::part_size
int part_size
Definition:
af_afir.h:51
avfft.h
FFT functions.
AudioFIRContext::sum
float ** sum
Definition:
af_afir.h:66
AudioFIRContext::buffer
AVFrame * buffer
Definition:
af_afir.h:72
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:67
AudioFIRContext::have_coeffs
int have_coeffs
Definition:
af_afir.h:48
FFTComplex
Definition:
avfft.h:37
AudioFIRContext::nb_samples
int nb_samples
Definition:
af_afir.h:61
AudioFIRContext::need_padding
int need_padding
Definition:
af_afir.h:63
AudioFIRContext::length
float length
Definition:
af_afir.h:42
common.h
common internal and external API header
c
static double c[64]
Definition:
vsrc_mptestsrc.c:87
AudioFIRContext::part_index
int part_index
Definition:
af_afir.h:52
AudioFIRContext::gain
float gain
Definition:
af_afir.h:45
AudioFIRContext::nb_partitions
int nb_partitions
Definition:
af_afir.h:55
AudioFIRContext::fifo
AVAudioFifo * fifo[2]
Definition:
af_afir.h:70
AudioFIRContext
Definition:
af_afir.h:37
audio_fifo.h
Audio FIFO Buffer.
len
int len
Definition:
vorbis_enc_data.h:452
AudioFIRContext::wet_gain
float wet_gain
Definition:
af_afir.h:40
formats.h
internal.h
internal API functions
Generated on Tue May 22 2018 07:06:45 for FFmpeg by
1.8.13