comparison qdm2data.h @ 3411:5d17415fb535 libavcodec

Mark read-only data as const. Patch by stefan huehner org.
author banan
date Tue, 04 Jul 2006 19:15:47 +0000
parents 0b546eab515d
children c8c591fe26f8
comparison
equal deleted inserted replaced
3410:3b72265410f3 3411:5d17415fb535
30 #define QDM2DATA_H 30 #define QDM2DATA_H
31 31
32 /** VLC TABLES **/ 32 /** VLC TABLES **/
33 33
34 /* values in this table range from -1..23; adjust retrieved value by -1 */ 34 /* values in this table range from -1..23; adjust retrieved value by -1 */
35 static uint16_t vlc_tab_level_huffcodes[24] = { 35 static const uint16_t vlc_tab_level_huffcodes[24] = {
36 0x037c, 0x0004, 0x003c, 0x004c, 0x003a, 0x002c, 0x001c, 0x001a, 36 0x037c, 0x0004, 0x003c, 0x004c, 0x003a, 0x002c, 0x001c, 0x001a,
37 0x0024, 0x0014, 0x0001, 0x0002, 0x0000, 0x0003, 0x0007, 0x0005, 37 0x0024, 0x0014, 0x0001, 0x0002, 0x0000, 0x0003, 0x0007, 0x0005,
38 0x0006, 0x0008, 0x0009, 0x000a, 0x000c, 0x00fc, 0x007c, 0x017c 38 0x0006, 0x0008, 0x0009, 0x000a, 0x000c, 0x00fc, 0x007c, 0x017c
39 }; 39 };
40 40
41 static uint8_t vlc_tab_level_huffbits[24] = { 41 static const uint8_t vlc_tab_level_huffbits[24] = {
42 10, 6, 7, 7, 6, 6, 6, 6, 6, 5, 4, 4, 4, 3, 3, 3, 3, 4, 4, 5, 7, 8, 9, 10 42 10, 6, 7, 7, 6, 6, 6, 6, 6, 5, 4, 4, 4, 3, 3, 3, 3, 4, 4, 5, 7, 8, 9, 10
43 }; 43 };
44 44
45 /* values in this table range from -1..36; adjust retrieved value by -1 */ 45 /* values in this table range from -1..36; adjust retrieved value by -1 */
46 static uint16_t vlc_tab_diff_huffcodes[37] = { 46 static const uint16_t vlc_tab_diff_huffcodes[37] = {
47 0x1c57, 0x0004, 0x0000, 0x0001, 0x0003, 0x0002, 0x000f, 0x000e, 47 0x1c57, 0x0004, 0x0000, 0x0001, 0x0003, 0x0002, 0x000f, 0x000e,
48 0x0007, 0x0016, 0x0037, 0x0027, 0x0026, 0x0066, 0x0006, 0x0097, 48 0x0007, 0x0016, 0x0037, 0x0027, 0x0026, 0x0066, 0x0006, 0x0097,
49 0x0046, 0x01c6, 0x0017, 0x0786, 0x0086, 0x0257, 0x00d7, 0x0357, 49 0x0046, 0x01c6, 0x0017, 0x0786, 0x0086, 0x0257, 0x00d7, 0x0357,
50 0x00c6, 0x0386, 0x0186, 0x0000, 0x0157, 0x0c57, 0x0057, 0x0000, 50 0x00c6, 0x0386, 0x0186, 0x0000, 0x0157, 0x0c57, 0x0057, 0x0000,
51 0x0b86, 0x0000, 0x1457, 0x0000, 0x0457 51 0x0b86, 0x0000, 0x1457, 0x0000, 0x0457
52 }; 52 };
53 53
54 static uint8_t vlc_tab_diff_huffbits[37] = { 54 static const uint8_t vlc_tab_diff_huffbits[37] = {
55 13, 3, 3, 2, 3, 3, 4, 4, 6, 5, 6, 6, 7, 7, 8, 8, 55 13, 3, 3, 2, 3, 3, 4, 4, 6, 5, 6, 6, 7, 7, 8, 8,
56 8, 9, 8, 11, 9, 10, 8, 10, 9, 12, 10, 0, 10, 13, 11, 0, 56 8, 9, 8, 11, 9, 10, 8, 10, 9, 12, 10, 0, 10, 13, 11, 0,
57 12, 0, 13, 0, 13 57 12, 0, 13, 0, 13
58 }; 58 };
59 59
60 /* values in this table range from -1..5; adjust retrieved value by -1 */ 60 /* values in this table range from -1..5; adjust retrieved value by -1 */
61 static uint8_t vlc_tab_run_huffcodes[6] = { 61 static const uint8_t vlc_tab_run_huffcodes[6] = {
62 0x1f, 0x00, 0x01, 0x03, 0x07, 0x0f 62 0x1f, 0x00, 0x01, 0x03, 0x07, 0x0f
63 }; 63 };
64 64
65 static uint8_t vlc_tab_run_huffbits[6] = { 65 static const uint8_t vlc_tab_run_huffbits[6] = {
66 5, 1, 2, 3, 4, 5 66 5, 1, 2, 3, 4, 5
67 }; 67 };
68 68
69 /* values in this table range from -1..19; adjust retrieved value by -1 */ 69 /* values in this table range from -1..19; adjust retrieved value by -1 */
70 static uint16_t vlc_tab_tone_level_idx_hi1_huffcodes[20] = { 70 static const uint16_t vlc_tab_tone_level_idx_hi1_huffcodes[20] = {
71 0x5714, 0x000c, 0x0002, 0x0001, 0x0000, 0x0004, 0x0034, 0x0054, 71 0x5714, 0x000c, 0x0002, 0x0001, 0x0000, 0x0004, 0x0034, 0x0054,
72 0x0094, 0x0014, 0x0114, 0x0214, 0x0314, 0x0614, 0x0e14, 0x0f14, 72 0x0094, 0x0014, 0x0114, 0x0214, 0x0314, 0x0614, 0x0e14, 0x0f14,
73 0x2714, 0x0714, 0x1714, 0x3714 73 0x2714, 0x0714, 0x1714, 0x3714
74 }; 74 };
75 75
76 static uint8_t vlc_tab_tone_level_idx_hi1_huffbits[20] = { 76 static const uint8_t vlc_tab_tone_level_idx_hi1_huffbits[20] = {
77 15, 4, 2, 1, 3, 5, 6, 7, 8, 10, 10, 11, 11, 12, 12, 12, 14, 14, 15, 14 77 15, 4, 2, 1, 3, 5, 6, 7, 8, 10, 10, 11, 11, 12, 12, 12, 14, 14, 15, 14
78 }; 78 };
79 79
80 /* values in this table range from -1..23; adjust retrieved value by -1 */ 80 /* values in this table range from -1..23; adjust retrieved value by -1 */
81 static uint16_t vlc_tab_tone_level_idx_mid_huffcodes[24] = { 81 static const uint16_t vlc_tab_tone_level_idx_mid_huffcodes[24] = {
82 0x0fea, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 82 0x0fea, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
83 0x0000, 0x0000, 0x0000, 0x0000, 0x03ea, 0x00ea, 0x002a, 0x001a, 83 0x0000, 0x0000, 0x0000, 0x0000, 0x03ea, 0x00ea, 0x002a, 0x001a,
84 0x0006, 0x0001, 0x0000, 0x0002, 0x000a, 0x006a, 0x01ea, 0x07ea 84 0x0006, 0x0001, 0x0000, 0x0002, 0x000a, 0x006a, 0x01ea, 0x07ea
85 }; 85 };
86 86
87 static uint8_t vlc_tab_tone_level_idx_mid_huffbits[24] = { 87 static const uint8_t vlc_tab_tone_level_idx_mid_huffbits[24] = {
88 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 9, 7, 5, 3, 1, 2, 4, 6, 8, 10, 12 88 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 9, 7, 5, 3, 1, 2, 4, 6, 8, 10, 12
89 }; 89 };
90 90
91 /* values in this table range from -1..23; adjust retrieved value by -1 */ 91 /* values in this table range from -1..23; adjust retrieved value by -1 */
92 static uint16_t vlc_tab_tone_level_idx_hi2_huffcodes[24] = { 92 static const uint16_t vlc_tab_tone_level_idx_hi2_huffcodes[24] = {
93 0x0664, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0064, 0x00e4, 93 0x0664, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0064, 0x00e4,
94 0x00a4, 0x0068, 0x0004, 0x0008, 0x0014, 0x0018, 0x0000, 0x0001, 94 0x00a4, 0x0068, 0x0004, 0x0008, 0x0014, 0x0018, 0x0000, 0x0001,
95 0x0002, 0x0003, 0x000c, 0x0028, 0x0024, 0x0164, 0x0000, 0x0264 95 0x0002, 0x0003, 0x000c, 0x0028, 0x0024, 0x0164, 0x0000, 0x0264
96 }; 96 };
97 97
98 static uint8_t vlc_tab_tone_level_idx_hi2_huffbits[24] = { 98 static const uint8_t vlc_tab_tone_level_idx_hi2_huffbits[24] = {
99 11, 0, 0, 0, 0, 0, 10, 8, 8, 7, 6, 6, 5, 5, 4, 2, 2, 2, 4, 7, 8, 9, 0, 11 99 11, 0, 0, 0, 0, 0, 10, 8, 8, 7, 6, 6, 5, 5, 4, 2, 2, 2, 4, 7, 8, 9, 0, 11
100 }; 100 };
101 101
102 /* values in this table range from -1..8; adjust retrieved value by -1 */ 102 /* values in this table range from -1..8; adjust retrieved value by -1 */
103 static uint8_t vlc_tab_type30_huffcodes[9] = { 103 static const uint8_t vlc_tab_type30_huffcodes[9] = {
104 0x3c, 0x06, 0x00, 0x01, 0x03, 0x02, 0x04, 0x0c, 0x1c 104 0x3c, 0x06, 0x00, 0x01, 0x03, 0x02, 0x04, 0x0c, 0x1c
105 }; 105 };
106 106
107 static uint8_t vlc_tab_type30_huffbits[9] = { 107 static const uint8_t vlc_tab_type30_huffbits[9] = {
108 6, 3, 3, 2, 2, 3, 4, 5, 6 108 6, 3, 3, 2, 2, 3, 4, 5, 6
109 }; 109 };
110 110
111 /* values in this table range from -1..9; adjust retrieved value by -1 */ 111 /* values in this table range from -1..9; adjust retrieved value by -1 */
112 static uint8_t vlc_tab_type34_huffcodes[10] = { 112 static const uint8_t vlc_tab_type34_huffcodes[10] = {
113 0x18, 0x00, 0x01, 0x04, 0x05, 0x07, 0x03, 0x02, 0x06, 0x08 113 0x18, 0x00, 0x01, 0x04, 0x05, 0x07, 0x03, 0x02, 0x06, 0x08
114 }; 114 };
115 115
116 static uint8_t vlc_tab_type34_huffbits[10] = { 116 static const uint8_t vlc_tab_type34_huffbits[10] = {
117 5, 4, 3, 3, 3, 3, 3, 3, 3, 5 117 5, 4, 3, 3, 3, 3, 3, 3, 3, 5
118 }; 118 };
119 119
120 /* values in this table range from -1..22; adjust retrieved value by -1 */ 120 /* values in this table range from -1..22; adjust retrieved value by -1 */
121 static uint16_t vlc_tab_fft_tone_offset_0_huffcodes[23] = { 121 static const uint16_t vlc_tab_fft_tone_offset_0_huffcodes[23] = {
122 0x038e, 0x0001, 0x0000, 0x0022, 0x000a, 0x0006, 0x0012, 0x0002, 122 0x038e, 0x0001, 0x0000, 0x0022, 0x000a, 0x0006, 0x0012, 0x0002,
123 0x001e, 0x003e, 0x0056, 0x0016, 0x000e, 0x0032, 0x0072, 0x0042, 123 0x001e, 0x003e, 0x0056, 0x0016, 0x000e, 0x0032, 0x0072, 0x0042,
124 0x008e, 0x004e, 0x00f2, 0x002e, 0x0036, 0x00c2, 0x018e 124 0x008e, 0x004e, 0x00f2, 0x002e, 0x0036, 0x00c2, 0x018e
125 }; 125 };
126 126
127 static uint8_t vlc_tab_fft_tone_offset_0_huffbits[23] = { 127 static const uint8_t vlc_tab_fft_tone_offset_0_huffbits[23] = {
128 10, 1, 2, 6, 4, 5, 6, 7, 6, 6, 7, 7, 8, 7, 8, 8, 9, 7, 8, 6, 6, 8, 10 128 10, 1, 2, 6, 4, 5, 6, 7, 6, 6, 7, 7, 8, 7, 8, 8, 9, 7, 8, 6, 6, 8, 10
129 }; 129 };
130 130
131 /* values in this table range from -1..27; adjust retrieved value by -1 */ 131 /* values in this table range from -1..27; adjust retrieved value by -1 */
132 static uint16_t vlc_tab_fft_tone_offset_1_huffcodes[28] = { 132 static const uint16_t vlc_tab_fft_tone_offset_1_huffcodes[28] = {
133 0x07a4, 0x0001, 0x0020, 0x0012, 0x001c, 0x0008, 0x0006, 0x0010, 133 0x07a4, 0x0001, 0x0020, 0x0012, 0x001c, 0x0008, 0x0006, 0x0010,
134 0x0000, 0x0014, 0x0004, 0x0032, 0x0070, 0x000c, 0x0002, 0x003a, 134 0x0000, 0x0014, 0x0004, 0x0032, 0x0070, 0x000c, 0x0002, 0x003a,
135 0x001a, 0x002c, 0x002a, 0x0022, 0x0024, 0x000a, 0x0064, 0x0030, 135 0x001a, 0x002c, 0x002a, 0x0022, 0x0024, 0x000a, 0x0064, 0x0030,
136 0x0062, 0x00a4, 0x01a4, 0x03a4 136 0x0062, 0x00a4, 0x01a4, 0x03a4
137 }; 137 };
138 138
139 static uint8_t vlc_tab_fft_tone_offset_1_huffbits[28] = { 139 static const uint8_t vlc_tab_fft_tone_offset_1_huffbits[28] = {
140 11, 1, 6, 6, 5, 4, 3, 6, 6, 5, 6, 6, 7, 6, 6, 6, 140 11, 1, 6, 6, 5, 4, 3, 6, 6, 5, 6, 6, 7, 6, 6, 6,
141 6, 6, 6, 7, 8, 6, 7, 7, 7, 9, 10, 11 141 6, 6, 6, 7, 8, 6, 7, 7, 7, 9, 10, 11
142 }; 142 };
143 143
144 /* values in this table range from -1..31; adjust retrieved value by -1 */ 144 /* values in this table range from -1..31; adjust retrieved value by -1 */
145 static uint16_t vlc_tab_fft_tone_offset_2_huffcodes[32] = { 145 static const uint16_t vlc_tab_fft_tone_offset_2_huffcodes[32] = {
146 0x1760, 0x0001, 0x0000, 0x0082, 0x000c, 0x0006, 0x0003, 0x0007, 146 0x1760, 0x0001, 0x0000, 0x0082, 0x000c, 0x0006, 0x0003, 0x0007,
147 0x0008, 0x0004, 0x0010, 0x0012, 0x0022, 0x001a, 0x0000, 0x0020, 147 0x0008, 0x0004, 0x0010, 0x0012, 0x0022, 0x001a, 0x0000, 0x0020,
148 0x000a, 0x0040, 0x004a, 0x006a, 0x002a, 0x0042, 0x0002, 0x0060, 148 0x000a, 0x0040, 0x004a, 0x006a, 0x002a, 0x0042, 0x0002, 0x0060,
149 0x00aa, 0x00e0, 0x00c2, 0x01c2, 0x0160, 0x0360, 0x0760, 0x0f60 149 0x00aa, 0x00e0, 0x00c2, 0x01c2, 0x0160, 0x0360, 0x0760, 0x0f60
150 }; 150 };
151 151
152 static uint8_t vlc_tab_fft_tone_offset_2_huffbits[32] = { 152 static const uint8_t vlc_tab_fft_tone_offset_2_huffbits[32] = {
153 13, 2, 0, 8, 4, 3, 3, 3, 4, 4, 5, 5, 6, 5, 7, 7, 153 13, 2, 0, 8, 4, 3, 3, 3, 4, 4, 5, 5, 6, 5, 7, 7,
154 7, 7, 7, 7, 8, 8, 8, 9, 8, 8, 9, 9, 10, 11, 13, 12 154 7, 7, 7, 7, 8, 8, 8, 9, 8, 8, 9, 9, 10, 11, 13, 12
155 }; 155 };
156 156
157 /* values in this table range from -1..34; adjust retrieved value by -1 */ 157 /* values in this table range from -1..34; adjust retrieved value by -1 */
158 static uint16_t vlc_tab_fft_tone_offset_3_huffcodes[35] = { 158 static const uint16_t vlc_tab_fft_tone_offset_3_huffcodes[35] = {
159 0x33ea, 0x0005, 0x0000, 0x000c, 0x0000, 0x0006, 0x0003, 0x0008, 159 0x33ea, 0x0005, 0x0000, 0x000c, 0x0000, 0x0006, 0x0003, 0x0008,
160 0x0002, 0x0001, 0x0004, 0x0007, 0x001a, 0x000f, 0x001c, 0x002c, 160 0x0002, 0x0001, 0x0004, 0x0007, 0x001a, 0x000f, 0x001c, 0x002c,
161 0x000a, 0x001d, 0x002d, 0x002a, 0x000d, 0x004c, 0x008c, 0x006a, 161 0x000a, 0x001d, 0x002d, 0x002a, 0x000d, 0x004c, 0x008c, 0x006a,
162 0x00cd, 0x004d, 0x00ea, 0x020c, 0x030c, 0x010c, 0x01ea, 0x07ea, 162 0x00cd, 0x004d, 0x00ea, 0x020c, 0x030c, 0x010c, 0x01ea, 0x07ea,
163 0x0bea, 0x03ea, 0x13ea 163 0x0bea, 0x03ea, 0x13ea
164 }; 164 };
165 165
166 static uint8_t vlc_tab_fft_tone_offset_3_huffbits[35] = { 166 static const uint8_t vlc_tab_fft_tone_offset_3_huffbits[35] = {
167 14, 4, 0, 10, 4, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6, 167 14, 4, 0, 10, 4, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6,
168 6, 5, 6, 7, 7, 7, 8, 8, 8, 8, 9, 10, 10, 10, 10, 11, 168 6, 5, 6, 7, 7, 7, 8, 8, 8, 8, 9, 10, 10, 10, 10, 11,
169 12, 13, 14 169 12, 13, 14
170 }; 170 };
171 171
172 /* values in this table range from -1..37; adjust retrieved value by -1 */ 172 /* values in this table range from -1..37; adjust retrieved value by -1 */
173 static uint16_t vlc_tab_fft_tone_offset_4_huffcodes[38] = { 173 static const uint16_t vlc_tab_fft_tone_offset_4_huffcodes[38] = {
174 0x5282, 0x0016, 0x0000, 0x0136, 0x0004, 0x0000, 0x0007, 0x000a, 174 0x5282, 0x0016, 0x0000, 0x0136, 0x0004, 0x0000, 0x0007, 0x000a,
175 0x000e, 0x0003, 0x0001, 0x000d, 0x0006, 0x0009, 0x0012, 0x0005, 175 0x000e, 0x0003, 0x0001, 0x000d, 0x0006, 0x0009, 0x0012, 0x0005,
176 0x0025, 0x0022, 0x0015, 0x0002, 0x0076, 0x0035, 0x0042, 0x00c2, 176 0x0025, 0x0022, 0x0015, 0x0002, 0x0076, 0x0035, 0x0042, 0x00c2,
177 0x0182, 0x00b6, 0x0036, 0x03c2, 0x0482, 0x01c2, 0x0682, 0x0882, 177 0x0182, 0x00b6, 0x0036, 0x03c2, 0x0482, 0x01c2, 0x0682, 0x0882,
178 0x0a82, 0x0082, 0x0282, 0x1282, 0x3282, 0x2282 178 0x0a82, 0x0082, 0x0282, 0x1282, 0x3282, 0x2282
179 }; 179 };
180 180
181 static uint8_t vlc_tab_fft_tone_offset_4_huffbits[38] = { 181 static const uint8_t vlc_tab_fft_tone_offset_4_huffbits[38] = {
182 15, 6, 0, 9, 3, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6, 182 15, 6, 0, 9, 3, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6,
183 6, 6, 6, 8, 7, 6, 8, 9, 9, 8, 9, 10, 11, 10, 11, 12, 183 6, 6, 6, 8, 7, 6, 8, 9, 9, 8, 9, 10, 11, 10, 11, 12,
184 12, 12, 14, 15, 14, 14 184 12, 12, 14, 15, 14, 14
185 }; 185 };
186 186
187 /** FFT TABLES **/ 187 /** FFT TABLES **/
188 188
189 /* values in this table range from -1..27; adjust retrieved value by -1 */ 189 /* values in this table range from -1..27; adjust retrieved value by -1 */
190 static uint16_t fft_level_exp_alt_huffcodes[28] = { 190 static const uint16_t fft_level_exp_alt_huffcodes[28] = {
191 0x1ec6, 0x0006, 0x00c2, 0x0142, 0x0242, 0x0246, 0x00c6, 0x0046, 191 0x1ec6, 0x0006, 0x00c2, 0x0142, 0x0242, 0x0246, 0x00c6, 0x0046,
192 0x0042, 0x0146, 0x00a2, 0x0062, 0x0026, 0x0016, 0x000e, 0x0005, 192 0x0042, 0x0146, 0x00a2, 0x0062, 0x0026, 0x0016, 0x000e, 0x0005,
193 0x0004, 0x0003, 0x0000, 0x0001, 0x000a, 0x0012, 0x0002, 0x0022, 193 0x0004, 0x0003, 0x0000, 0x0001, 0x000a, 0x0012, 0x0002, 0x0022,
194 0x01c6, 0x02c6, 0x06c6, 0x0ec6 194 0x01c6, 0x02c6, 0x06c6, 0x0ec6
195 }; 195 };
196 196
197 static uint8_t fft_level_exp_alt_huffbits[28] = { 197 static const uint8_t fft_level_exp_alt_huffbits[28] = {
198 13, 7, 8, 9, 10, 10, 10, 10, 10, 9, 8, 7, 6, 5, 4, 3, 198 13, 7, 8, 9, 10, 10, 10, 10, 10, 9, 8, 7, 6, 5, 4, 3,
199 3, 2, 3, 3, 4, 5, 7, 8, 9, 11, 12, 13 199 3, 2, 3, 3, 4, 5, 7, 8, 9, 11, 12, 13
200 }; 200 };
201 201
202 /* values in this table range from -1..19; adjust retrieved value by -1 */ 202 /* values in this table range from -1..19; adjust retrieved value by -1 */
203 static uint16_t fft_level_exp_huffcodes[20] = { 203 static const uint16_t fft_level_exp_huffcodes[20] = {
204 0x0f24, 0x0001, 0x0002, 0x0000, 0x0006, 0x0005, 0x0007, 0x000c, 204 0x0f24, 0x0001, 0x0002, 0x0000, 0x0006, 0x0005, 0x0007, 0x000c,
205 0x000b, 0x0014, 0x0013, 0x0004, 0x0003, 0x0023, 0x0064, 0x00a4, 205 0x000b, 0x0014, 0x0013, 0x0004, 0x0003, 0x0023, 0x0064, 0x00a4,
206 0x0024, 0x0124, 0x0324, 0x0724 206 0x0024, 0x0124, 0x0324, 0x0724
207 }; 207 };
208 208
209 static uint8_t fft_level_exp_huffbits[20] = { 209 static const uint8_t fft_level_exp_huffbits[20] = {
210 12, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 8, 9, 10, 11, 12 210 12, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 8, 9, 10, 11, 12
211 }; 211 };
212 212
213 /* values in this table range from -1..6; adjust retrieved value by -1 */ 213 /* values in this table range from -1..6; adjust retrieved value by -1 */
214 static uint8_t fft_stereo_exp_huffcodes[7] = { 214 static const uint8_t fft_stereo_exp_huffcodes[7] = {
215 0x3e, 0x01, 0x00, 0x02, 0x06, 0x0e, 0x1e 215 0x3e, 0x01, 0x00, 0x02, 0x06, 0x0e, 0x1e
216 }; 216 };
217 217
218 static uint8_t fft_stereo_exp_huffbits[7] = { 218 static const uint8_t fft_stereo_exp_huffbits[7] = {
219 6, 1, 2, 3, 4, 5, 6 219 6, 1, 2, 3, 4, 5, 6
220 }; 220 };
221 221
222 /* values in this table range from -1..8; adjust retrieved value by -1 */ 222 /* values in this table range from -1..8; adjust retrieved value by -1 */
223 static uint8_t fft_stereo_phase_huffcodes[9] = { 223 static const uint8_t fft_stereo_phase_huffcodes[9] = {
224 0x35, 0x02, 0x00, 0x01, 0x0d, 0x15, 0x05, 0x09, 0x03 224 0x35, 0x02, 0x00, 0x01, 0x0d, 0x15, 0x05, 0x09, 0x03
225 }; 225 };
226 226
227 static uint8_t fft_stereo_phase_huffbits[9] = { 227 static const uint8_t fft_stereo_phase_huffbits[9] = {
228 6, 2, 2, 4, 4, 6, 5, 4, 2 228 6, 2, 2, 4, 4, 6, 5, 4, 2
229 }; 229 };
230 230
231 static const int fft_cutoff_index_table[4][2] = { 231 static const int fft_cutoff_index_table[4][2] = {
232 { 1, 2 }, {-1, 0 }, {-1,-2 }, { 0, 0 } 232 { 1, 2 }, {-1, 0 }, {-1,-2 }, { 0, 0 }