annotate src/aac/libfaad2/neaacdec.h @ 2203:13b8ab116b69

removed debugging stuff. some notes added
author Eugene Zagidullin <e.asphyx@gmail.com>
date Mon, 03 Dec 2007 02:10:29 +0300
parents f409eed7694d
children f1b6f1b2cdb3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
756
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
1 /*
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
4 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
5 ** This program is free software; you can redistribute it and/or modify
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
6 ** it under the terms of the GNU General Public License as published by
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
7 ** the Free Software Foundation; either version 2 of the License, or
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
8 ** (at your option) any later version.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
9 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
10 ** This program is distributed in the hope that it will be useful,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
13 ** GNU General Public License for more details.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
14 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
15 ** You should have received a copy of the GNU General Public License
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
16 ** along with this program; if not, write to the Free Software
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
18 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
19 ** Any non-GPL usage of this software or parts of this software is strictly
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
20 ** forbidden.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
21 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
22 ** Commercial non-GPL licensing of this software is possible.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
24 **
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
25 ** $Id: neaacdec.h,v 1.5 2004/09/04 14:56:27 menno Exp $
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
26 **/
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
27
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
28 #ifndef __NEAACDEC_H__
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
29 #define __NEAACDEC_H__
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
30
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
31 #ifdef __cplusplus
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
32 extern "C" {
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
33 #endif /* __cplusplus */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
34
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
35
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
36 #if 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
37 /* MACROS FOR BACKWARDS COMPATIBILITY */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
38 /* structs */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
39 #define faacDecHandle NeAACDecHandle
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
40 #define faacDecConfiguration NeAACDecConfiguration
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
41 #define faacDecConfigurationPtr NeAACDecConfigurationPtr
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
42 #define faacDecFrameInfo NeAACDecFrameInfo
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
43 /* functions */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
44 #define faacDecGetErrorMessage NeAACDecGetErrorMessage
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
45 #define faacDecSetConfiguration NeAACDecSetConfiguration
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
46 #define faacDecGetCurrentConfiguration NeAACDecGetCurrentConfiguration
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
47 #define faacDecInit NeAACDecInit
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
48 #define faacDecInit2 NeAACDecInit2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
49 #define faacDecInitDRM NeAACDecInitDRM
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
50 #define faacDecPostSeekReset NeAACDecPostSeekReset
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
51 #define faacDecOpen NeAACDecOpen
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
52 #define faacDecClose NeAACDecClose
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
53 #define faacDecDecode NeAACDecDecode
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
54 #define AudioSpecificConfig NeAACDecAudioSpecificConfig
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
55 #endif
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
56
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
57
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
58 #ifdef _WIN32
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
59 #pragma pack(push, 8)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
60 #ifndef NEAACDECAPI
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
61 #define NEAACDECAPI __cdecl
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
62 #endif
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
63 #else
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
64 #ifndef NEAACDECAPI
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
65 #define NEAACDECAPI
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
66 #endif
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
67 #endif
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
68
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
69 #define FAAD2_VERSION "2.1 beta"
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
70
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
71 /* object types for AAC */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
72 #define MAIN 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
73 #define LC 2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
74 #define SSR 3
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
75 #define LTP 4
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
76 #define HE_AAC 5
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
77 #define ER_LC 17
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
78 #define ER_LTP 19
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
79 #define LD 23
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
80 #define DRM_ER_LC 27 /* special object type for DRM */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
81
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
82 /* header types */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
83 #define RAW 0
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
84 #define ADIF 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
85 #define ADTS 2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
86
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
87 /* SBR signalling */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
88 #define NO_SBR 0
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
89 #define SBR_UPSAMPLED 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
90 #define SBR_DOWNSAMPLED 2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
91 #define NO_SBR_UPSAMPLED 3
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
92
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
93 /* library output formats */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
94 #define FAAD_FMT_16BIT 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
95 #define FAAD_FMT_24BIT 2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
96 #define FAAD_FMT_32BIT 3
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
97 #define FAAD_FMT_FLOAT 4
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
98 #define FAAD_FMT_FIXED FAAD_FMT_FLOAT
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
99 #define FAAD_FMT_DOUBLE 5
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
100
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
101 /* Capabilities */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
102 #define LC_DEC_CAP (1<<0) /* Can decode LC */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
103 #define MAIN_DEC_CAP (1<<1) /* Can decode MAIN */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
104 #define LTP_DEC_CAP (1<<2) /* Can decode LTP */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
105 #define LD_DEC_CAP (1<<3) /* Can decode LD */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
106 #define ERROR_RESILIENCE_CAP (1<<4) /* Can decode ER */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
107 #define FIXED_POINT_CAP (1<<5) /* Fixed point */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
108
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
109 /* Channel definitions */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
110 #define FRONT_CHANNEL_CENTER (1)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
111 #define FRONT_CHANNEL_LEFT (2)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
112 #define FRONT_CHANNEL_RIGHT (3)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
113 #define SIDE_CHANNEL_LEFT (4)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
114 #define SIDE_CHANNEL_RIGHT (5)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
115 #define BACK_CHANNEL_LEFT (6)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
116 #define BACK_CHANNEL_RIGHT (7)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
117 #define BACK_CHANNEL_CENTER (8)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
118 #define LFE_CHANNEL (9)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
119 #define UNKNOWN_CHANNEL (0)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
120
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
121 /* DRM channel definitions */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
122 #define DRMCH_MONO 1
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
123 #define DRMCH_STEREO 2
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
124 #define DRMCH_SBR_MONO 3
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
125 #define DRMCH_SBR_STEREO 4
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
126 #define DRMCH_SBR_PS_STEREO 5
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
127
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
128
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
129 /* A decode call can eat up to FAAD_MIN_STREAMSIZE bytes per decoded channel,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
130 so at least so much bytes per channel should be available in this stream */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
131 #define FAAD_MIN_STREAMSIZE 768 /* 6144 bits/channel */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
132
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
133
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
134 typedef void *NeAACDecHandle;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
135
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
136 typedef struct mp4AudioSpecificConfig
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
137 {
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
138 /* Audio Specific Info */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
139 unsigned char objectTypeIndex;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
140 unsigned char samplingFrequencyIndex;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
141 unsigned long samplingFrequency;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
142 unsigned char channelsConfiguration;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
143
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
144 /* GA Specific Info */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
145 unsigned char frameLengthFlag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
146 unsigned char dependsOnCoreCoder;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
147 unsigned short coreCoderDelay;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
148 unsigned char extensionFlag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
149 unsigned char aacSectionDataResilienceFlag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
150 unsigned char aacScalefactorDataResilienceFlag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
151 unsigned char aacSpectralDataResilienceFlag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
152 unsigned char epConfig;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
153
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
154 char sbr_present_flag;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
155 char forceUpSampling;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
156 char downSampledSBR;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
157 } mp4AudioSpecificConfig;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
158
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
159 typedef struct NeAACDecConfiguration
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
160 {
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
161 unsigned char defObjectType;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
162 unsigned long defSampleRate;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
163 unsigned char outputFormat;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
164 unsigned char downMatrix;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
165 unsigned char useOldADTSFormat;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
166 unsigned char dontUpSampleImplicitSBR;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
167 } NeAACDecConfiguration, *NeAACDecConfigurationPtr;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
168
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
169 typedef struct NeAACDecFrameInfo
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
170 {
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
171 unsigned long bytesconsumed;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
172 unsigned long samples;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
173 unsigned char channels;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
174 unsigned char error;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
175 unsigned long samplerate;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
176
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
177 /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
178 unsigned char sbr;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
179
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
180 /* MPEG-4 ObjectType */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
181 unsigned char object_type;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
182
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
183 /* AAC header type; MP4 will be signalled as RAW also */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
184 unsigned char header_type;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
185
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
186 /* multichannel configuration */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
187 unsigned char num_front_channels;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
188 unsigned char num_side_channels;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
189 unsigned char num_back_channels;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
190 unsigned char num_lfe_channels;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
191 unsigned char channel_position[64];
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
192
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
193 /* PS: 0: off, 1: on */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
194 unsigned char ps;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
195 } NeAACDecFrameInfo;
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
196
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
197 char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
198
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
199 unsigned long NEAACDECAPI NeAACDecGetCapabilities(void);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
200
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
201 NeAACDecHandle NEAACDECAPI NeAACDecOpen(void);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
202
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
203 NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
204
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
205 unsigned char NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
206 NeAACDecConfigurationPtr config);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
207
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
208 /* Init the library based on info from the AAC file (ADTS/ADIF) */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
209 long NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
210 unsigned char *buffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
211 unsigned long buffer_size,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
212 unsigned long *samplerate,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
213 unsigned char *channels);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
214
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
215 /* Init the library using a DecoderSpecificInfo */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
216 char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
217 unsigned long SizeOfDecoderSpecificInfo,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
218 unsigned long *samplerate, unsigned char *channels);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
219
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
220 /* Init the library for DRM */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
221 char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, unsigned long samplerate,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
222 unsigned char channels);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
223
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
224 void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, long frame);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
225
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
226 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
227
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
228 void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
229 NeAACDecFrameInfo *hInfo,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
230 unsigned char *buffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
231 unsigned long buffer_size);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
232
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
233 void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
234 NeAACDecFrameInfo *hInfo,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
235 unsigned char *buffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
236 unsigned long buffer_size,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
237 void **sample_buffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
238 unsigned long sample_buffer_size);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
239
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
240 char NEAACDECAPI NeAACDecAudioSpecificConfig(unsigned char *pBuffer,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
241 unsigned long buffer_size,
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
242 mp4AudioSpecificConfig *mp4ASC);
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
243
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
244 #ifdef _WIN32
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
245 #pragma pack(pop)
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
246 #endif
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
247
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
248 #ifdef __cplusplus
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
249 }
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
250 #endif /* __cplusplus */
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
251
f409eed7694d [svn] - some missing headers
nenolod
parents:
diff changeset
252 #endif