Libav
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
30
typedef
struct
AudioData
AudioData
;
31
typedef
struct
AudioConvert
AudioConvert
;
32
typedef
struct
AudioMix
AudioMix
;
33
typedef
struct
ResampleContext
ResampleContext
;
34
35
enum
RemapPoint
{
36
REMAP_NONE
,
37
REMAP_IN_COPY
,
38
REMAP_IN_CONVERT
,
39
REMAP_OUT_COPY
,
40
REMAP_OUT_CONVERT
,
41
};
42
43
typedef
struct
ChannelMapInfo
{
44
int
channel_map
[
AVRESAMPLE_MAX_CHANNELS
];
45
int
do_remap
;
46
int
channel_copy
[
AVRESAMPLE_MAX_CHANNELS
];
47
int
do_copy
;
48
int
channel_zero
[
AVRESAMPLE_MAX_CHANNELS
];
49
int
do_zero
;
50
int
input_map
[
AVRESAMPLE_MAX_CHANNELS
];
51
}
ChannelMapInfo
;
52
53
struct
AVAudioResampleContext
{
54
const
AVClass
*
av_class
;
56
uint64_t
in_channel_layout
;
57
enum
AVSampleFormat
in_sample_fmt
;
58
int
in_sample_rate
;
59
uint64_t
out_channel_layout
;
60
enum
AVSampleFormat
out_sample_fmt
;
61
int
out_sample_rate
;
62
enum
AVSampleFormat
internal_sample_fmt
;
63
enum
AVMixCoeffType
mix_coeff_type
;
64
double
center_mix_level
;
65
double
surround_mix_level
;
66
double
lfe_mix_level
;
67
int
normalize_mix_level
;
68
int
force_resampling
;
69
int
filter_size
;
70
int
phase_shift
;
71
int
linear_interp
;
72
double
cutoff
;
73
enum
AVResampleFilterType
filter_type
;
74
int
kaiser_beta
;
75
enum
AVResampleDitherMethod
dither_method
;
77
int
in_channels
;
78
int
out_channels
;
79
int
resample_channels
;
80
int
downmix_needed
;
81
int
upmix_needed
;
82
int
mixing_needed
;
83
int
resample_needed
;
84
int
in_convert_needed
;
85
int
out_convert_needed
;
86
int
in_copy_needed
;
88
AudioData
*
in_buffer
;
89
AudioData
*
resample_out_buffer
;
90
AudioData
*
out_buffer
;
91
AVAudioFifo
*
out_fifo
;
93
AudioConvert
*
ac_in
;
94
AudioConvert
*
ac_out
;
95
ResampleContext
*
resample
;
96
AudioMix
*
am
;
97
enum
AVMatrixEncoding
matrix_encoding
;
103
double
*
mix_matrix
;
104
105
int
use_channel_map
;
106
enum
RemapPoint
remap_point
;
107
ChannelMapInfo
ch_map_info
;
108
};
109
110
#endif
/* AVRESAMPLE_INTERNAL_H */
Generated on Sun Jun 1 2014 17:55:31 for Libav by
1.8.1.2