annotate libfaad2/sbr_dec.h @ 12885:010a28a43c9f

fix for people experimenting with GUI under windows
author reimar
date Thu, 22 Jul 2004 19:07:13 +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
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
4 **
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.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
9 **
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.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
14 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
15 ** You should have received a copy of the GNU General Public License
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
16 ** along with this program; if not, write to the Free Software
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: sbr_dec.h,v 1.3 2004/06/02 22:59:03 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 __SBR_DEC_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 #define __SBR_DEC_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
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
37 #ifdef PS_DEC
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
38 #include "ps_dec.h"
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
39 #endif
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
40 #ifdef DRM_PS
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
41 #include "drm_dec.h"
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
42 #endif
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
43
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
44 /* MAX_NTSRHFG: maximum of number_time_slots * rate + HFGen. 16*2+8 */
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
45 #define MAX_NTSRHFG 40
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
46 #define MAX_NTSR 32 /* max number_time_slots * rate, ok for DRM and not DRM mode */
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
47
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
48
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
49 typedef struct {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
50 real_t *x;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
51 uint8_t channels;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
52 } qmfa_info;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
53
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
54 typedef struct {
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
55 real_t *v[2];
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
56 uint8_t v_index;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
57 uint8_t channels;
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
58 #ifdef USE_SSE
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
59 void (*qmf_func)(void *a, void *b, void *c, void *d);
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
60 #endif
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
61 } qmfs_info;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
62
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
63 typedef struct
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
64 {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
65 uint32_t sample_rate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
66
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
67 uint8_t rate;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
68 uint8_t just_seeked;
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
69 uint8_t ret;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
70
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
71 uint8_t amp_res[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
72
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
73 uint8_t k0;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
74 uint8_t kx;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
75 uint8_t M;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
76 uint8_t N_master;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
77 uint8_t N_high;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
78 uint8_t N_low;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
79 uint8_t N_Q;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
80 uint8_t N_L[4];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
81 uint8_t n[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
82
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
83 uint8_t f_master[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
84 uint8_t f_table_res[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
85 uint8_t f_table_noise[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
86 uint8_t f_table_lim[4][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
87 #ifdef SBR_LOW_POWER
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
88 uint8_t f_group[5][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
89 uint8_t N_G[5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
90 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
91
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
92 uint8_t table_map_k_to_g[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
93
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
94 uint8_t abs_bord_lead[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
95 uint8_t abs_bord_trail[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
96 uint8_t n_rel_lead[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
97 uint8_t n_rel_trail[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
98
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
99 uint8_t L_E[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
100 uint8_t L_E_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
101 uint8_t L_Q[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
102
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
103 uint8_t t_E[2][6];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
104 uint8_t t_Q[2][3];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
105 uint8_t f[2][6];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
106 uint8_t f_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
107
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
108 real_t *G_temp_prev[2][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
109 real_t *Q_temp_prev[2][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
110
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
111 int16_t E[2][64][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
112 int16_t E_prev[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
113 real_t E_orig[2][64][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
114 real_t E_curr[2][64][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
115 int32_t Q[2][64][2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
116 int32_t Q_prev[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
117 real_t Q_orig[2][64][2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
118
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
119 int8_t l_A[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
120 int8_t l_A_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
121
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
122 uint8_t bs_invf_mode[2][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
123 uint8_t bs_invf_mode_prev[2][5];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
124 real_t bwArray[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
125 real_t bwArray_prev[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
126
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
127 uint8_t noPatches;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
128 uint8_t patchNoSubbands[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
129 uint8_t patchStartSubband[64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
130
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
131 uint8_t bs_add_harmonic[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
132 uint8_t bs_add_harmonic_prev[2][64];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
133
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
134 uint16_t index_noise_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
135 uint8_t psi_is_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
136
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
137 uint8_t bs_start_freq_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
138 uint8_t bs_stop_freq_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
139 uint8_t bs_xover_band_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
140 uint8_t bs_freq_scale_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
141 uint8_t bs_alter_scale_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
142 uint8_t bs_noise_bands_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
143
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
144 int8_t prevEnvIsShort[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
145
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
146 int8_t kx_prev;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
147
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
148 uint8_t Reset;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
149 uint32_t frame;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
150 uint32_t header_count;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
151
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
152 uint8_t id_aac;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
153 qmfa_info *qmfa[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
154 qmfs_info *qmfs[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
155
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
156 qmf_t Xsbr[2][MAX_NTSRHFG][64];
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
157 qmf_t Xcodec[2][MAX_NTSRHFG][32];
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
158
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
159 #ifdef DRM
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
160 int8_t lcstereo_flag;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
161 uint8_t bs_dataextra;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
162 uint8_t Is_DRM_SBR;
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
163 #ifdef DRM_PS
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
164 drm_ps_info drm_ps;
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
165 #endif
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
166 #endif
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
167
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
168 uint8_t numTimeSlotsRate;
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
169 uint8_t numTimeSlots;
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
170 uint8_t tHFGen;
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
171 uint8_t tHFAdj;
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
172
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
173 #ifdef PS_DEC
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
174 ps_info ps;
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
175 #endif
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
176 #if (defined(PS_DEC) || defined(DRM_PS))
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
177 uint8_t ps_used;
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
178 #endif
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
179
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
180 /* to get it compiling */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
181 /* we'll see during the coding of all the tools, whether
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
182 these are all used or not.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
183 */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
184 uint8_t bs_header_flag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
185 uint8_t bs_crc_flag;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
186 uint16_t bs_sbr_crc_bits;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
187 uint8_t bs_protocol_version;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
188 uint8_t bs_amp_res;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
189 uint8_t bs_start_freq;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
190 uint8_t bs_stop_freq;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
191 uint8_t bs_xover_band;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
192 uint8_t bs_freq_scale;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
193 uint8_t bs_alter_scale;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
194 uint8_t bs_noise_bands;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
195 uint8_t bs_limiter_bands;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
196 uint8_t bs_limiter_gains;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
197 uint8_t bs_interpol_freq;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
198 uint8_t bs_smoothing_mode;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
199 uint8_t bs_samplerate_mode;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
200 uint8_t bs_add_harmonic_flag[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
201 uint8_t bs_add_harmonic_flag_prev[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
202 uint8_t bs_extended_data;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
203 uint8_t bs_extension_id;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
204 uint8_t bs_extension_data;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
205 uint8_t bs_coupling;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
206 uint8_t bs_frame_class[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
207 uint8_t bs_rel_bord[2][9];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
208 uint8_t bs_rel_bord_0[2][9];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
209 uint8_t bs_rel_bord_1[2][9];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
210 uint8_t bs_pointer[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
211 uint8_t bs_abs_bord_0[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
212 uint8_t bs_abs_bord_1[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
213 uint8_t bs_num_rel_0[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
214 uint8_t bs_num_rel_1[2];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
215 uint8_t bs_df_env[2][9];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
216 uint8_t bs_df_noise[2][3];
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
217 } sbr_info;
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
218
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
219 sbr_info *sbrDecodeInit(uint16_t framelength, uint8_t id_aac,
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
220 uint32_t sample_rate
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
221 #ifdef DRM
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
222 , uint8_t IsDRM
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
223 #endif
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
224 );
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
225 void sbrDecodeEnd(sbr_info *sbr);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
226
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
227 uint8_t sbrDecodeCoupleFrame(sbr_info *sbr, real_t *left_chan, real_t *right_chan,
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
228 const uint8_t just_seeked, const uint8_t upsample_only);
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
229 uint8_t sbrDecodeSingleFrame(sbr_info *sbr, real_t *channel,
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
230 const uint8_t just_seeked, const uint8_t upsample_only);
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
231 #if (defined(PS_DEC) || defined(DRM_PS))
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
232 uint8_t sbrDecodeSingleFramePS(sbr_info *sbr, real_t *left_channel, real_t *right_channel,
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
233 const uint8_t just_seeked, const uint8_t upsample_only);
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
234 #endif
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
235
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
236
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
237 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
238 }
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
239 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
240 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
241