annotate libfaad2/faad.h @ 12814:3a5f326e523c

pid syntax documented by Nico Sabbi
author diego
date Wed, 14 Jul 2004 08:52:06 +0000
parents d81145997036
children 6d50ef45a058
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 **
12625
d81145997036 More information about modifications to comply more closely with GPL 2a.
diego
parents: 12527
diff changeset
25 ** Initially modified for use with MPlayer by Arpad Gereöffy on 2003/08/30
d81145997036 More information about modifications to comply more closely with GPL 2a.
diego
parents: 12527
diff changeset
26 ** $Id: faad.h,v 1.3 2004/06/02 22:59:02 diego Exp $
d81145997036 More information about modifications to comply more closely with GPL 2a.
diego
parents: 12527
diff changeset
27 ** detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
28 **/
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
29
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
30 #ifndef __AACDEC_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 #define __AACDEC_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
32
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
33 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
34 extern "C" {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
35 #endif /* __cplusplus */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
37 #ifdef _WIN32
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
38 #pragma pack(push, 8)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
39 #ifndef FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
40 #define FAADAPI __cdecl
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
41 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
42 #else
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
43 #ifndef FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
44 #define FAADAPI
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
45 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
46 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
47
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
48 #define FAAD2_VERSION "2.0"
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
49
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
50 /* object types for AAC */
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
51 #define MAIN 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
52 #define LC 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
53 #define SSR 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
54 #define LTP 4
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
55 #define HE_AAC 5
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
56 #define ER_LC 17
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
57 #define ER_LTP 19
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
58 #define LD 23
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
59 #define DRM_ER_LC 27 /* special object type for DRM */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
60
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
61 /* header types */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
62 #define RAW 0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
63 #define ADIF 1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
64 #define ADTS 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
65
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
66 /* SBR signalling */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
67 #define NO_SBR 0
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
68 #define SBR_UPSAMPLED 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
69 #define SBR_DOWNSAMPLED 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
70 #define NO_SBR_UPSAMPLED 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
71
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
72 /* library output formats */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
73 #define FAAD_FMT_16BIT 1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
74 #define FAAD_FMT_24BIT 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
75 #define FAAD_FMT_32BIT 3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
76 #define FAAD_FMT_FLOAT 4
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
77 #define FAAD_FMT_DOUBLE 5
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
78 #define FAAD_FMT_16BIT_DITHER 6
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
79 #define FAAD_FMT_16BIT_L_SHAPE 7
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
80 #define FAAD_FMT_16BIT_M_SHAPE 8
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
81 #define FAAD_FMT_16BIT_H_SHAPE 9
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
82
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
83 /* Capabilities */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
84 #define LC_DEC_CAP (1<<0)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
85 #define MAIN_DEC_CAP (1<<1)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
86 #define LTP_DEC_CAP (1<<2)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
87 #define LD_DEC_CAP (1<<3)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
88 #define ERROR_RESILIENCE_CAP (1<<4)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
89 #define FIXED_POINT_CAP (1<<5)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
90
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
91 /* Channel definitions */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
92 #define FRONT_CHANNEL_CENTER (1)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
93 #define FRONT_CHANNEL_LEFT (2)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
94 #define FRONT_CHANNEL_RIGHT (3)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
95 #define SIDE_CHANNEL_LEFT (4)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
96 #define SIDE_CHANNEL_RIGHT (5)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
97 #define BACK_CHANNEL_LEFT (6)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
98 #define BACK_CHANNEL_RIGHT (7)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
99 #define BACK_CHANNEL_CENTER (8)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
100 #define LFE_CHANNEL (9)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
101 #define UNKNOWN_CHANNEL (0)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
102
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
103 /* DRM channel definitions */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
104 #define DRMCH_MONO 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
105 #define DRMCH_STEREO 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
106 #define DRMCH_SBR_MONO 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
107 #define DRMCH_SBR_LC_STEREO 4
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
108 #define DRMCH_SBR_STEREO 5
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
109
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
110
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
111 /* A decode call can eat up to FAAD_MIN_STREAMSIZE bytes per decoded channel,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
112 so at least so much bytes per channel should be available in this stream */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
113 #define FAAD_MIN_STREAMSIZE 768 /* 6144 bits/channel */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
114
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
115
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
116 typedef void *faacDecHandle;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
117
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
118 typedef struct mp4AudioSpecificConfig
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
119 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
120 /* Audio Specific Info */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
121 unsigned char objectTypeIndex;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
122 unsigned char samplingFrequencyIndex;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
123 unsigned long samplingFrequency;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
124 unsigned char channelsConfiguration;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
125
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
126 /* GA Specific Info */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
127 unsigned char frameLengthFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
128 unsigned char dependsOnCoreCoder;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
129 unsigned short coreCoderDelay;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
130 unsigned char extensionFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
131 unsigned char aacSectionDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
132 unsigned char aacScalefactorDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
133 unsigned char aacSpectralDataResilienceFlag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
134 unsigned char epConfig;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
135
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
136 char sbr_present_flag;
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
137 char forceUpSampling;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
138 } mp4AudioSpecificConfig;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
139
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
140 typedef struct faacDecConfiguration
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
141 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
142 unsigned char defObjectType;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
143 unsigned long defSampleRate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
144 unsigned char outputFormat;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
145 unsigned char downMatrix;
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
146 unsigned char useOldADTSFormat;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
147 } faacDecConfiguration, *faacDecConfigurationPtr;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
148
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
149 typedef struct faacDecFrameInfo
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
150 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
151 unsigned long bytesconsumed;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
152 unsigned long samples;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
153 unsigned char channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
154 unsigned char error;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
155 unsigned long samplerate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
156
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
157 /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
158 unsigned char sbr;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
159
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
160 /* MPEG-4 ObjectType */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
161 unsigned char object_type;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
162
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
163 /* AAC header type; MP4 will be signalled as RAW also */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
164 unsigned char header_type;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
165
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
166 /* multichannel configuration */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
167 unsigned char num_front_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
168 unsigned char num_side_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
169 unsigned char num_back_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
170 unsigned char num_lfe_channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
171 unsigned char channel_position[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
172 } faacDecFrameInfo;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
173
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
174 char* FAADAPI faacDecGetErrorMessage(unsigned char errcode);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
175
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
176 unsigned long FAADAPI faacDecGetCapabilities();
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
177
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
178 faacDecHandle FAADAPI faacDecOpen();
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
179
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
180 faacDecConfigurationPtr FAADAPI faacDecGetCurrentConfiguration(faacDecHandle hDecoder);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
181
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
182 unsigned char FAADAPI faacDecSetConfiguration(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
183 faacDecConfigurationPtr config);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
184
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
185 /* Init the library based on info from the AAC file (ADTS/ADIF) */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
186 long FAADAPI faacDecInit(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
187 unsigned char *buffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
188 unsigned long buffer_size,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
189 unsigned long *samplerate,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
190 unsigned char *channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
191
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
192 /* Init the library using a DecoderSpecificInfo */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
193 char FAADAPI faacDecInit2(faacDecHandle hDecoder, unsigned char *pBuffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
194 unsigned long SizeOfDecoderSpecificInfo,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
195 unsigned long *samplerate, unsigned char *channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
196
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
197 /* Init the library for DRM */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
198 char FAADAPI faacDecInitDRM(faacDecHandle hDecoder, unsigned long samplerate,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
199 unsigned char channels);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
200
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
201 void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, long frame);
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
202
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
203 void FAADAPI faacDecClose(faacDecHandle hDecoder);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
204
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
205 void* FAADAPI faacDecDecode(faacDecHandle hDecoder,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
206 faacDecFrameInfo *hInfo,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
207 unsigned char *buffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
208 unsigned long buffer_size);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
209
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
210 char FAADAPI AudioSpecificConfig(unsigned char *pBuffer,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
211 unsigned long buffer_size,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
212 mp4AudioSpecificConfig *mp4ASC);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
213
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
214 #ifdef _WIN32
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
215 #pragma pack(pop)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
216 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
217
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
218 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
219 }
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
220 #endif /* __cplusplus */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
221
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
222 #endif