diff options
Diffstat (limited to 'apps/codecs/libfaad/specrec.c')
-rw-r--r-- | apps/codecs/libfaad/specrec.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/apps/codecs/libfaad/specrec.c b/apps/codecs/libfaad/specrec.c index 6d74c77562..b457f04c2f 100644 --- a/apps/codecs/libfaad/specrec.c +++ b/apps/codecs/libfaad/specrec.c | |||
@@ -71,34 +71,34 @@ ALIGN static const uint8_t num_swb_480_window[] = | |||
71 | }; | 71 | }; |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | ALIGN static const uint8_t num_swb_960_window[] = | 74 | ALIGN static const uint8_t num_swb_960_window[] ICONST_ATTR = |
75 | { | 75 | { |
76 | 40, 40, 45, 49, 49, 49, 46, 46, 42, 42, 42, 40 | 76 | 40, 40, 45, 49, 49, 49, 46, 46, 42, 42, 42, 40 |
77 | }; | 77 | }; |
78 | 78 | ||
79 | ALIGN static const uint8_t num_swb_1024_window[] = | 79 | ALIGN static const uint8_t num_swb_1024_window[] ICONST_ATTR = |
80 | { | 80 | { |
81 | 41, 41, 47, 49, 49, 51, 47, 47, 43, 43, 43, 40 | 81 | 41, 41, 47, 49, 49, 51, 47, 47, 43, 43, 43, 40 |
82 | }; | 82 | }; |
83 | 83 | ||
84 | ALIGN static const uint8_t num_swb_128_window[] = | 84 | ALIGN static const uint8_t num_swb_128_window[] ICONST_ATTR = |
85 | { | 85 | { |
86 | 12, 12, 12, 14, 14, 14, 15, 15, 15, 15, 15, 15 | 86 | 12, 12, 12, 14, 14, 14, 15, 15, 15, 15, 15, 15 |
87 | }; | 87 | }; |
88 | 88 | ||
89 | ALIGN static const uint16_t swb_offset_1024_96[] = | 89 | ALIGN static const uint16_t swb_offset_1024_96[] ICONST_ATTR = |
90 | { | 90 | { |
91 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, | 91 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, |
92 | 64, 72, 80, 88, 96, 108, 120, 132, 144, 156, 172, 188, 212, 240, | 92 | 64, 72, 80, 88, 96, 108, 120, 132, 144, 156, 172, 188, 212, 240, |
93 | 276, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024 | 93 | 276, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024 |
94 | }; | 94 | }; |
95 | 95 | ||
96 | ALIGN static const uint16_t swb_offset_128_96[] = | 96 | ALIGN static const uint16_t swb_offset_128_96[] ICONST_ATTR = |
97 | { | 97 | { |
98 | 0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 92, 128 | 98 | 0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 92, 128 |
99 | }; | 99 | }; |
100 | 100 | ||
101 | ALIGN static const uint16_t swb_offset_1024_64[] = | 101 | ALIGN static const uint16_t swb_offset_1024_64[] ICONST_ATTR = |
102 | { | 102 | { |
103 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, | 103 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, |
104 | 64, 72, 80, 88, 100, 112, 124, 140, 156, 172, 192, 216, 240, 268, | 104 | 64, 72, 80, 88, 100, 112, 124, 140, 156, 172, 192, 216, 240, 268, |
@@ -106,12 +106,12 @@ ALIGN static const uint16_t swb_offset_1024_64[] = | |||
106 | 864, 904, 944, 984, 1024 | 106 | 864, 904, 944, 984, 1024 |
107 | }; | 107 | }; |
108 | 108 | ||
109 | ALIGN static const uint16_t swb_offset_128_64[] = | 109 | ALIGN static const uint16_t swb_offset_128_64[] ICONST_ATTR = |
110 | { | 110 | { |
111 | 0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 92, 128 | 111 | 0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 92, 128 |
112 | }; | 112 | }; |
113 | 113 | ||
114 | ALIGN static const uint16_t swb_offset_1024_48[] = | 114 | ALIGN static const uint16_t swb_offset_1024_48[] ICONST_ATTR = |
115 | { | 115 | { |
116 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64, 72, | 116 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64, 72, |
117 | 80, 88, 96, 108, 120, 132, 144, 160, 176, 196, 216, 240, 264, 292, | 117 | 80, 88, 96, 108, 120, 132, 144, 160, 176, 196, 216, 240, 264, 292, |
@@ -135,12 +135,12 @@ ALIGN static const uint16_t swb_offset_480_48[] = | |||
135 | }; | 135 | }; |
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | ALIGN static const uint16_t swb_offset_128_48[] = | 138 | ALIGN static const uint16_t swb_offset_128_48[] ICONST_ATTR = |
139 | { | 139 | { |
140 | 0, 4, 8, 12, 16, 20, 28, 36, 44, 56, 68, 80, 96, 112, 128 | 140 | 0, 4, 8, 12, 16, 20, 28, 36, 44, 56, 68, 80, 96, 112, 128 |
141 | }; | 141 | }; |
142 | 142 | ||
143 | ALIGN static const uint16_t swb_offset_1024_32[] = | 143 | ALIGN static const uint16_t swb_offset_1024_32[] ICONST_ATTR = |
144 | { | 144 | { |
145 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64, 72, | 145 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64, 72, |
146 | 80, 88, 96, 108, 120, 132, 144, 160, 176, 196, 216, 240, 264, 292, | 146 | 80, 88, 96, 108, 120, 132, 144, 160, 176, 196, 216, 240, 264, 292, |
@@ -164,7 +164,7 @@ ALIGN static const uint16_t swb_offset_480_32[] = | |||
164 | }; | 164 | }; |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | ALIGN static const uint16_t swb_offset_1024_24[] = | 167 | ALIGN static const uint16_t swb_offset_1024_24[] ICONST_ATTR = |
168 | { | 168 | { |
169 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 52, 60, 68, | 169 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 52, 60, 68, |
170 | 76, 84, 92, 100, 108, 116, 124, 136, 148, 160, 172, 188, 204, 220, | 170 | 76, 84, 92, 100, 108, 116, 124, 136, 148, 160, 172, 188, 204, 220, |
@@ -187,36 +187,36 @@ ALIGN static const uint16_t swb_offset_480_24[] = | |||
187 | }; | 187 | }; |
188 | #endif | 188 | #endif |
189 | 189 | ||
190 | ALIGN static const uint16_t swb_offset_128_24[] = | 190 | ALIGN static const uint16_t swb_offset_128_24[] ICONST_ATTR = |
191 | { | 191 | { |
192 | 0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 52, 64, 76, 92, 108, 128 | 192 | 0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 52, 64, 76, 92, 108, 128 |
193 | }; | 193 | }; |
194 | 194 | ||
195 | ALIGN static const uint16_t swb_offset_1024_16[] = | 195 | ALIGN static const uint16_t swb_offset_1024_16[] ICONST_ATTR = |
196 | { | 196 | { |
197 | 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 100, 112, 124, | 197 | 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 100, 112, 124, |
198 | 136, 148, 160, 172, 184, 196, 212, 228, 244, 260, 280, 300, 320, 344, | 198 | 136, 148, 160, 172, 184, 196, 212, 228, 244, 260, 280, 300, 320, 344, |
199 | 368, 396, 424, 456, 492, 532, 572, 616, 664, 716, 772, 832, 896, 960, 1024 | 199 | 368, 396, 424, 456, 492, 532, 572, 616, 664, 716, 772, 832, 896, 960, 1024 |
200 | }; | 200 | }; |
201 | 201 | ||
202 | ALIGN static const uint16_t swb_offset_128_16[] = | 202 | ALIGN static const uint16_t swb_offset_128_16[] ICONST_ATTR = |
203 | { | 203 | { |
204 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 40, 48, 60, 72, 88, 108, 128 | 204 | 0, 4, 8, 12, 16, 20, 24, 28, 32, 40, 48, 60, 72, 88, 108, 128 |
205 | }; | 205 | }; |
206 | 206 | ||
207 | ALIGN static const uint16_t swb_offset_1024_8[] = | 207 | ALIGN static const uint16_t swb_offset_1024_8[] ICONST_ATTR = |
208 | { | 208 | { |
209 | 0, 12, 24, 36, 48, 60, 72, 84, 96, 108, 120, 132, 144, 156, 172, | 209 | 0, 12, 24, 36, 48, 60, 72, 84, 96, 108, 120, 132, 144, 156, 172, |
210 | 188, 204, 220, 236, 252, 268, 288, 308, 328, 348, 372, 396, 420, 448, | 210 | 188, 204, 220, 236, 252, 268, 288, 308, 328, 348, 372, 396, 420, 448, |
211 | 476, 508, 544, 580, 620, 664, 712, 764, 820, 880, 944, 1024 | 211 | 476, 508, 544, 580, 620, 664, 712, 764, 820, 880, 944, 1024 |
212 | }; | 212 | }; |
213 | 213 | ||
214 | ALIGN static const uint16_t swb_offset_128_8[] = | 214 | ALIGN static const uint16_t swb_offset_128_8[] ICONST_ATTR = |
215 | { | 215 | { |
216 | 0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 52, 60, 72, 88, 108, 128 | 216 | 0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 52, 60, 72, 88, 108, 128 |
217 | }; | 217 | }; |
218 | 218 | ||
219 | ALIGN static const uint16_t *swb_offset_1024_window[] = | 219 | ALIGN static const uint16_t *swb_offset_1024_window[] ICODE_ATTR = |
220 | { | 220 | { |
221 | swb_offset_1024_96, /* 96000 */ | 221 | swb_offset_1024_96, /* 96000 */ |
222 | swb_offset_1024_96, /* 88200 */ | 222 | swb_offset_1024_96, /* 88200 */ |
@@ -266,7 +266,7 @@ ALIGN static const uint16_t *swb_offset_480_window[] = | |||
266 | }; | 266 | }; |
267 | #endif | 267 | #endif |
268 | 268 | ||
269 | ALIGN static const uint16_t *swb_offset_128_window[] = | 269 | ALIGN static const uint16_t *swb_offset_128_window[] ICODE_ATTR = |
270 | { | 270 | { |
271 | swb_offset_128_96, /* 96000 */ | 271 | swb_offset_128_96, /* 96000 */ |
272 | swb_offset_128_96, /* 88200 */ | 272 | swb_offset_128_96, /* 88200 */ |
@@ -534,7 +534,7 @@ static uint8_t quant_to_spec(NeAACDecHandle hDecoder, | |||
534 | ic_stream *ics, int16_t *quant_data, | 534 | ic_stream *ics, int16_t *quant_data, |
535 | real_t *spec_data, uint16_t frame_len) | 535 | real_t *spec_data, uint16_t frame_len) |
536 | { | 536 | { |
537 | ALIGN static const real_t pow2_table[] = | 537 | ALIGN static const real_t pow2_table[] ICONST_ATTR = |
538 | { | 538 | { |
539 | COEF_CONST(1.0), | 539 | COEF_CONST(1.0), |
540 | COEF_CONST(1.1892071150027210667174999705605), /* 2^0.25 */ | 540 | COEF_CONST(1.1892071150027210667174999705605), /* 2^0.25 */ |
@@ -1049,8 +1049,8 @@ uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_st | |||
1049 | element *cpe, int16_t *spec_data1, int16_t *spec_data2) | 1049 | element *cpe, int16_t *spec_data1, int16_t *spec_data2) |
1050 | { | 1050 | { |
1051 | uint8_t retval; | 1051 | uint8_t retval; |
1052 | ALIGN static real_t spec_coef1[1024]; | 1052 | ALIGN static real_t spec_coef1[1024] IBSS_ATTR; |
1053 | ALIGN static real_t spec_coef2[1024]; | 1053 | ALIGN static real_t spec_coef2[1024] IBSS_ATTR; |
1054 | 1054 | ||
1055 | #ifdef PROFILE | 1055 | #ifdef PROFILE |
1056 | int64_t count = faad_get_ts(); | 1056 | int64_t count = faad_get_ts(); |