Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavresample
internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>
3
*
4
* This file is part of Libav.
5
*
6
* Libav 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
* Libav 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 Libav; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef AVRESAMPLE_INTERNAL_H
22
#define AVRESAMPLE_INTERNAL_H
23
24
#include "
libavutil/audio_fifo.h
"
25
#include "
libavutil/log.h
"
26
#include "
libavutil/opt.h
"
27
#include "
libavutil/samplefmt.h
"
28
#include "
avresample.h
"
29
#include "
audio_convert.h
"
30
#include "
audio_data.h
"
31
#include "
audio_mix.h
"
32
#include "
resample.h
"
33
34
struct
AVAudioResampleContext
{
35
const
AVClass
*
av_class
;
37
uint64_t
in_channel_layout
;
38
enum
AVSampleFormat
in_sample_fmt
;
39
int
in_sample_rate
;
40
uint64_t
out_channel_layout
;
41
enum
AVSampleFormat
out_sample_fmt
;
42
int
out_sample_rate
;
43
enum
AVSampleFormat
internal_sample_fmt
;
44
enum
AVMixCoeffType
mix_coeff_type
;
45
double
center_mix_level
;
46
double
surround_mix_level
;
47
double
lfe_mix_level
;
48
int
normalize_mix_level
;
49
int
force_resampling
;
50
int
filter_size
;
51
int
phase_shift
;
52
int
linear_interp
;
53
double
cutoff
;
54
enum
AVResampleFilterType
filter_type
;
55
int
kaiser_beta
;
56
enum
AVResampleDitherMethod
dither_method
;
58
int
in_channels
;
59
int
out_channels
;
60
int
resample_channels
;
61
int
downmix_needed
;
62
int
upmix_needed
;
63
int
mixing_needed
;
64
int
resample_needed
;
65
int
in_convert_needed
;
66
int
out_convert_needed
;
68
AudioData
*
in_buffer
;
69
AudioData
*
resample_out_buffer
;
70
AudioData
*
out_buffer
;
71
AVAudioFifo
*
out_fifo
;
73
AudioConvert
*
ac_in
;
74
AudioConvert
*
ac_out
;
75
ResampleContext
*
resample
;
76
AudioMix
*
am
;
77
enum
AVMatrixEncoding
matrix_encoding
;
83
double
*
mix_matrix
;
84
};
85
86
#endif
/* AVRESAMPLE_INTERNAL_H */