FFmpeg
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/float_dsp.h
"
25
#include "
libavutil/frame.h
"
26
#include "
libavutil/rational.h
"
27
#include "
libavutil/tx.h
"
28
#include "
avfilter.h
"
29
#include "
af_afirdsp.h
"
30
31
typedef
struct
AudioFIRSegment
{
32
int
nb_partitions
;
33
int
part_size
;
34
int
block_size
;
35
int
fft_length
;
36
int
coeff_size
;
37
int
input_size
;
38
int
input_offset
;
39
40
int
*
output_offset
;
41
int
*
part_index
;
42
43
AVFrame
*
sumin
;
44
AVFrame
*
sumout
;
45
AVFrame
*
blockin
;
46
AVFrame
*
blockout
;
47
AVFrame
*
buffer
;
48
AVFrame
*
coeff
;
49
AVFrame
*
input
;
50
AVFrame
*
output
;
51
52
AVTXContext
**
tx
, **
itx
;
53
av_tx_fn
tx_fn
,
itx_fn
;
54
}
AudioFIRSegment
;
55
56
typedef
struct
AudioFIRContext
{
57
const
AVClass
*
class
;
58
59
float
wet_gain
;
60
float
dry_gain
;
61
float
length
;
62
int
gtype
;
63
float
ir_gain
;
64
int
ir_format
;
65
float
max_ir_len
;
66
int
response
;
67
int
w
,
h
;
68
AVRational
frame_rate
;
69
int
ir_channel
;
70
int
minp
;
71
int
maxp
;
72
int
nb_irs
;
73
int
selir
;
74
int
precision
;
75
int
format
;
76
77
double
gain
;
78
79
int
eof_coeffs
[32];
80
int
have_coeffs
;
81
int
nb_taps
;
82
int
nb_channels
;
83
int
nb_coef_channels
;
84
int
one2many
;
85
86
AudioFIRSegment
seg
[1024];
87
int
nb_segments
;
88
89
AVFrame
*
in
;
90
AVFrame
*
ir
[32];
91
AVFrame
*
video
;
92
int
min_part_size
;
93
int64_t
pts
;
94
95
AudioFIRDSPContext
afirdsp
;
96
AVFloatDSPContext
*
fdsp
;
97
}
AudioFIRContext
;
98
99
#endif
/* AVFILTER_AFIR_H */
AudioFIRContext::nb_segments
int nb_segments
Definition:
af_afir.h:87
AudioFIRContext::frame_rate
AVRational frame_rate
Definition:
af_afir.h:68
AudioFIRSegment::block_size
int block_size
Definition:
af_afir.h:34
AudioFIRContext::ir_format
int ir_format
Definition:
af_afir.h:64
AudioFIRContext::format
int format
Definition:
af_afir.h:75
AudioFIRContext::eof_coeffs
int eof_coeffs[32]
Definition:
af_afir.h:79
AVTXContext
Definition:
tx_priv.h:201
AudioFIRContext::in
AVFrame * in
Definition:
af_afir.h:89
rational.h
AudioFIRContext::video
AVFrame * video
Definition:
af_afir.h:91
AVFrame
This structure describes decoded (raw) audio or video data.
Definition:
frame.h:325
AudioFIRSegment::buffer
AVFrame * buffer
Definition:
af_afir.h:47
AudioFIRContext::wet_gain
float wet_gain
Definition:
af_afir.h:59
AudioFIRSegment::input_offset
int input_offset
Definition:
af_afir.h:38
AudioFIRSegment::tx_fn
av_tx_fn tx_fn
Definition:
af_afir.h:53
AudioFIRSegment::blockin
AVFrame * blockin
Definition:
af_afir.h:45
AudioFIRContext::ir_gain
float ir_gain
Definition:
af_afir.h:63
AudioFIRSegment::part_size
int part_size
Definition:
af_afir.h:33
AudioFIRSegment::input_size
int input_size
Definition:
af_afir.h:37
AudioFIRContext::nb_channels
int nb_channels
Definition:
af_afir.h:82
AudioFIRSegment::coeff
AVFrame * coeff
Definition:
af_afir.h:48
af_afirdsp.h
AudioFIRContext::min_part_size
int min_part_size
Definition:
af_afir.h:92
AudioFIRSegment::blockout
AVFrame * blockout
Definition:
af_afir.h:46
AudioFIRSegment
Definition:
af_afir.h:31
AudioFIRContext::maxp
int maxp
Definition:
af_afir.h:71
AudioFIRSegment::tx
AVTXContext ** tx
Definition:
af_afir.h:52
av_tx_fn
void(* av_tx_fn)(AVTXContext *s, void *out, void *in, ptrdiff_t stride)
Function pointer to a function to perform the transform.
Definition:
tx.h:111
AudioFIRContext::nb_taps
int nb_taps
Definition:
af_afir.h:81
AudioFIRContext::response
int response
Definition:
af_afir.h:66
AudioFIRContext::nb_irs
int nb_irs
Definition:
af_afir.h:72
AudioFIRContext::gtype
int gtype
Definition:
af_afir.h:62
AudioFIRContext::minp
int minp
Definition:
af_afir.h:70
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:66
AVRational
Rational number (pair of numerator and denominator).
Definition:
rational.h:58
AudioFIRSegment::itx_fn
av_tx_fn itx_fn
Definition:
af_afir.h:53
float_dsp.h
AudioFIRSegment::output
AVFrame * output
Definition:
af_afir.h:50
AudioFIRContext::max_ir_len
float max_ir_len
Definition:
af_afir.h:65
AudioFIRContext::fdsp
AVFloatDSPContext * fdsp
Definition:
af_afir.h:96
AudioFIRSegment::sumin
AVFrame * sumin
Definition:
af_afir.h:43
AudioFIRDSPContext
Definition:
af_afirdsp.h:29
AVFloatDSPContext
Definition:
float_dsp.h:24
frame.h
AudioFIRContext::w
int w
Definition:
af_afir.h:67
AudioFIRContext::gain
double gain
Definition:
af_afir.h:77
AudioFIRContext::length
float length
Definition:
af_afir.h:61
AudioFIRContext::h
int h
Definition:
af_afir.h:67
AudioFIRContext::one2many
int one2many
Definition:
af_afir.h:84
AudioFIRSegment::input
AVFrame * input
Definition:
af_afir.h:49
AudioFIRContext::ir
AVFrame * ir[32]
Definition:
af_afir.h:90
AudioFIRSegment::coeff_size
int coeff_size
Definition:
af_afir.h:36
AudioFIRSegment::nb_partitions
int nb_partitions
Definition:
af_afir.h:32
AudioFIRContext::precision
int precision
Definition:
af_afir.h:74
AudioFIRSegment::itx
AVTXContext ** itx
Definition:
af_afir.h:52
AudioFIRContext::afirdsp
AudioFIRDSPContext afirdsp
Definition:
af_afir.h:95
AudioFIRSegment::fft_length
int fft_length
Definition:
af_afir.h:35
AudioFIRContext::ir_channel
int ir_channel
Definition:
af_afir.h:69
AudioFIRSegment::sumout
AVFrame * sumout
Definition:
af_afir.h:44
AudioFIRContext::nb_coef_channels
int nb_coef_channels
Definition:
af_afir.h:83
AudioFIRContext
Definition:
af_afir.h:56
AudioFIRContext::have_coeffs
int have_coeffs
Definition:
af_afir.h:80
avfilter.h
AudioFIRContext::seg
AudioFIRSegment seg[1024]
Definition:
af_afir.h:86
AudioFIRContext::dry_gain
float dry_gain
Definition:
af_afir.h:60
AudioFIRContext::selir
int selir
Definition:
af_afir.h:73
AudioFIRContext::pts
int64_t pts
Definition:
af_afir.h:93
AudioFIRSegment::output_offset
int * output_offset
Definition:
af_afir.h:40
tx.h
AudioFIRSegment::part_index
int * part_index
Definition:
af_afir.h:41
Generated on Wed Aug 24 2022 21:41:57 for FFmpeg by
1.8.17