Mercurial > mplayer.hg
annotate libfaad2/structs.h @ 14457:65544ac80ce5
sync
author | paszczi |
---|---|
date | Mon, 10 Jan 2005 22:25:39 +0000 |
parents | 6d50ef45a058 |
children | 2ae5ab4331ca |
rev | line source |
---|---|
10725 | 1 /* |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
12527 | 3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com |
10725 | 4 ** |
5 ** This program is free software; you can redistribute it and/or modify | |
6 ** it under the terms of the GNU General Public License as published by | |
7 ** the Free Software Foundation; either version 2 of the License, or | |
8 ** (at your option) any later version. | |
9 ** | |
10 ** This program is distributed in the hope that it will be useful, | |
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 ** GNU General Public License for more details. | |
14 ** | |
15 ** You should have received a copy of the GNU General Public License | |
16 ** along with this program; if not, write to the Free Software | |
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18 ** | |
19 ** Any non-GPL usage of this software or parts of this software is strictly | |
20 ** forbidden. | |
21 ** | |
22 ** Commercial non-GPL licensing of this software is possible. | |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | |
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 |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
26 ** $Id: structs.h,v 1.4 2004/06/23 13:50:53 diego Exp $ |
12625
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 | 28 **/ |
29 | |
30 #ifndef __STRUCTS_H__ | |
31 #define __STRUCTS_H__ | |
32 | |
33 #ifdef __cplusplus | |
34 extern "C" { | |
35 #endif | |
36 | |
12527 | 37 #include "cfft.h" |
10725 | 38 #ifdef SBR_DEC |
39 #include "sbr_dec.h" | |
40 #endif | |
41 | |
42 #define MAX_CHANNELS 64 | |
43 #define MAX_SYNTAX_ELEMENTS 48 | |
44 #define MAX_WINDOW_GROUPS 8 | |
45 #define MAX_SFB 51 | |
46 #define MAX_LTP_SFB 40 | |
47 #define MAX_LTP_SFB_S 8 | |
48 | |
49 /* used to save the prediction state */ | |
50 typedef struct { | |
12527 | 51 int16_t r[2]; |
52 int16_t COR[2]; | |
53 int16_t VAR[2]; | |
10725 | 54 } pred_state; |
55 | |
56 typedef struct { | |
57 uint16_t N; | |
58 cfft_info *cfft; | |
59 complex_t *sincos; | |
12527 | 60 #ifdef PROFILE |
61 int64_t cycles; | |
62 int64_t fft_cycles; | |
63 #endif | |
10725 | 64 } mdct_info; |
65 | |
66 typedef struct | |
67 { | |
12527 | 68 const real_t *long_window[2]; |
69 const real_t *short_window[2]; | |
10725 | 70 #ifdef LD_DEC |
12527 | 71 const real_t *ld_window[2]; |
10725 | 72 #endif |
73 | |
74 mdct_info *mdct256; | |
75 #ifdef LD_DEC | |
76 mdct_info *mdct1024; | |
77 #endif | |
78 mdct_info *mdct2048; | |
12527 | 79 #ifdef PROFILE |
80 int64_t cycles; | |
81 #endif | |
82 #ifdef USE_SSE | |
83 void (*if_func)(void *a, uint8_t b, uint8_t c, uint8_t d, real_t *e, real_t *f, uint8_t g, uint16_t h); | |
84 #endif | |
10725 | 85 } fb_info; |
86 | |
87 typedef struct | |
88 { | |
89 uint8_t present; | |
90 | |
91 uint8_t num_bands; | |
92 uint8_t pce_instance_tag; | |
93 uint8_t excluded_chns_present; | |
94 uint8_t band_top[17]; | |
95 uint8_t prog_ref_level; | |
96 uint8_t dyn_rng_sgn[17]; | |
97 uint8_t dyn_rng_ctl[17]; | |
98 uint8_t exclude_mask[MAX_CHANNELS]; | |
99 uint8_t additional_excluded_chns[MAX_CHANNELS]; | |
100 | |
101 real_t ctrl1; | |
102 real_t ctrl2; | |
103 } drc_info; | |
104 | |
105 typedef struct | |
106 { | |
107 uint8_t element_instance_tag; | |
108 uint8_t object_type; | |
109 uint8_t sf_index; | |
110 uint8_t num_front_channel_elements; | |
111 uint8_t num_side_channel_elements; | |
112 uint8_t num_back_channel_elements; | |
113 uint8_t num_lfe_channel_elements; | |
114 uint8_t num_assoc_data_elements; | |
115 uint8_t num_valid_cc_elements; | |
116 uint8_t mono_mixdown_present; | |
117 uint8_t mono_mixdown_element_number; | |
118 uint8_t stereo_mixdown_present; | |
119 uint8_t stereo_mixdown_element_number; | |
120 uint8_t matrix_mixdown_idx_present; | |
121 uint8_t pseudo_surround_enable; | |
122 uint8_t matrix_mixdown_idx; | |
123 uint8_t front_element_is_cpe[16]; | |
124 uint8_t front_element_tag_select[16]; | |
125 uint8_t side_element_is_cpe[16]; | |
126 uint8_t side_element_tag_select[16]; | |
127 uint8_t back_element_is_cpe[16]; | |
128 uint8_t back_element_tag_select[16]; | |
129 uint8_t lfe_element_tag_select[16]; | |
130 uint8_t assoc_data_element_tag_select[16]; | |
131 uint8_t cc_element_is_ind_sw[16]; | |
132 uint8_t valid_cc_element_tag_select[16]; | |
133 | |
134 uint8_t channels; | |
135 | |
136 uint8_t comment_field_bytes; | |
137 uint8_t comment_field_data[257]; | |
138 | |
139 /* extra added values */ | |
140 uint8_t num_front_channels; | |
141 uint8_t num_side_channels; | |
142 uint8_t num_back_channels; | |
143 uint8_t num_lfe_channels; | |
144 uint8_t sce_channel[16]; | |
145 uint8_t cpe_channel[16]; | |
146 } program_config; | |
147 | |
148 typedef struct | |
149 { | |
150 uint16_t syncword; | |
151 uint8_t id; | |
152 uint8_t layer; | |
153 uint8_t protection_absent; | |
154 uint8_t profile; | |
155 uint8_t sf_index; | |
156 uint8_t private_bit; | |
157 uint8_t channel_configuration; | |
158 uint8_t original; | |
159 uint8_t home; | |
160 uint8_t emphasis; | |
161 uint8_t copyright_identification_bit; | |
162 uint8_t copyright_identification_start; | |
163 uint16_t aac_frame_length; | |
164 uint16_t adts_buffer_fullness; | |
165 uint8_t no_raw_data_blocks_in_frame; | |
166 uint16_t crc_check; | |
10989 | 167 |
168 /* control param */ | |
169 uint8_t old_format; | |
10725 | 170 } adts_header; |
171 | |
172 typedef struct | |
173 { | |
174 uint8_t copyright_id_present; | |
175 int8_t copyright_id[10]; | |
176 uint8_t original_copy; | |
177 uint8_t home; | |
178 uint8_t bitstream_type; | |
179 uint32_t bitrate; | |
180 uint8_t num_program_config_elements; | |
181 uint32_t adif_buffer_fullness; | |
182 | |
183 /* maximum of 16 PCEs */ | |
184 program_config pce[16]; | |
185 } adif_header; | |
186 | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
187 #ifdef LTP_DEC |
10725 | 188 typedef struct |
189 { | |
190 uint8_t last_band; | |
191 uint8_t data_present; | |
192 uint16_t lag; | |
193 uint8_t lag_update; | |
194 uint8_t coef; | |
195 uint8_t long_used[MAX_SFB]; | |
196 uint8_t short_used[8]; | |
197 uint8_t short_lag_present[8]; | |
198 uint8_t short_lag[8]; | |
199 } ltp_info; | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
200 #endif |
10725 | 201 |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
202 #ifdef MAIN_DEC |
10725 | 203 typedef struct |
204 { | |
205 uint8_t limit; | |
206 uint8_t predictor_reset; | |
207 uint8_t predictor_reset_group_number; | |
208 uint8_t prediction_used[MAX_SFB]; | |
209 } pred_info; | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
210 #endif |
10725 | 211 |
212 typedef struct | |
213 { | |
214 uint8_t number_pulse; | |
215 uint8_t pulse_start_sfb; | |
216 uint8_t pulse_offset[4]; | |
217 uint8_t pulse_amp[4]; | |
218 } pulse_info; | |
219 | |
220 typedef struct | |
221 { | |
222 uint8_t n_filt[8]; | |
223 uint8_t coef_res[8]; | |
224 uint8_t length[8][4]; | |
225 uint8_t order[8][4]; | |
226 uint8_t direction[8][4]; | |
227 uint8_t coef_compress[8][4]; | |
228 uint8_t coef[8][4][32]; | |
229 } tns_info; | |
230 | |
231 #ifdef SSR_DEC | |
232 typedef struct | |
233 { | |
234 uint8_t max_band; | |
235 | |
236 uint8_t adjust_num[4][8]; | |
237 uint8_t alevcode[4][8][8]; | |
238 uint8_t aloccode[4][8][8]; | |
239 } ssr_info; | |
240 #endif | |
241 | |
242 typedef struct | |
243 { | |
244 uint8_t max_sfb; | |
245 | |
246 uint8_t num_swb; | |
247 uint8_t num_window_groups; | |
248 uint8_t num_windows; | |
249 uint8_t window_sequence; | |
250 uint8_t window_group_length[8]; | |
251 uint8_t window_shape; | |
252 uint8_t scale_factor_grouping; | |
253 uint16_t sect_sfb_offset[8][15*8]; | |
254 uint16_t swb_offset[52]; | |
255 | |
256 uint8_t sect_cb[8][15*8]; | |
257 uint16_t sect_start[8][15*8]; | |
258 uint16_t sect_end[8][15*8]; | |
259 uint8_t sfb_cb[8][8*15]; | |
260 uint8_t num_sec[8]; /* number of sections in a group */ | |
261 | |
262 uint8_t global_gain; | |
12527 | 263 int16_t scale_factors[8][51]; /* [0..255] */ |
10725 | 264 |
265 uint8_t ms_mask_present; | |
266 uint8_t ms_used[MAX_WINDOW_GROUPS][MAX_SFB]; | |
267 | |
268 uint8_t noise_used; | |
269 | |
270 uint8_t pulse_data_present; | |
271 uint8_t tns_data_present; | |
272 uint8_t gain_control_data_present; | |
273 uint8_t predictor_data_present; | |
274 | |
275 pulse_info pul; | |
276 tns_info tns; | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
277 #ifdef MAIN_DEC |
10725 | 278 pred_info pred; |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
279 #endif |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
280 #ifdef LTP_DEC |
10725 | 281 ltp_info ltp; |
282 ltp_info ltp2; | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
283 #endif |
10725 | 284 #ifdef SSR_DEC |
285 ssr_info ssr; | |
286 #endif | |
287 | |
288 #ifdef ERROR_RESILIENCE | |
289 /* ER HCR data */ | |
290 uint16_t length_of_reordered_spectral_data; | |
291 uint8_t length_of_longest_codeword; | |
292 /* ER RLVC data */ | |
293 uint8_t sf_concealment; | |
294 uint8_t rev_global_gain; | |
295 uint16_t length_of_rvlc_sf; | |
296 uint16_t dpcm_noise_nrg; | |
297 uint8_t sf_escapes_present; | |
298 uint8_t length_of_rvlc_escapes; | |
299 uint16_t dpcm_noise_last_position; | |
300 #endif | |
301 } ic_stream; /* individual channel stream */ | |
302 | |
303 typedef struct | |
304 { | |
305 uint8_t channel; | |
306 int16_t paired_channel; | |
307 | |
308 uint8_t element_instance_tag; | |
309 uint8_t common_window; | |
310 | |
311 ic_stream ics1; | |
312 ic_stream ics2; | |
313 } element; /* syntax element (SCE, CPE, LFE) */ | |
314 | |
315 typedef struct mp4AudioSpecificConfig | |
316 { | |
317 /* Audio Specific Info */ | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
318 /*uint8_t*/ unsigned char objectTypeIndex; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
319 /*uint8_t*/ unsigned char samplingFrequencyIndex; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
320 /*uint32_t*/ unsigned long samplingFrequency; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
321 /*uint8_t*/ unsigned char channelsConfiguration; |
10725 | 322 |
323 /* GA Specific Info */ | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
324 /*uint8_t*/ unsigned char frameLengthFlag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
325 /*uint8_t*/ unsigned char dependsOnCoreCoder; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
326 /*uint16_t*/ unsigned short coreCoderDelay; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
327 /*uint8_t*/ unsigned char extensionFlag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
328 /*uint8_t*/ unsigned char aacSectionDataResilienceFlag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
329 /*uint8_t*/ unsigned char aacScalefactorDataResilienceFlag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
330 /*uint8_t*/ unsigned char aacSpectralDataResilienceFlag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
331 /*uint8_t*/ unsigned char epConfig; |
10725 | 332 |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
333 /*uint8_t*/ char sbr_present_flag; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
334 /*uint8_t*/ char forceUpSampling; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
335 /*uint8_t*/ char downSampledSBR; |
10725 | 336 } mp4AudioSpecificConfig; |
337 | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
338 typedef struct NeAACDecConfiguration |
10725 | 339 { |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
340 /*uint8_t*/ unsigned char defObjectType; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
341 /*uint32_t*/ unsigned long defSampleRate; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
342 /*uint8_t*/ unsigned char outputFormat; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
343 /*uint8_t*/ unsigned char downMatrix; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
344 /*uint8_t*/ unsigned char useOldADTSFormat; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
345 /*uint8_t*/ unsigned char dontUpSampleImplicitSBR; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
346 } NeAACDecConfiguration, *NeAACDecConfigurationPtr; |
10725 | 347 |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
348 typedef struct NeAACDecFrameInfo |
10725 | 349 { |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
350 /*uint32_t*/ unsigned long bytesconsumed; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
351 /*uint32_t*/ unsigned long samples; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
352 /*uint8_t*/ unsigned char channels; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
353 /*uint8_t*/ unsigned char error; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
354 /*uint32_t*/ unsigned long samplerate; |
10725 | 355 |
10989 | 356 /* SBR: 0: off, 1: on; normal, 2: on; downsampled */ |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
357 /*uint8_t*/ unsigned char sbr; |
10989 | 358 |
359 /* MPEG-4 ObjectType */ | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
360 /*uint8_t*/ unsigned char object_type; |
10989 | 361 |
362 /* AAC header type; MP4 will be signalled as RAW also */ | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
363 /*uint8_t*/ unsigned char header_type; |
10989 | 364 |
10725 | 365 /* multichannel configuration */ |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
366 /*uint8_t*/ unsigned char num_front_channels; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
367 /*uint8_t*/ unsigned char num_side_channels; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
368 /*uint8_t*/ unsigned char num_back_channels; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
369 /*uint8_t*/ unsigned char num_lfe_channels; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
370 /*uint8_t*/ unsigned char channel_position[MAX_CHANNELS]; |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
371 } NeAACDecFrameInfo; |
10725 | 372 |
373 typedef struct | |
374 { | |
375 uint8_t adts_header_present; | |
376 uint8_t adif_header_present; | |
377 uint8_t sf_index; | |
378 uint8_t object_type; | |
379 uint8_t channelConfiguration; | |
380 #ifdef ERROR_RESILIENCE | |
381 uint8_t aacSectionDataResilienceFlag; | |
382 uint8_t aacScalefactorDataResilienceFlag; | |
383 uint8_t aacSpectralDataResilienceFlag; | |
384 #endif | |
385 uint16_t frameLength; | |
386 uint8_t postSeekResetFlag; | |
387 | |
388 uint32_t frame; | |
389 | |
390 uint8_t downMatrix; | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
391 uint8_t upMatrix; |
10725 | 392 uint8_t first_syn_ele; |
393 uint8_t has_lfe; | |
12527 | 394 /* number of channels in current frame */ |
10725 | 395 uint8_t fr_channels; |
12527 | 396 /* number of elements in current frame */ |
10725 | 397 uint8_t fr_ch_ele; |
398 | |
12527 | 399 /* element_output_channels: |
400 determines the number of channels the element will output | |
401 */ | |
402 uint8_t element_output_channels[MAX_SYNTAX_ELEMENTS]; | |
403 /* element_alloced: | |
404 determines whether the data needed for the element is allocated or not | |
405 */ | |
406 uint8_t element_alloced[MAX_SYNTAX_ELEMENTS]; | |
407 /* alloced_channels: | |
408 determines the number of channels where output data is allocated for | |
409 */ | |
410 uint8_t alloced_channels; | |
411 | |
412 /* output data buffer */ | |
10725 | 413 void *sample_buffer; |
414 | |
415 uint8_t window_shape_prev[MAX_CHANNELS]; | |
416 #ifdef LTP_DEC | |
417 uint16_t ltp_lag[MAX_CHANNELS]; | |
418 #endif | |
419 fb_info *fb; | |
420 drc_info *drc; | |
421 | |
422 real_t *time_out[MAX_CHANNELS]; | |
12527 | 423 real_t *fb_intermed[MAX_CHANNELS]; |
10725 | 424 |
425 #ifdef SBR_DEC | |
426 int8_t sbr_present_flag; | |
10989 | 427 int8_t forceUpSampling; |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
428 int8_t downSampledSBR; |
12527 | 429 /* determines whether SBR data is allocated for the gives element */ |
430 uint8_t sbr_alloced[MAX_SYNTAX_ELEMENTS]; | |
10725 | 431 |
12527 | 432 sbr_info *sbr[MAX_SYNTAX_ELEMENTS]; |
10725 | 433 #endif |
12527 | 434 #if (defined(PS_DEC) || defined(DRM_PS)) |
435 uint8_t ps_used[MAX_SYNTAX_ELEMENTS]; | |
436 #endif | |
10725 | 437 |
438 #ifdef SSR_DEC | |
439 real_t *ssr_overlap[MAX_CHANNELS]; | |
440 real_t *prev_fmd[MAX_CHANNELS]; | |
441 real_t ipqf_buffer[MAX_CHANNELS][4][96/4]; | |
442 #endif | |
443 | |
444 #ifdef MAIN_DEC | |
445 pred_state *pred_stat[MAX_CHANNELS]; | |
446 #endif | |
447 #ifdef LTP_DEC | |
12527 | 448 int16_t *lt_pred_stat[MAX_CHANNELS]; |
10725 | 449 #endif |
450 | |
451 /* Program Config Element */ | |
452 uint8_t pce_set; | |
453 program_config pce; | |
12527 | 454 uint8_t element_id[MAX_CHANNELS]; |
10725 | 455 uint8_t internal_channel[MAX_CHANNELS]; |
456 | |
457 /* Configuration data */ | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
458 NeAACDecConfiguration config; |
12527 | 459 |
460 #ifdef USE_SSE | |
461 void (*apply_sf_func)(void *a, void *b, void *c, uint16_t d); | |
462 #endif | |
463 | |
464 #ifdef PROFILE | |
465 int64_t cycles; | |
466 int64_t spectral_cycles; | |
467 int64_t output_cycles; | |
468 int64_t scalefac_cycles; | |
469 int64_t requant_cycles; | |
470 #endif | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
471 } NeAACDecStruct, *NeAACDecHandle; |
10725 | 472 |
473 | |
474 | |
475 #ifdef __cplusplus | |
476 } | |
477 #endif | |
478 #endif |