annotate libfaad2/faad.h @ 12545:868376f81c30

Fix hang on broken mmst streams Patch by adland
author rtognimp
date Mon, 07 Jun 2004 19:23:04 +0000
parents 4a370c80fe5c
children d81145997036
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
1 /*
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
4 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
5 ** This program is free software; you can redistribute it and/or modify
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
6 ** it under the terms of the GNU General Public License as published by
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
7 ** the Free Software Foundation; either version 2 of the License, or
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
8 ** (at your option) any later version.
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
9 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
10 ** This program is distributed in the hope that it will be useful,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
13 ** GNU General Public License for more details.
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
14 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
15 ** You should have received a copy of the GNU General Public License
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
16 ** along with this program; if not, write to the Free Software
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
18 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
19 ** Any non-GPL usage of this software or parts of this software is strictly
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
20 ** forbidden.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
21 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
22 ** Commercial non-GPL licensing of this software is possible.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
24 **
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
25 ** $Id: faad.h,v 1.2 2003/10/03 22:22:27 alex Exp $
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
26 **/
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
27
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
28 #ifndef __AACDEC_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
29 #define __AACDEC_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
30
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
32 extern "C" {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
33 #endif /* __cplusplus */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
34
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
35 #ifdef _WIN32
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36 #pragma pack(push, 8)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
37 #ifndef FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
38 #define FAADAPI __cdecl
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
39 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
40 #else
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
41 #ifndef FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
42 #define FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
43 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
44 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
45
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
46 #define FAAD2_VERSION "2.0"
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
47
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
48 /* object types for AAC */
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
49 #define MAIN 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
50 #define LC 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
51 #define SSR 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
52 #define LTP 4
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
53 #define HE_AAC 5
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
54 #define ER_LC 17
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
55 #define ER_LTP 19
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
56 #define LD 23
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
57 #define DRM_ER_LC 27 /* special object type for DRM */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
58
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
59 /* header types */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
60 #define RAW 0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
61 #define ADIF 1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
62 #define ADTS 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
63
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
64 /* SBR signalling */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
65 #define NO_SBR 0
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
66 #define SBR_UPSAMPLED 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
67 #define SBR_DOWNSAMPLED 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
68 #define NO_SBR_UPSAMPLED 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
69
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
70 /* library output formats */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
71 #define FAAD_FMT_16BIT 1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
72 #define FAAD_FMT_24BIT 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
73 #define FAAD_FMT_32BIT 3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
74 #define FAAD_FMT_FLOAT 4
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
75 #define FAAD_FMT_DOUBLE 5
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
76 #define FAAD_FMT_16BIT_DITHER 6
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
77 #define FAAD_FMT_16BIT_L_SHAPE 7
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
78 #define FAAD_FMT_16BIT_M_SHAPE 8
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
79 #define FAAD_FMT_16BIT_H_SHAPE 9
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
80
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
81 /* Capabilities */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
82 #define LC_DEC_CAP (1<<0)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
83 #define MAIN_DEC_CAP (1<<1)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
84 #define LTP_DEC_CAP (1<<2)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
85 #define LD_DEC_CAP (1<<3)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
86 #define ERROR_RESILIENCE_CAP (1<<4)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
87 #define FIXED_POINT_CAP (1<<5)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
88
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
89 /* Channel definitions */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
90 #define FRONT_CHANNEL_CENTER (1)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
91 #define FRONT_CHANNEL_LEFT (2)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
92 #define FRONT_CHANNEL_RIGHT (3)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
93 #define SIDE_CHANNEL_LEFT (4)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
94 #define SIDE_CHANNEL_RIGHT (5)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
95 #define BACK_CHANNEL_LEFT (6)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
96 #define BACK_CHANNEL_RIGHT (7)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
97 #define BACK_CHANNEL_CENTER (8)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
98 #define LFE_CHANNEL (9)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
99 #define UNKNOWN_CHANNEL (0)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
100
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
101 /* DRM channel definitions */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
102 #define DRMCH_MONO 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
103 #define DRMCH_STEREO 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
104 #define DRMCH_SBR_MONO 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
105 #define DRMCH_SBR_LC_STEREO 4
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
106 #define DRMCH_SBR_STEREO 5
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
107
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
108
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
109 /* A decode call can eat up to FAAD_MIN_STREAMSIZE bytes per decoded channel,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
110 so at least so much bytes per channel should be available in this stream */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
111 #define FAAD_MIN_STREAMSIZE 768 /* 6144 bits/channel */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
112
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
113
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
114 typedef void *faacDecHandle;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
115
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
116 typedef struct mp4AudioSpecificConfig
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
117 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
118 /* Audio Specific Info */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
119 unsigned char objectTypeIndex;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
120 unsigned char samplingFrequencyIndex;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
121 unsigned long samplingFrequency;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
122 unsigned char channelsConfiguration;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
123
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
124 /* GA Specific Info */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
125 unsigned char frameLengthFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
126 unsigned char dependsOnCoreCoder;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
127 unsigned short coreCoderDelay;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
128 unsigned char extensionFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
129 unsigned char aacSectionDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
130 unsigned char aacScalefactorDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
131 unsigned char aacSpectralDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
132 unsigned char epConfig;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
133
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
134 char sbr_present_flag;
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
135 char forceUpSampling;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
136 } mp4AudioSpecificConfig;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
137
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
138 typedef struct faacDecConfiguration
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
139 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
140 unsigned char defObjectType;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
141 unsigned long defSampleRate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
142 unsigned char outputFormat;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
143 unsigned char downMatrix;
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
144 unsigned char useOldADTSFormat;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
145 } faacDecConfiguration, *faacDecConfigurationPtr;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
146
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
147 typedef struct faacDecFrameInfo
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
148 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
149 unsigned long bytesconsumed;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
150 unsigned long samples;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
151 unsigned char channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
152 unsigned char error;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
153 unsigned long samplerate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
154
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
155 /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
156 unsigned char sbr;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
157
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
158 /* MPEG-4 ObjectType */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
159 unsigned char object_type;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
160
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
161 /* AAC header type; MP4 will be signalled as RAW also */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
162 unsigned char header_type;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
163
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
164 /* multichannel configuration */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
165 unsigned char num_front_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
166 unsigned char num_side_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
167 unsigned char num_back_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
168 unsigned char num_lfe_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
169 unsigned char channel_position[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
170 } faacDecFrameInfo;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
171
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
172 char* FAADAPI faacDecGetErrorMessage(unsigned char errcode);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
173
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
174 unsigned long FAADAPI faacDecGetCapabilities();
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
175
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
176 faacDecHandle FAADAPI faacDecOpen();
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
177
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
178 faacDecConfigurationPtr FAADAPI faacDecGetCurrentConfiguration(faacDecHandle hDecoder);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
179
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
180 unsigned char FAADAPI faacDecSetConfiguration(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
181 faacDecConfigurationPtr config);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
182
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
183 /* Init the library based on info from the AAC file (ADTS/ADIF) */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
184 long FAADAPI faacDecInit(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
185 unsigned char *buffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
186 unsigned long buffer_size,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
187 unsigned long *samplerate,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
188 unsigned char *channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
189
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
190 /* Init the library using a DecoderSpecificInfo */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
191 char FAADAPI faacDecInit2(faacDecHandle hDecoder, unsigned char *pBuffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
192 unsigned long SizeOfDecoderSpecificInfo,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
193 unsigned long *samplerate, unsigned char *channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
194
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
195 /* Init the library for DRM */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
196 char FAADAPI faacDecInitDRM(faacDecHandle hDecoder, unsigned long samplerate,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
197 unsigned char channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
198
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
199 void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, long frame);
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
200
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
201 void FAADAPI faacDecClose(faacDecHandle hDecoder);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
202
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
203 void* FAADAPI faacDecDecode(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
204 faacDecFrameInfo *hInfo,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
205 unsigned char *buffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
206 unsigned long buffer_size);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
207
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
208 char FAADAPI AudioSpecificConfig(unsigned char *pBuffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
209 unsigned long buffer_size,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
210 mp4AudioSpecificConfig *mp4ASC);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
211
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
212 #ifdef _WIN32
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
213 #pragma pack(pop)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
214 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
215
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
216 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
217 }
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
218 #endif /* __cplusplus */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
219
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
220 #endif