AMR-WB decoder, written as part of Google Summer of Code 2010 by Marcelo
[libav.git] / libavcodec / amrwbdata.h
1 /*
2 * AMR wideband data and definitions
3 * Copyright (c) 2010 Marcelo Galvao Povoa
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 /**
23 * @file
24 * AMR wideband data and definitions
25 */
26
27 #ifndef AVCODEC_AMRWBDATA_H
28 #define AVCODEC_AMRWBDATA_H
29
30 #include <stdint.h>
31
32 #define LP_ORDER 16 ///< linear predictive coding filter order
33 #define LP_ORDER_16k 20 ///< lpc filter order at 16kHz
34 #define HB_FIR_SIZE 30 ///< amount of past data needed by HB filters
35 #define UPS_FIR_SIZE 12 ///< upsampling filter size
36 #define UPS_MEM_SIZE (2 * UPS_FIR_SIZE)
37
38 #define MIN_ISF_SPACING (128.0 / 32768.0) ///< minimum isf gap
39 #define PRED_FACTOR (1.0 / 3.0)
40 #define MIN_ENERGY -14.0 ///< initial innnovation energy (dB)
41 #define ENERGY_MEAN 30.0 ///< mean innovation energy (dB) in all modes
42 #define PREEMPH_FAC 0.68 ///< factor used to de-emphasize synthesis
43
44 #define AMRWB_SFR_SIZE 64 ///< samples per subframe at 12.8 kHz
45 #define AMRWB_SFR_SIZE_16k 80 ///< samples per subframe at 16 kHz
46 #define AMRWB_P_DELAY_MAX 231 ///< maximum pitch delay value
47 #define AMRWB_P_DELAY_MIN 34
48
49 /* Relative mode ordering is sensitive */
50 enum Mode {
51 MODE_6k60 = 0, ///< 6.60 kbit/s
52 MODE_8k85, ///< 8.85 kbit/s
53 MODE_12k65, ///< 12.65 kbit/s
54 MODE_14k25, ///< 14.25 kbit/s
55 MODE_15k85, ///< 15.85 kbit/s
56 MODE_18k25, ///< 18.25 kbit/s
57 MODE_19k85, ///< 19.85 kbit/s
58 MODE_23k05, ///< 23.05 kbit/s
59 MODE_23k85, ///< 23.85 kbit/s
60 MODE_SID, ///< comfort noise frame
61 /* 10-13: Future use */
62 SP_LOST = 14, ///< speech lost
63 NO_DATA ///< no transmission
64 };
65
66 /* All decoded parameters in these structs must be 2 bytes long
67 * because of the direct indexing at the frame parsing */
68 typedef struct {
69 uint16_t adap; ///< adaptive codebook index
70 uint16_t ltp; ///< ltp-filtering flag
71 uint16_t vq_gain; ///< VQ adaptive and innovative gains
72 uint16_t hb_gain; ///< high-band energy index (mode 23k85 only)
73 uint16_t pul_ih[4]; ///< MSBs part of codebook index (high modes only)
74 uint16_t pul_il[4]; ///< LSBs part of codebook index
75 } AMRWBSubFrame;
76
77 typedef struct {
78 uint16_t vad; ///< voice activity detection flag
79 uint16_t isp_id[7]; ///< index of ISP subvectors
80 AMRWBSubFrame subframe[4]; ///< data for subframes
81 } AMRWBFrame;
82
83 /** The index of a frame parameter */
84 #define AMR_BIT(field) (offsetof(AMRWBFrame, field) >> 1)
85 /** The index of a subframe-specific parameter */
86 #define AMR_OF(frame_num, variable) AMR_BIT(subframe[frame_num].variable)
87
88 //As defined in 3GPP TS 26.201 V9.0.0
89 //Tables for bit parsing in Core Frame speech frames
90 //The reordered bits are in order of decreasing importance and
91 //may be contiguously separated in Class A, B and C bits.
92
93 // Each field in AMRWBFrame is stored as:
94 // * one byte for the number of bits in the field
95 // * one byte for the field index
96 // * then, one byte for each bit of the field (from most-significant to least)
97 // of the position of that bit in the AMR frame.
98 static const uint16_t order_MODE_6k60[] = {
99 1, AMR_BIT(vad), 7,
100 8, AMR_BIT(isp_id[0]), 24, 33, 39, 12, 6, 5, 4, 13,
101 8, AMR_BIT(isp_id[1]), 65, 79, 64, 78, 51, 61, 71, 70,
102 7, AMR_BIT(isp_id[2]), 52, 55, 44, 54, 53, 43, 42,
103 7, AMR_BIT(isp_id[3]), 60, 59, 58, 57, 56, 75, 74,
104 6, AMR_BIT(isp_id[4]), 73, 72, 86, 87, 85, 84,
105 8, AMR_OF(0, adap), 11, 10, 9, 8, 28, 27, 49, 69,
106 6, AMR_OF(0, pul_il[0]), 83, 91, 99, 107, 115, 123,
107 6, AMR_OF(0, pul_il[1]), 82, 103, 111, 119, 127, 135,
108 6, AMR_OF(0, vq_gain), 38, 23, 34, 19, 3, 15,
109 5, AMR_OF(1, adap), 32, 41, 63, 67, 77,
110 6, AMR_OF(1, pul_il[0]), 81, 90, 98, 106, 114, 122,
111 6, AMR_OF(1, pul_il[1]), 80, 102, 110, 118, 126, 134,
112 6, AMR_OF(1, vq_gain), 26, 22, 36, 18, 2, 14,
113 5, AMR_OF(2, adap), 45, 40, 50, 48, 68,
114 6, AMR_OF(2, pul_il[0]), 95, 89, 97, 105, 113, 121,
115 6, AMR_OF(2, pul_il[1]), 94, 101, 109, 117, 125, 133,
116 6, AMR_OF(2, vq_gain), 37, 21, 35, 17, 1, 31,
117 5, AMR_OF(3, adap), 47, 46, 62, 66, 76,
118 6, AMR_OF(3, pul_il[0]), 93, 88, 96, 104, 112, 120,
119 6, AMR_OF(3, pul_il[1]), 92, 100, 108, 116, 124, 132,
120 6, AMR_OF(3, vq_gain), 25, 20, 29, 16, 0, 30,
121 0
122 };
123
124 static const uint16_t order_MODE_8k85[] = {
125 1, AMR_BIT(vad), 7,
126 8, AMR_BIT(isp_id[0]), 47, 32, 2, 6, 3, 5, 4, 60,
127 8, AMR_BIT(isp_id[1]), 69, 50, 67, 41, 51, 49, 59, 53,
128 6, AMR_BIT(isp_id[2]), 40, 55, 43, 54, 42, 62,
129 7, AMR_BIT(isp_id[3]), 63, 48, 52, 61, 77, 78, 72,
130 7, AMR_BIT(isp_id[4]), 85, 56, 86, 68, 74, 73, 81,
131 5, AMR_BIT(isp_id[5]), 82, 95, 80, 94, 91,
132 5, AMR_BIT(isp_id[6]), 90, 89, 88, 103, 87,
133 8, AMR_OF(0, adap), 1, 0, 15, 35, 33, 58, 64, 84,
134 5, AMR_OF(0, pul_il[0]), 102, 118, 134, 150, 166,
135 5, AMR_OF(0, pul_il[1]), 101, 114, 130, 146, 162,
136 5, AMR_OF(0, pul_il[2]), 100, 126, 142, 158, 174,
137 5, AMR_OF(0, pul_il[3]), 99, 122, 138, 154, 170,
138 6, AMR_OF(0, vq_gain), 11, 39, 19, 31, 27, 23,
139 5, AMR_OF(1, adap), 46, 71, 66, 76, 93,
140 5, AMR_OF(1, pul_il[0]), 98, 117, 133, 149, 165,
141 5, AMR_OF(1, pul_il[1]), 97, 113, 129, 145, 161,
142 5, AMR_OF(1, pul_il[2]), 96, 125, 141, 157, 173,
143 5, AMR_OF(1, pul_il[3]), 111, 121, 137, 153, 169,
144 6, AMR_OF(1, vq_gain), 10, 38, 18, 30, 26, 22,
145 8, AMR_OF(2, adap), 14, 13, 12, 34, 45, 57, 79, 83,
146 5, AMR_OF(2, pul_il[0]), 110, 116, 132, 148, 164,
147 5, AMR_OF(2, pul_il[1]), 109, 112, 128, 144, 160,
148 5, AMR_OF(2, pul_il[2]), 108, 124, 140, 156, 172,
149 5, AMR_OF(2, pul_il[3]), 107, 120, 136, 152, 168,
150 6, AMR_OF(2, vq_gain), 9, 37, 17, 29, 25, 21,
151 5, AMR_OF(3, adap), 44, 70, 65, 75, 92,
152 5, AMR_OF(3, pul_il[0]), 106, 115, 131, 147, 163,
153 5, AMR_OF(3, pul_il[1]), 105, 127, 143, 159, 175,
154 5, AMR_OF(3, pul_il[2]), 104, 123, 139, 155, 171,
155 5, AMR_OF(3, pul_il[3]), 119, 135, 151, 167, 183,
156 6, AMR_OF(3, vq_gain), 8, 36, 16, 28, 24, 20,
157 0
158 };
159
160 static const uint16_t order_MODE_12k65[] = {
161 1, AMR_BIT(vad), 7,
162 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
163 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
164 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
165 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
166 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
167 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
168 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
169 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
170 92,
171 1, AMR_OF(0, ltp), 110,
172 9, AMR_OF(0, pul_il[0]), 106, 122, 154, 186, 218, 134, 166, 198,
173 230,
174 9, AMR_OF(0, pul_il[1]), 105, 130, 162, 194, 226, 142, 174, 206,
175 238,
176 9, AMR_OF(0, pul_il[2]), 104, 138, 170, 202, 234, 150, 182, 214,
177 246,
178 9, AMR_OF(0, pul_il[3]), 119, 146, 178, 210, 242, 158, 190, 222,
179 254,
180 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
181 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
182 1, AMR_OF(1, ltp), 109,
183 9, AMR_OF(1, pul_il[0]), 118, 121, 153, 185, 217, 133, 165, 197,
184 229,
185 9, AMR_OF(1, pul_il[1]), 117, 129, 161, 193, 225, 141, 173, 205,
186 237,
187 9, AMR_OF(1, pul_il[2]), 116, 137, 169, 201, 233, 149, 181, 213,
188 245,
189 9, AMR_OF(1, pul_il[3]), 115, 145, 177, 209, 241, 157, 189, 221,
190 253,
191 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
192 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
193 91,
194 1, AMR_OF(2, ltp), 108,
195 9, AMR_OF(2, pul_il[0]), 114, 120, 152, 184, 216, 132, 164, 196,
196 228,
197 9, AMR_OF(2, pul_il[1]), 113, 128, 160, 192, 224, 140, 172, 204,
198 236,
199 9, AMR_OF(2, pul_il[2]), 112, 136, 168, 200, 232, 148, 180, 212,
200 244,
201 9, AMR_OF(2, pul_il[3]), 127, 144, 176, 208, 240, 156, 188, 220,
202 252,
203 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
204 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
205 1, AMR_OF(3, ltp), 107,
206 9, AMR_OF(3, pul_il[0]), 126, 135, 167, 199, 231, 131, 163, 195,
207 227,
208 9, AMR_OF(3, pul_il[1]), 125, 143, 175, 207, 239, 139, 171, 203,
209 235,
210 9, AMR_OF(3, pul_il[2]), 124, 151, 183, 215, 247, 147, 179, 211,
211 243,
212 9, AMR_OF(3, pul_il[3]), 123, 159, 191, 223, 255, 155, 187, 219,
213 251,
214 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
215 0
216 };
217
218 static const uint16_t order_MODE_14k25[] = {
219 1, AMR_BIT(vad), 7,
220 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
221 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
222 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
223 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
224 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
225 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
226 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
227 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
228 92,
229 1, AMR_OF(0, ltp), 110,
230 13, AMR_OF(0, pul_il[0]), 114, 186, 210, 234, 258, 106, 126, 162,
231 170, 198, 222, 246, 270,
232 13, AMR_OF(0, pul_il[1]), 122, 194, 218, 242, 266, 118, 134, 174,
233 182, 206, 230, 254, 278,
234 9, AMR_OF(0, pul_il[2]), 130, 138, 146, 154, 178, 202, 226, 250,
235 274,
236 9, AMR_OF(0, pul_il[3]), 142, 150, 158, 166, 190, 214, 238, 262,
237 286,
238 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
239 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
240 1, AMR_OF(1, ltp), 109,
241 13, AMR_OF(1, pul_il[0]), 113, 185, 209, 233, 257, 105, 125, 161,
242 169, 197, 221, 245, 269,
243 13, AMR_OF(1, pul_il[1]), 121, 193, 217, 241, 265, 117, 133, 173,
244 181, 205, 229, 253, 277,
245 9, AMR_OF(1, pul_il[2]), 129, 137, 145, 153, 177, 201, 225, 249,
246 273,
247 9, AMR_OF(1, pul_il[3]), 141, 149, 157, 165, 189, 213, 237, 261,
248 285,
249 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
250 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
251 91,
252 1, AMR_OF(2, ltp), 108,
253 13, AMR_OF(2, pul_il[0]), 112, 184, 208, 232, 256, 104, 124, 160,
254 168, 196, 220, 244, 268,
255 13, AMR_OF(2, pul_il[1]), 120, 192, 216, 240, 264, 116, 132, 172,
256 180, 204, 228, 252, 276,
257 9, AMR_OF(2, pul_il[2]), 128, 136, 144, 152, 176, 200, 224, 248,
258 272,
259 9, AMR_OF(2, pul_il[3]), 140, 148, 156, 164, 188, 212, 236, 260,
260 284,
261 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
262 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
263 1, AMR_OF(3, ltp), 107,
264 13, AMR_OF(3, pul_il[0]), 127, 199, 223, 247, 271, 119, 123, 175,
265 183, 195, 219, 243, 267,
266 13, AMR_OF(3, pul_il[1]), 135, 207, 231, 255, 279, 115, 131, 171,
267 179, 203, 227, 251, 275,
268 9, AMR_OF(3, pul_il[2]), 143, 151, 159, 167, 191, 215, 239, 263,
269 287,
270 9, AMR_OF(3, pul_il[3]), 139, 147, 155, 163, 187, 211, 235, 259,
271 283,
272 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
273 0
274 };
275
276 static const uint16_t order_MODE_15k85[] = {
277 1, AMR_BIT(vad), 7,
278 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
279 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
280 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
281 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
282 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
283 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
284 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
285 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
286 92,
287 1, AMR_OF(0, ltp), 110,
288 13, AMR_OF(0, pul_il[0]), 122, 154, 170, 218, 266, 138, 106, 182,
289 230, 278, 178, 226, 274,
290 13, AMR_OF(0, pul_il[1]), 134, 166, 190, 238, 286, 150, 118, 186,
291 234, 282, 198, 246, 294,
292 13, AMR_OF(0, pul_il[2]), 130, 162, 194, 242, 290, 146, 114, 206,
293 254, 302, 202, 250, 298,
294 13, AMR_OF(0, pul_il[3]), 142, 174, 214, 262, 310, 158, 126, 210,
295 258, 306, 222, 270, 318,
296 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
297 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
298 1, AMR_OF(1, ltp), 109,
299 13, AMR_OF(1, pul_il[0]), 121, 153, 169, 217, 265, 137, 105, 181,
300 229, 277, 177, 225, 273,
301 13, AMR_OF(1, pul_il[1]), 133, 165, 189, 237, 285, 149, 117, 185,
302 233, 281, 197, 245, 293,
303 13, AMR_OF(1, pul_il[2]), 129, 161, 193, 241, 289, 145, 113, 205,
304 253, 301, 201, 249, 297,
305 13, AMR_OF(1, pul_il[3]), 141, 173, 213, 261, 309, 157, 125, 209,
306 257, 305, 221, 269, 317,
307 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
308 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
309 91,
310 1, AMR_OF(2, ltp), 108,
311 13, AMR_OF(2, pul_il[0]), 120, 152, 168, 216, 264, 136, 104, 180,
312 228, 276, 176, 224, 272,
313 13, AMR_OF(2, pul_il[1]), 132, 164, 188, 236, 284, 148, 116, 184,
314 232, 280, 196, 244, 292,
315 13, AMR_OF(2, pul_il[2]), 128, 160, 192, 240, 288, 144, 112, 204,
316 252, 300, 200, 248, 296,
317 13, AMR_OF(2, pul_il[3]), 140, 172, 212, 260, 308, 156, 124, 208,
318 256, 304, 220, 268, 316,
319 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
320 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
321 1, AMR_OF(3, ltp), 107,
322 13, AMR_OF(3, pul_il[0]), 135, 167, 183, 231, 279, 151, 119, 179,
323 227, 275, 191, 239, 287,
324 13, AMR_OF(3, pul_il[1]), 131, 163, 187, 235, 283, 147, 115, 199,
325 247, 295, 195, 243, 291,
326 13, AMR_OF(3, pul_il[2]), 143, 175, 207, 255, 303, 159, 127, 203,
327 251, 299, 215, 263, 311,
328 13, AMR_OF(3, pul_il[3]), 139, 171, 211, 259, 307, 155, 123, 223,
329 271, 319, 219, 267, 315,
330 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
331 0
332 };
333
334 static const uint16_t order_MODE_18k25[] = {
335 1, AMR_BIT(vad), 7,
336 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
337 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
338 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
339 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
340 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
341 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
342 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
343 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
344 92,
345 1, AMR_OF(0, ltp), 110,
346 2, AMR_OF(0, pul_ih[0]), 124, 115,
347 2, AMR_OF(0, pul_ih[1]), 150, 117,
348 2, AMR_OF(0, pul_ih[2]), 129, 114,
349 2, AMR_OF(0, pul_ih[3]), 121, 131,
350 14, AMR_OF(0, pul_il[0]), 161, 257, 343, 199, 177, 303, 204, 173,
351 168, 260, 277, 307, 338, 128,
352 14, AMR_OF(0, pul_il[1]), 194, 286, 347, 222, 214, 316, 236, 152,
353 166, 242, 284, 308, 344, 142,
354 14, AMR_OF(0, pul_il[2]), 169, 273, 353, 202, 189, 311, 240, 200,
355 171, 261, 309, 296, 345, 130,
356 14, AMR_OF(0, pul_il[3]), 198, 275, 349, 187, 163, 282, 193, 195,
357 175, 234, 265, 289, 328, 119,
358 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
359 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
360 1, AMR_OF(1, ltp), 109,
361 2, AMR_OF(1, pul_ih[0]), 139, 104,
362 2, AMR_OF(1, pul_ih[1]), 135, 118,
363 2, AMR_OF(1, pul_ih[2]), 112, 127,
364 2, AMR_OF(1, pul_ih[3]), 140, 141,
365 14, AMR_OF(1, pul_il[0]), 179, 276, 340, 225, 223, 321, 235, 190,
366 182, 271, 310, 315, 352, 125,
367 14, AMR_OF(1, pul_il[1]), 153, 264, 329, 232, 209, 323, 231, 165,
368 191, 279, 290, 312, 367, 134,
369 14, AMR_OF(1, pul_il[2]), 167, 269, 341, 205, 197, 298, 224, 160,
370 170, 259, 280, 317, 357, 148,
371 14, AMR_OF(1, pul_il[3]), 203, 272, 342, 227, 192, 299, 233, 172,
372 183, 256, 283, 326, 355, 106,
373 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
374 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
375 91,
376 1, AMR_OF(2, ltp), 108,
377 2, AMR_OF(2, pul_ih[0]), 144, 120,
378 2, AMR_OF(2, pul_ih[1]), 157, 123,
379 2, AMR_OF(2, pul_ih[2]), 145, 138,
380 2, AMR_OF(2, pul_ih[3]), 132, 154,
381 14, AMR_OF(2, pul_il[0]), 241, 319, 365, 252, 253, 331, 254, 230,
382 220, 263, 285, 314, 364, 156,
383 14, AMR_OF(2, pul_il[1]), 247, 291, 339, 249, 250, 332, 267, 196,
384 207, 268, 304, 324, 356, 158,
385 14, AMR_OF(2, pul_il[2]), 210, 300, 348, 243, 237, 333, 246, 206,
386 219, 266, 318, 335, 363, 159,
387 14, AMR_OF(2, pul_il[3]), 239, 306, 366, 221, 226, 297, 251, 184,
388 178, 258, 292, 305, 346, 116,
389 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
390 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
391 1, AMR_OF(3, ltp), 107,
392 2, AMR_OF(3, pul_ih[0]), 143, 126,
393 2, AMR_OF(3, pul_ih[1]), 137, 122,
394 2, AMR_OF(3, pul_ih[2]), 149, 105,
395 2, AMR_OF(3, pul_ih[3]), 133, 136,
396 14, AMR_OF(3, pul_il[0]), 162, 287, 337, 244, 229, 322, 218, 180,
397 186, 262, 274, 288, 351, 146,
398 14, AMR_OF(3, pul_il[1]), 212, 294, 358, 248, 228, 334, 215, 174,
399 176, 270, 293, 301, 354, 147,
400 14, AMR_OF(3, pul_il[2]), 185, 327, 336, 211, 213, 313, 245, 181,
401 188, 255, 281, 325, 350, 151,
402 14, AMR_OF(3, pul_il[3]), 201, 295, 359, 216, 208, 320, 238, 164,
403 155, 217, 278, 302, 330, 113,
404 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
405 0
406 };
407
408 static const uint16_t order_MODE_19k85[] = {
409 1, AMR_BIT(vad), 7,
410 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
411 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
412 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
413 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
414 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
415 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
416 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
417 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
418 92,
419 1, AMR_OF(0, ltp), 110,
420 10, AMR_OF(0, pul_ih[0]), 134, 153, 263, 342, 399, 154, 106, 177,
421 317, 265,
422 10, AMR_OF(0, pul_ih[1]), 128, 167, 270, 351, 385, 160, 105, 213,
423 329, 259,
424 2, AMR_OF(0, pul_ih[2]), 123, 147,
425 2, AMR_OF(0, pul_ih[3]), 131, 143,
426 10, AMR_OF(0, pul_il[0]), 346, 118, 170, 201, 296, 368, 250, 284,
427 341, 391,
428 10, AMR_OF(0, pul_il[1]), 345, 104, 166, 196, 281, 374, 242, 269,
429 327, 390,
430 14, AMR_OF(0, pul_il[2]), 141, 171, 291, 364, 229, 210, 308, 228,
431 206, 200, 258, 295, 313, 361,
432 14, AMR_OF(0, pul_il[3]), 144, 188, 282, 366, 217, 216, 309, 218,
433 193, 182, 245, 287, 300, 367,
434 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
435 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
436 1, AMR_OF(1, ltp), 109,
437 10, AMR_OF(1, pul_ih[0]), 139, 169, 267, 348, 389, 163, 116, 189,
438 343, 268,
439 10, AMR_OF(1, pul_ih[1]), 120, 161, 249, 339, 397, 152, 114, 230,
440 334, 303,
441 2, AMR_OF(1, pul_ih[2]), 125, 138,
442 2, AMR_OF(1, pul_ih[3]), 112, 129,
443 10, AMR_OF(1, pul_il[0]), 349, 122, 162, 203, 288, 372, 278, 274,
444 312, 377,
445 10, AMR_OF(1, pul_il[1]), 357, 126, 165, 214, 298, 362, 252, 260,
446 321, 378,
447 14, AMR_OF(1, pul_il[2]), 150, 199, 266, 355, 211, 180, 285, 241,
448 195, 198, 243, 275, 323, 375,
449 14, AMR_OF(1, pul_il[3]), 142, 191, 256, 353, 208, 220, 314, 237,
450 190, 212, 255, 304, 318, 371,
451 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
452 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
453 91,
454 1, AMR_OF(2, ltp), 108,
455 10, AMR_OF(2, pul_ih[0]), 159, 168, 302, 356, 395, 178, 132, 185,
456 330, 286,
457 10, AMR_OF(2, pul_ih[1]), 158, 181, 292, 358, 396, 176, 133, 235,
458 331, 276,
459 2, AMR_OF(2, pul_ih[2]), 130, 157,
460 2, AMR_OF(2, pul_ih[3]), 124, 136,
461 10, AMR_OF(2, pul_il[0]), 354, 121, 194, 246, 322, 379, 272, 273,
462 332, 398,
463 10, AMR_OF(2, pul_il[1]), 359, 140, 186, 236, 333, 376, 290, 301,
464 338, 387,
465 14, AMR_OF(2, pul_il[2]), 155, 227, 319, 369, 253, 254, 350, 248,
466 224, 239, 240, 293, 315, 383,
467 14, AMR_OF(2, pul_il[3]), 156, 209, 297, 373, 225, 215, 326, 247,
468 197, 184, 232, 289, 310, 365,
469 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
470 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
471 1, AMR_OF(3, ltp), 107,
472 10, AMR_OF(3, pul_ih[0]), 148, 164, 264, 340, 388, 183, 117, 205,
473 336, 261,
474 10, AMR_OF(3, pul_ih[1]), 146, 174, 257, 335, 384, 173, 113, 187,
475 320, 279,
476 2, AMR_OF(3, pul_ih[2]), 127, 151,
477 2, AMR_OF(3, pul_ih[3]), 119, 137,
478 10, AMR_OF(3, pul_il[0]), 352, 135, 172, 238, 306, 381, 262, 271,
479 328, 382,
480 10, AMR_OF(3, pul_il[1]), 347, 115, 179, 219, 305, 380, 277, 294,
481 337, 386,
482 14, AMR_OF(3, pul_il[2]), 145, 192, 307, 370, 234, 223, 324, 244,
483 202, 204, 251, 299, 325, 360,
484 14, AMR_OF(3, pul_il[3]), 149, 221, 311, 363, 226, 222, 316, 231,
485 207, 175, 233, 280, 283, 344,
486 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
487 0
488 };
489
490 static const uint16_t order_MODE_23k05[] = {
491 1, AMR_BIT(vad), 7,
492 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
493 8, AMR_BIT(isp_id[1]), 77, 58, 75, 49, 59, 57, 67, 61,
494 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
495 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 85, 86, 80,
496 7, AMR_BIT(isp_id[4]), 93, 64, 94, 76, 82, 81, 89,
497 5, AMR_BIT(isp_id[5]), 90, 103, 88, 102, 99,
498 5, AMR_BIT(isp_id[6]), 98, 97, 96, 111, 95,
499 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 72,
500 92,
501 1, AMR_OF(0, ltp), 110,
502 11, AMR_OF(0, pul_ih[0]), 118, 129, 131, 153, 170, 282, 298, 210,
503 191, 357, 317,
504 11, AMR_OF(0, pul_ih[1]), 126, 146, 135, 165, 187, 273, 345, 295,
505 172, 338, 340,
506 11, AMR_OF(0, pul_ih[2]), 119, 137, 141, 167, 208, 304, 366, 256,
507 177, 339, 328,
508 11, AMR_OF(0, pul_ih[3]), 116, 130, 120, 166, 190, 252, 311, 239,
509 173, 343, 318,
510 11, AMR_OF(0, pul_il[0]), 245, 180, 342, 424, 259, 277, 266, 380,
511 398, 423, 440,
512 11, AMR_OF(0, pul_il[1]), 218, 207, 367, 434, 201, 240, 275, 363,
513 399, 419, 452,
514 11, AMR_OF(0, pul_il[2]), 274, 188, 348, 425, 242, 204, 262, 365,
515 402, 431, 463,
516 11, AMR_OF(0, pul_il[3]), 221, 183, 337, 439, 243, 216, 251, 354,
517 390, 411, 462,
518 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
519 6, AMR_OF(1, adap), 35, 54, 79, 74, 84, 101,
520 1, AMR_OF(1, ltp), 109,
521 11, AMR_OF(1, pul_ih[0]), 115, 140, 142, 161, 230, 291, 351, 235,
522 181, 293, 310,
523 11, AMR_OF(1, pul_ih[1]), 104, 138, 132, 162, 211, 315, 347, 233,
524 176, 320, 329,
525 11, AMR_OF(1, pul_ih[2]), 106, 134, 125, 154, 205, 267, 306, 220,
526 185, 330, 297,
527 11, AMR_OF(1, pul_ih[3]), 105, 148, 122, 152, 215, 302, 350, 254,
528 178, 319, 313,
529 11, AMR_OF(1, pul_il[0]), 269, 189, 382, 432, 272, 228, 263, 383,
530 406, 422, 453,
531 11, AMR_OF(1, pul_il[1]), 286, 206, 377, 446, 226, 222, 265, 368,
532 404, 416, 454,
533 11, AMR_OF(1, pul_il[2]), 247, 195, 358, 445, 224, 236, 309, 341,
534 375, 408, 449,
535 11, AMR_OF(1, pul_il[3]), 225, 192, 359, 436, 250, 258, 290, 389,
536 400, 420, 448,
537 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
538 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 87,
539 91,
540 1, AMR_OF(2, ltp), 108,
541 11, AMR_OF(2, pul_ih[0]), 139, 144, 145, 169, 234, 327, 395, 299,
542 244, 356, 379,
543 11, AMR_OF(2, pul_ih[1]), 127, 156, 158, 171, 231, 308, 397, 355,
544 261, 371, 335,
545 11, AMR_OF(2, pul_ih[2]), 123, 155, 157, 193, 241, 362, 384, 323,
546 238, 392, 361,
547 11, AMR_OF(2, pul_ih[3]), 114, 147, 121, 175, 196, 333, 373, 303,
548 184, 353, 322,
549 11, AMR_OF(2, pul_il[0]), 271, 203, 385, 442, 307, 276, 334, 405,
550 412, 427, 459,
551 11, AMR_OF(2, pul_il[1]), 278, 200, 388, 447, 292, 288, 296, 403,
552 415, 429, 460,
553 11, AMR_OF(2, pul_il[2]), 312, 214, 393, 433, 279, 301, 314, 391,
554 410, 426, 450,
555 11, AMR_OF(2, pul_il[3]), 280, 186, 376, 437, 268, 260, 255, 364,
556 414, 417, 441,
557 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
558 6, AMR_OF(3, adap), 34, 53, 78, 73, 83, 100,
559 1, AMR_OF(3, ltp), 107,
560 11, AMR_OF(3, pul_ih[0]), 112, 159, 143, 164, 213, 281, 332, 284,
561 168, 344, 325,
562 11, AMR_OF(3, pul_ih[1]), 113, 150, 149, 179, 199, 316, 324, 285,
563 237, 360, 336,
564 11, AMR_OF(3, pul_ih[2]), 124, 136, 151, 174, 209, 326, 349, 248,
565 198, 374, 331,
566 11, AMR_OF(3, pul_ih[3]), 117, 128, 133, 163, 202, 300, 372, 305,
567 194, 387, 321,
568 11, AMR_OF(3, pul_il[0]), 249, 182, 352, 428, 253, 264, 289, 413,
569 407, 418, 461,
570 11, AMR_OF(3, pul_il[1]), 287, 212, 369, 444, 223, 246, 217, 346,
571 394, 401, 451,
572 11, AMR_OF(3, pul_il[2]), 219, 197, 378, 435, 229, 257, 283, 396,
573 409, 430, 455,
574 11, AMR_OF(3, pul_il[3]), 232, 160, 370, 438, 227, 270, 294, 381,
575 386, 421, 443,
576 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
577 0
578 };
579
580 static const uint16_t order_MODE_23k85[] = {
581 1, AMR_BIT(vad), 7,
582 8, AMR_BIT(isp_id[0]), 55, 40, 14, 6, 15, 5, 0, 68,
583 8, AMR_BIT(isp_id[1]), 93, 58, 91, 49, 59, 57, 67, 61,
584 6, AMR_BIT(isp_id[2]), 48, 63, 51, 62, 50, 70,
585 7, AMR_BIT(isp_id[3]), 71, 56, 60, 69, 101, 102, 96,
586 7, AMR_BIT(isp_id[4]), 109, 64, 110, 92, 98, 97, 105,
587 5, AMR_BIT(isp_id[5]), 106, 119, 104, 118, 115,
588 5, AMR_BIT(isp_id[6]), 114, 113, 112, 127, 111,
589 9, AMR_OF(0, adap), 13, 12, 11, 10, 9, 41, 66, 88,
590 108,
591 1, AMR_OF(0, ltp), 126,
592 11, AMR_OF(0, pul_ih[0]), 134, 145, 147, 169, 186, 298, 314, 226,
593 207, 373, 333,
594 11, AMR_OF(0, pul_ih[1]), 142, 162, 151, 181, 203, 289, 361, 311,
595 188, 354, 356,
596 11, AMR_OF(0, pul_ih[2]), 135, 153, 157, 183, 224, 320, 382, 272,
597 193, 355, 344,
598 11, AMR_OF(0, pul_ih[3]), 132, 146, 136, 182, 206, 268, 327, 255,
599 189, 359, 334,
600 11, AMR_OF(0, pul_il[0]), 261, 196, 358, 440, 275, 293, 282, 396,
601 414, 439, 456,
602 11, AMR_OF(0, pul_il[1]), 234, 223, 383, 450, 217, 256, 291, 379,
603 415, 435, 468,
604 11, AMR_OF(0, pul_il[2]), 290, 204, 364, 441, 258, 220, 278, 381,
605 418, 447, 479,
606 11, AMR_OF(0, pul_il[3]), 237, 199, 353, 455, 259, 232, 267, 370,
607 406, 427, 478,
608 7, AMR_OF(0, vq_gain), 4, 19, 45, 27, 39, 33, 31,
609 4, AMR_OF(0, hb_gain), 79, 78, 77, 76,
610 6, AMR_OF(1, adap), 35, 54, 95, 90, 100, 117,
611 1, AMR_OF(1, ltp), 125,
612 11, AMR_OF(1, pul_ih[0]), 131, 156, 158, 177, 246, 307, 367, 251,
613 197, 309, 326,
614 11, AMR_OF(1, pul_ih[1]), 120, 154, 148, 178, 227, 331, 363, 249,
615 192, 336, 345,
616 11, AMR_OF(1, pul_ih[2]), 122, 150, 141, 170, 221, 283, 322, 236,
617 201, 346, 313,
618 11, AMR_OF(1, pul_ih[3]), 121, 164, 138, 168, 231, 318, 366, 270,
619 194, 335, 329,
620 11, AMR_OF(1, pul_il[0]), 285, 205, 398, 448, 288, 244, 279, 399,
621 422, 438, 469,
622 11, AMR_OF(1, pul_il[1]), 302, 222, 393, 462, 242, 238, 281, 384,
623 420, 432, 470,
624 11, AMR_OF(1, pul_il[2]), 263, 211, 374, 461, 240, 252, 325, 357,
625 391, 424, 465,
626 11, AMR_OF(1, pul_il[3]), 241, 208, 375, 452, 266, 274, 306, 405,
627 416, 436, 464,
628 7, AMR_OF(1, vq_gain), 3, 18, 44, 26, 38, 32, 30,
629 4, AMR_OF(1, hb_gain), 75, 74, 73, 72,
630 9, AMR_OF(2, adap), 8, 23, 22, 21, 20, 52, 65, 103,
631 107,
632 1, AMR_OF(2, ltp), 124,
633 11, AMR_OF(2, pul_ih[0]), 155, 160, 161, 185, 250, 343, 411, 315,
634 260, 372, 395,
635 11, AMR_OF(2, pul_ih[1]), 143, 172, 174, 187, 247, 324, 413, 371,
636 277, 387, 351,
637 11, AMR_OF(2, pul_ih[2]), 139, 171, 173, 209, 257, 378, 400, 339,
638 254, 408, 377,
639 11, AMR_OF(2, pul_ih[3]), 130, 163, 137, 191, 212, 349, 389, 319,
640 200, 369, 338,
641 11, AMR_OF(2, pul_il[0]), 287, 219, 401, 458, 323, 292, 350, 421,
642 428, 443, 475,
643 11, AMR_OF(2, pul_il[1]), 294, 216, 404, 463, 308, 304, 312, 419,
644 431, 445, 476,
645 11, AMR_OF(2, pul_il[2]), 328, 230, 409, 449, 295, 317, 330, 407,
646 426, 442, 466,
647 11, AMR_OF(2, pul_il[3]), 296, 202, 392, 453, 284, 276, 271, 380,
648 430, 433, 457,
649 7, AMR_OF(2, vq_gain), 2, 17, 43, 25, 37, 47, 29,
650 4, AMR_OF(2, hb_gain), 87, 86, 85, 84,
651 6, AMR_OF(3, adap), 34, 53, 94, 89, 99, 116,
652 1, AMR_OF(3, ltp), 123,
653 11, AMR_OF(3, pul_ih[0]), 128, 175, 159, 180, 229, 297, 348, 300,
654 184, 360, 341,
655 11, AMR_OF(3, pul_ih[1]), 129, 166, 165, 195, 215, 332, 340, 301,
656 253, 376, 352,
657 11, AMR_OF(3, pul_ih[2]), 140, 152, 167, 190, 225, 342, 365, 264,
658 214, 390, 347,
659 11, AMR_OF(3, pul_ih[3]), 133, 144, 149, 179, 218, 316, 388, 321,
660 210, 403, 337,
661 11, AMR_OF(3, pul_il[0]), 265, 198, 368, 444, 269, 280, 305, 429,
662 423, 434, 477,
663 11, AMR_OF(3, pul_il[1]), 303, 228, 385, 460, 239, 262, 233, 362,
664 410, 417, 467,
665 11, AMR_OF(3, pul_il[2]), 235, 213, 394, 451, 245, 273, 299, 412,
666 425, 446, 471,
667 11, AMR_OF(3, pul_il[3]), 248, 176, 386, 454, 243, 286, 310, 397,
668 402, 437, 459,
669 7, AMR_OF(3, vq_gain), 1, 16, 42, 24, 36, 46, 28,
670 4, AMR_OF(3, hb_gain), 83, 82, 81, 80,
671 0
672 };
673
674 /** Reordering array addresses for each mode */
675 static const uint16_t* amr_bit_orderings_by_mode[] = {
676 order_MODE_6k60,
677 order_MODE_8k85,
678 order_MODE_12k65,
679 order_MODE_14k25,
680 order_MODE_15k85,
681 order_MODE_18k25,
682 order_MODE_19k85,
683 order_MODE_23k05,
684 order_MODE_23k85
685 };
686
687 // Extracted from 3GPP TS 26.173 V9.0.0 (qpisf_2s.tab)
688 // The *_36b tables are used in 6k60 mode
689 // Stored in fixed-point to save some space
690 /** Indexed tables for retrieval of quantized ISF vectors in Q15 */
691 static const int16_t dico1_isf[256][9] = {
692 { 579, 1081, 1035, 390, 3, -263, -198, -82, 38},
693 { 18, -68, -12, 313, 761, 405, 249, 111, -76},
694 { 740, 1263, 1292, 1006, 997, 1019, 1017, 976, 923},
695 { -91, 827, 948, 648, 613, 535, 522, 490, 421},
696 { 41, -44, -281, -472, 652, 534, 193, 135, -90},
697 { 41, -121, -356, -60, 663, 307, 61, -48, -344},
698 { 557, 946, 1049, 867, 846, 990, 1112, 1262, 1241},
699 { -118, -204, 328, 512, 870, 793, 610, 402, 186},
700 { 156, 293, 74, -338, -475, -897, -594, -161, -497},
701 { 226, 131, -138, 307, 169, -271, -164, -387, -624},
702 { 62, -32, -61, -252, -541, -828, -1027, -523, -662},
703 { 102, -61, 141, 112, -270, -251, -541, 25, -150},
704 { 6, -132, -356, -686, -96, -322, -522, -31, -326},
705 { -36, -209, -521, -229, 307, -132, -5, -99, -384},
706 { 60, -51, -237, -668, -973, -407, -708, -75, -172},
707 { 26, -138, -266, 111, -302, 43, -278, -356, -359},
708 { 570, 822, 496, -154, -312, -92, 137, 279, 371},
709 { -146, 368, 409, 68, 6, 77, 167, 202, 162},
710 { 633, 898, 996, 756, 662, 683, 783, 909, 996},
711 { -103, 294, 607, 415, 483, 462, 480, 431, 408},
712 { -120, -338, -612, -524, 584, 331, 92, 433, 276},
713 { -178, -293, -154, -41, 269, 100, -9, 213, 160},
714 { 830, 736, 278, 820, 1254, 686, 712, 1039, 473},
715 { -218, -304, 463, 454, 397, 273, 202, 286, 273},
716 { -232, 7, 6, -388, -472, -427, -378, -167, -100},
717 { -294, -183, 134, -47, 101, -88, -84, -117, -3},
718 { 57, 17, -202, -634, -989, -1119, -533, 176, -36},
719 { 120, -28, 23, 111, -319, 318, -22, -77, 266},
720 { -271, -464, -434, -658, -640, -385, -385, -99, -69},
721 { -198, -259, -266, -44, -39, -139, -137, 171, 66},
722 { 9, -145, -377, -846, -1000, -111, -325, 342, 135},
723 { -81, -286, -380, 192, -57, 307, 76, -24, -140},
724 { 677, 702, 247, 56, 249, 141, -105, -236, -99},
725 { 36, -39, -69, 348, 198, -93, 322, 91, -72},
726 { 503, 885, 1508, 1307, 1282, 1172, 1119, 1209, 1061},
727 { 416, 719, 989, 1227, 1001, 1052, 954, 741, 1044},
728 { -127, -376, -657, 139, 623, 223, 501, 306, 220},
729 { -113, -384, -796, 504, 438, 85, 213, -83, -194},
730 { 585, 1132, 1233, 1091, 1247, 1433, 1512, 1448, 1314},
731 { -174, -422, 7, 1155, 1089, 1182, 1003, 945, 806},
732 { 8, -126, -317, -103, -351, -695, -98, -268, -537},
733 { 33, -103, -290, 167, -39, -407, 44, -208, -375},
734 { 104, -23, -64, -291, -637, -851, -1084, -61, -112},
735 { -75, -306, -434, 218, -148, -354, -680, -133, -216},
736 { -121, -377, -718, -97, -130, -361, -156, -379, -599},
737 { -56, -254, -586, 235, 157, -214, 11, -260, -149},
738 { -124, -267, -397, -580, -593, -527, -805, -385, 346},
739 { -193, -440, -708, -351, -141, -255, -499, -147, -185},
740 { 448, 660, 494, 208, 509, 461, 338, 291, 149},
741 { -223, 88, 335, 159, 212, 191, 286, 308, 205},
742 { -31, 469, 803, 659, 619, 658, 843, 987, 1113},
743 { -171, -242, 514, 362, 295, 524, 552, 694, 585},
744 { -64, -308, -448, -21, 284, 786, 446, 289, 92},
745 { -218, -390, -7, 169, 206, 330, 352, 408, 358},
746 { -36, 702, 959, 859, 861, 1115, 1269, 1357, 1305},
747 { -133, -341, -65, 678, 417, 440, 486, 518, 780},
748 { 33, -44, -191, -344, -461, -755, -201, 217, -31},
749 { -353, -547, -44, 123, -61, -68, -79, 29, 60},
750 { 73, -57, -406, -766, -1243, -1203, 240, 400, 165},
751 { -73, -282, -601, -213, -171, -375, 332, 35, -103},
752 { -29, -207, -553, -476, -638, -908, 172, -22, -135},
753 { -192, -239, -164, -103, -111, -47, 153, 125, 110},
754 { -1, -203, -570, -1030, -1424, -535, 155, 1, 147},
755 { -333, -653, -865, -197, -158, -21, -44, 95, 108},
756 { 389, 588, 490, 33, -237, -524, -628, -136, -260},
757 { 40, -177, -462, 453, 862, 380, 131, -130, -405},
758 { 842, 1678, 1841, 1549, 1474, 1256, 1082, 905, 742},
759 { 370, 1216, 1768, 1633, 1212, 636, 22, -330, 71},
760 { -76, -281, -741, -742, 898, 619, 277, 71, -222},
761 { -32, -265, -556, -25, 994, 682, 305, 126, -165},
762 { 73, 738, 893, 968, 993, 1768, 2273, 1840, 1391},
763 { -69, -349, -585, 234, 1158, 903, 626, 510, 251},
764 { -1, -99, -272, -210, -603, -351, -540, -811, -383},
765 { -16, -230, -504, 410, 149, -205, -343, -651, -639},
766 { 103, -9, -227, -205, -562, -781, -1079, -1208, -156},
767 { 143, 63, -135, -67, -317, -602, -784, -1154, -640},
768 { -144, -391, -674, -622, -200, -254, -660, -947, -395},
769 { -40, -250, -625, 27, 543, 94, -131, -386, -673},
770 { -123, -371, -757, -451, -564, -614, -415, -711, -35},
771 { -116, -309, -593, -268, 239, -33, -338, -650, -135},
772 { 94, 251, 554, 57, -312, -423, -154, -57, 235},
773 { -268, -71, 381, 114, -44, -87, 125, 173, 133},
774 { 1513, 1714, 1238, 534, 276, 315, 461, 459, 508},
775 { -131, -19, 1149, 670, 486, 356, 309, 369, 296},
776 { -223, -501, -899, -722, -70, 6, 131, 310, 394},
777 { -99, -303, -517, 249, 64, -53, 135, -11, 453},
778 { -147, -399, -730, -401, 817, 738, 802, 749, 575},
779 { -154, -435, -739, 800, 593, 366, 529, 318, 326},
780 { -224, 45, -39, -387, -515, -518, -608, -384, -321},
781 { -315, -377, 143, -101, -113, -377, -177, -144, -12},
782 { 117, 40, -239, -651, -1051, -581, -737, -990, -328},
783 { 26, -50, -157, -23, -453, -283, -531, -546, 192},
784 { -252, -501, -743, -589, -627, -499, -328, -118, -72},
785 { -324, -494, -244, -306, -144, -177, -262, -135, -78},
786 { -36, -234, -519, -961, -1290, -314, -479, -371, -45},
787 { -95, -292, -535, -8, -300, 112, -164, -277, 198},
788 { -99, -128, 880, 836, 579, 351, 23, -95, -217},
789 { -27, -258, 124, 1011, 597, 425, 144, 7, -73},
790 { 421, 1293, 1640, 1623, 1742, 1617, 1499, 1284, 1006},
791 { -95, 752, 1680, 1569, 1618, 1436, 1200, 980, 712},
792 { -69, -300, -683, -435, 1132, 899, 504, 332, 109},
793 { -74, -323, -637, 563, 1074, 608, 371, 105, -49},
794 { -78, 831, 1194, 1110, 1378, 1481, 1492, 1365, 1217},
795 { -259, -121, 1440, 1334, 1628, 1490, 1438, 1223, 933},
796 { -82, -306, -613, -222, -378, -675, -545, -671, -845},
797 { 53, -124, -347, 422, 52, -125, -270, -529, 9},
798 { 79, -89, -320, -662, -999, -1199, -1243, -676, -297},
799 { -68, -273, -611, 137, -146, -397, -627, -845, -220},
800 { -112, -346, -797, -826, 234, -132, -188, -278, -522},
801 { -159, -405, -734, -419, 293, 74, -167, -167, 184},
802 { -153, -437, -833, -1080, -336, -472, -561, -340, -253},
803 { -169, -423, -820, -904, -131, -19, -346, -604, 31},
804 { 33, -31, 312, 62, -148, 49, -59, 564, 486},
805 { -306, -333, 194, -44, 67, 72, 147, 205, 243},
806 { -207, -49, 1360, 983, 969, 991, 1014, 1110, 973},
807 { -211, -172, 883, 627, 711, 674, 705, 798, 746},
808 { -88, -325, -763, -974, 687, 908, 514, 382, 172},
809 { -292, -612, -805, 63, 131, 270, 259, 352, 348},
810 { -235, -84, 955, 818, 1120, 1289, 1559, 1480, 1285},
811 { -180, -461, -614, 657, 691, 745, 854, 783, 713},
812 { -97, -309, -477, -614, -777, -734, -768, -526, -472},
813 { -344, -476, -35, -169, 49, -77, -150, -240, -141},
814 { -52, -268, -639, -919, -1278, -1113, -342, -333, -151},
815 { -68, -242, -585, -73, -209, -478, -159, -429, 133},
816 { -197, -499, -1005, -1268, -272, -224, -105, -67, 17},
817 { -363, -618, -414, -116, -62, 20, 10, 116, 108},
818 { -195, -475, -906, -1260, -891, -441, -277, -142, -28},
819 { -226, -519, -950, -700, -275, -266, -116, -105, 82},
820 { 404, 511, 520, 327, 17, -194, -333, -536, -586},
821 { -114, -130, 276, 237, 204, 342, 135, -16, -111},
822 { 670, 1208, 1168, 860, 742, 601, 528, 403, 309},
823 { 397, 621, 966, 752, 579, 398, 400, 329, 252},
824 { 191, 180, -137, -467, 272, 106, -95, 17, -192},
825 { -80, -290, -626, 194, 598, 196, 21, -281, 77},
826 { 510, 864, 1108, 807, 939, 902, 925, 717, 481},
827 { 137, 367, 534, 764, 670, 382, 296, 153, 84},
828 { 303, 497, 144, -85, -125, -539, -482, -464, -764},
829 { 233, 347, 68, -147, 169, -210, -242, -226, -482},
830 { 307, 422, 154, -175, -386, -722, -724, -904, -1015},
831 { 309, 308, 160, -60, -470, -420, -598, -791, -219},
832 { 68, 121, -137, -560, -146, -446, -515, -494, -729},
833 { 130, 53, -227, 46, 474, 32, -161, -192, -490},
834 { 213, 164, -71, -465, -876, -161, -456, -587, -48},
835 { 218, 117, 39, 177, -194, -88, -226, -418, 50},
836 { 210, 547, 569, 279, 121, -44, -50, 10, -84},
837 { 58, 140, 182, -5, 267, 117, 106, 211, 198},
838 { 539, 835, 913, 719, 617, 544, 591, 565, 642},
839 { 153, 559, 872, 460, 222, 108, 188, 180, 183},
840 { 158, 119, 284, -153, -271, 229, 87, 110, -57},
841 { -183, 82, 118, 21, 13, 40, 118, 191, 185},
842 { 162, 889, 654, 108, -34, 244, 488, 561, 532},
843 { 163, 56, 609, 341, 50, 329, 68, 266, 218},
844 { 100, 206, 18, -304, -107, -436, -487, -65, -306},
845 { -86, 154, 134, -30, -45, -73, -104, -80, -96},
846 { 245, 330, 10, -440, -849, -1082, 79, 40, -265},
847 { 196, 372, 272, -181, -493, -389, 275, 80, -59},
848 { 2, -12, -246, -505, -100, -436, 21, -187, -431},
849 { -221, -48, 36, -271, -186, -147, -109, 26, 71},
850 { 213, 140, 72, -351, -620, -84, -363, 69, 46},
851 { 91, 167, -3, -95, -99, -105, -48, 114, 147},
852 { 259, 249, 172, 607, 406, 52, 59, -189, -320},
853 { 115, -85, -54, 574, 128, 226, -59, -253, 130},
854 { -62, 1033, 1308, 1035, 1127, 1098, 1029, 961, 823},
855 { 39, 364, 757, 940, 728, 660, 659, 583, 770},
856 { -115, -338, -760, -471, 394, 37, 441, 178, 6},
857 { -57, -305, -525, 796, 453, 188, -4, -114, 248},
858 { 71, 444, 797, 731, 1096, 1157, 1222, 1029, 811},
859 { 135, 359, 551, 425, 749, 815, 874, 704, 502},
860 { 132, 247, 0, -206, -449, -750, -258, -514, -633},
861 { 248, 249, 91, 121, -195, -499, -90, -282, -435},
862 { 78, 20, -277, -623, -983, -1224, -415, -458, -639},
863 { 347, 509, 208, -179, -464, -728, -76, -237, -486},
864 { -103, -343, -756, -713, -265, -609, -191, -398, -636},
865 { -121, -383, -749, 567, 252, -36, -354, -417, -50},
866 { 204, 100, -149, -650, -1081, -47, -7, -263, 111},
867 { -46, -180, -267, -324, -562, -394, -692, 398, 292},
868 { 482, 670, 683, 624, 442, 165, 116, 36, -149},
869 { 108, 247, 291, 247, 355, 122, 109, 224, 296},
870 { -14, 945, 990, 801, 755, 815, 847, 913, 892},
871 { 292, 349, 725, 482, 388, 329, 429, 620, 667},
872 { -34, 197, 213, -127, 84, 494, 620, 575, 375},
873 { 126, 207, 172, 167, 362, 202, 296, 395, 455},
874 { -6, 250, 539, 467, 636, 801, 1149, 1287, 1118},
875 { 27, 240, 369, 280, 440, 411, 634, 892, 953},
876 { 159, 170, -58, -395, -797, -690, 77, -211, -334},
877 { -5, -28, -13, -74, -335, -603, 300, 88, -205},
878 { 82, -33, -364, -698, -1203, -1153, 110, -146, -289},
879 { 113, 1, -243, -588, -994, -496, 414, 160, 42},
880 { -56, -247, -440, -693, -996, -479, 11, -178, -357},
881 { -151, -353, -327, -211, -340, 141, 65, 425, 453},
882 { 34, -169, -455, -932, -1215, 138, 499, 256, 324},
883 { 68, 139, -15, -547, -478, 17, 306, 502, 481},
884 { -32, -134, 445, 129, -143, -244, -503, -507, -599},
885 { 61, -140, -345, 496, 458, -2, 20, -227, -514},
886 { 394, 1765, 1666, 1339, 1117, 806, 642, 479, 380},
887 { 215, 519, 920, 1053, 1090, 791, 528, 290, 155},
888 { -54, -233, -647, -602, 639, 294, -2, -167, -442},
889 { -78, -315, -791, -113, 820, 403, 158, -116, -356},
890 { 529, 1851, 2003, 1228, 622, -41, -416, 344, 819},
891 { -105, -379, -236, 1224, 893, 749, 568, 356, 214},
892 { -17, -199, -144, 50, -283, -247, -578, -846, -1087},
893 { 69, -11, -381, -206, 209, -284, -387, -416, -716},
894 { 39, -5, -145, -374, -682, -909, -1074, -1169, -1066},
895 { 287, 226, 67, -221, -662, -171, -421, -642, -707},
896 { -132, -348, -538, -448, -20, -4, -354, -748, -933},
897 { 4, -75, -289, -598, 317, 52, -208, -297, -559},
898 { -88, -264, -358, -589, -631, -248, -523, -822, -1071},
899 { 70, -8, 54, -314, -515, 92, -146, -274, -493},
900 { 199, 62, 391, 158, -141, 71, -219, -203, -207},
901 { 152, 40, 329, 162, -29, 48, -149, 108, 127},
902 { 635, 1058, 883, 492, 372, 312, 317, 274, 241},
903 { 267, 722, 1256, 882, 625, 248, 8, -81, -60},
904 { -58, -138, -291, -600, -12, -2, -39, 147, 117},
905 { -107, -345, -513, 459, 76, 92, -272, 388, 262},
906 { 362, 516, 203, -409, -716, -831, -331, 185, 209},
907 { -117, -391, -298, 671, 292, 538, 257, 166, -38},
908 { -102, -319, -194, -283, -573, -262, -579, -219, -444},
909 { -235, 78, 11, -168, -101, -229, -263, -321, -123},
910 { 70, 50, -170, -599, -996, -588, -263, -516, -455},
911 { 394, 363, 229, -136, -538, 21, -183, -348, -201},
912 { -124, -368, -640, -879, -847, -209, -409, -494, -515},
913 { -127, -341, -541, -425, -510, -10, -252, -473, -291},
914 { 84, -69, -201, -676, -868, 103, -311, -132, -320},
915 { 5, -173, -188, -297, -628, 197, -57, 7, -11},
916 { 49, -160, 56, 558, 111, 33, -311, -440, -463},
917 { -1, -246, -307, 862, 453, 139, -170, -355, -232},
918 { 279, 966, 1642, 1478, 1463, 1123, 795, 525, 339},
919 { -197, -38, 1702, 1331, 1252, 950, 692, 504, 426},
920 { -108, -344, -861, -1172, 444, 354, 88, -46, -220},
921 { -53, -321, -494, 1113, 744, 364, 198, -34, -75},
922 { 457, 955, 1177, 1214, 1427, 1457, 1345, 917, 539},
923 { -69, 199, 897, 1140, 1343, 1183, 977, 742, 522},
924 { 122, 44, -269, 27, -155, -562, -307, -590, -773},
925 { 154, 42, -160, 252, -129, -305, -471, -733, -371},
926 { 135, 185, -82, -416, -722, -913, -504, -743, -880},
927 { 149, 214, -84, -329, -680, -835, -426, -661, -81},
928 { -128, -380, -735, -998, -337, 17, -182, -467, -697},
929 { -84, -290, -510, -592, 13, 440, 154, -38, -279},
930 { 70, -61, -246, -727, -1047, -80, -381, -535, -704},
931 { 178, -2, -146, -670, -938, 482, 138, 63, 65},
932 { -11, 15, 772, 443, 142, -20, -209, -126, -161},
933 { -32, -249, 95, 552, 124, 30, -343, 82, -86},
934 { 148, 751, 1515, 1105, 867, 606, 474, 448, 399},
935 { -163, -257, 899, 1097, 906, 751, 502, 390, 294},
936 { -51, -258, -447, -806, -368, 763, 464, 364, 183},
937 { -166, -374, -367, 87, 35, 399, 418, 856, 833},
938 { -205, -310, 588, 778, 785, 1065, 1118, 1245, 1157},
939 { -173, -312, 107, 345, 400, 790, 870, 1113, 1001},
940 { -7, -120, -387, -410, -614, -943, -226, -384, -491},
941 { -203, -288, -51, -331, -90, -178, -408, -573, -338},
942 { 56, -29, -273, -627, -1041, -798, -247, -467, 148},
943 { 66, -2, -205, -205, -575, -349, -57, -352, -58},
944 { -45, -225, -471, -924, -497, 77, -32, 44, -135},
945 { -277, -491, -497, -502, -424, -202, -137, 77, 96},
946 { 26, -179, -469, -1008, -1260, 262, -35, -132, -259},
947 { -66, -232, -447, -533, -789, -191, -100, -267, 364}
948 };
949
950 static const int16_t dico2_isf[256][7] = {
951 { 1357, 1313, 1136, 784, 438, 181, 145},
952 { 636, 648, 667, 568, 442, 217, 362},
953 { 427, 440, 674, 524, 332, 117, -417},
954 { 121, 295, 468, 465, 230, 44, -221},
955 { -147, -240, 149, 80, 390, 278, 106},
956 { -418, -556, 552, 511, 235, 144, -95},
957 { 43, 193, 274, 150, 67, 34, -273},
958 { -43, -126, 171, 416, 282, 63, -354},
959 { -372, -86, -344, -108, -94, -182, -89},
960 { -600, -840, -200, 465, 258, -11, -253},
961 { -48, 329, 97, -290, -543, -795, -354},
962 { -570, -117, 187, 10, -133, -416, -76},
963 { -618, -129, -247, -371, 45, -76, 277},
964 { -1022, -1079, 126, 474, 254, 127, 52},
965 { -281, 76, -167, -361, -283, -551, -283},
966 { -119, -52, -1, 134, -32, -204, -415},
967 { 1064, 827, 637, 684, 464, 209, 12},
968 { 482, 416, 449, 371, 335, 294, 194},
969 { 719, 576, 365, 135, 113, 91, -199},
970 { 298, 176, 493, 366, 194, 163, 36},
971 { -35, -236, -259, -36, -4, 99, 152},
972 { -98, -306, -27, 228, 90, 111, -86},
973 { 91, 13, -211, -258, -106, 86, -64},
974 { 73, -35, -57, -31, 162, 35, -192},
975 { -109, -335, -629, -66, -61, -128, 322},
976 { -495, -669, -728, 193, 31, -220, 122},
977 { 324, 95, -89, -91, -409, -710, -154},
978 { 0, -234, 92, 33, -343, -609, -220},
979 { -343, -408, -476, -655, -153, 82, 222},
980 { -490, -745, -255, 49, -48, 135, -127},
981 { 119, -67, -328, -390, -272, -545, -56},
982 { -57, -130, -10, -7, -164, -47, -22},
983 { 984, 1064, 961, 568, 210, -27, 16},
984 { 811, 691, 754, 514, 224, -35, 166},
985 { 662, 704, 618, 386, 57, -211, -257},
986 { 510, 359, 418, 393, 91, -144, -18},
987 { -193, -31, -27, 223, 89, -143, 24},
988 { -112, -98, 471, 319, 185, 3, 175},
989 { 252, 146, -47, 272, 48, -211, -234},
990 { 146, 69, 203, 364, 68, -52, 51},
991 { -259, -478, -697, -349, -758, -501, 63},
992 { -501, -769, -289, 79, -311, -497, -106},
993 { 251, 53, -235, -469, -895, -884, 145},
994 { -416, -551, 140, -133, -523, -775, 44},
995 { -326, -423, -713, -497, -86, -431, 99},
996 { -757, -772, -160, -76, -46, -32, 379},
997 { 85, -35, -200, -401, -663, -1040, -247},
998 { -180, -330, -92, -376, 27, -183, -110},
999 { 1279, 1086, 781, 502, 324, 164, 157},
1000 { 682, 466, 449, 277, 146, 28, 409},
1001 { 635, 472, 390, 107, -232, -538, -139},
1002 { 196, 396, 332, 213, 209, -29, -81},
1003 { 150, -95, -312, 76, -77, -320, -50},
1004 { 46, 9, 47, 175, 139, 30, 384},
1005 { 218, 206, -24, -250, -96, -276, -183},
1006 { 26, 119, 38, 14, -4, -133, -52},
1007 { -477, -614, -987, -715, -631, -813, 200},
1008 { -744, -1009, -1065, -745, -631, -171, 18},
1009 { -137, -251, -483, -613, -980, -1203, 12},
1010 { -605, -767, -562, -686, -1088, -515, 58},
1011 { -202, -428, -782, -1072, -96, -234, -179},
1012 { -480, -709, -1070, -897, -131, -92, 321},
1013 { -145, -193, -512, -729, -572, -765, -210},
1014 { -331, -585, -525, -631, -281, -208, -303},
1015 { 1165, 1104, 939, 828, 716, 426, 155},
1016 { 6, -109, 820, 778, 415, 113, -27},
1017 { 381, 339, 314, 265, 121, -9, -474},
1018 { -373, 47, 584, 442, 99, -231, -113},
1019 { -496, -38, -285, 262, 305, 170, 4},
1020 { -587, -556, 69, 66, 471, 354, 13},
1021 { -138, 70, -18, 106, 67, 167, -302},
1022 { -445, -141, 185, 191, 151, 83, -133},
1023 { -257, -521, -720, -198, 134, -46, -182},
1024 { -819, -1168, -777, 512, 359, 95, -113},
1025 { 137, -2, -74, -138, -401, -114, -371},
1026 { -242, -466, 204, 223, -31, -212, -192},
1027 { -532, -637, -466, -686, 256, 277, -139},
1028 { -1141, -1244, -381, -75, -54, 14, 88},
1029 { -311, 115, -143, -499, -343, 124, -416},
1030 { -616, -147, -135, 43, -4, 121, -369},
1031 { 835, 783, 641, 390, 355, 350, 64},
1032 { 72, 194, 443, 467, 436, 219, 372},
1033 { 464, 369, 192, 4, -156, -72, -226},
1034 { 57, 206, 303, 205, 188, 101, 265},
1035 { -40, -205, -488, -184, 276, 64, -26},
1036 { -217, -433, -297, 137, 328, 308, -289},
1037 { 378, 81, -308, -465, 57, -37, 227},
1038 { -100, 24, -36, -151, 199, 8, 143},
1039 { -426, -697, -1059, -133, 388, 161, 321},
1040 { -644, -1023, -1271, 39, 66, -123, 70},
1041 { 372, 177, -173, -556, -553, -304, -189},
1042 { -117, -369, -425, -122, -462, -152, -73},
1043 { -649, -850, -1189, -767, 497, 360, 222},
1044 { -798, -1139, -1455, -190, 430, 234, 179},
1045 { 42, -94, -405, -692, 38, -202, -246},
1046 { -169, -366, -290, -88, -64, 32, -292},
1047 { 1010, 923, 938, 710, 465, 230, 342},
1048 { 217, 300, 1054, 675, 68, -458, -179},
1049 { 78, 453, 316, 18, -237, -496, -243},
1050 { 167, 21, 424, 215, -91, -303, -170},
1051 { -290, -81, -70, -67, 40, 54, -59},
1052 { -353, -427, -90, 53, 94, 9, 54},
1053 { -28, 318, 283, 15, -240, -58, 79},
1054 { -75, -121, 229, 35, 58, 6, -133},
1055 { -351, -514, -744, -834, -705, -137, 164},
1056 { -1124, -1388, -1055, -230, -73, 40, 36},
1057 { -163, -233, -532, -785, -1170, -697, 96},
1058 { -788, -959, -246, -430, -624, -165, -8},
1059 { -856, -540, -630, -907, -337, -70, 76},
1060 { -937, -1042, -659, -733, -208, 199, -26},
1061 { -523, 78, -98, -501, -869, -890, -81},
1062 { -624, -703, -45, -348, -25, 87, -186},
1063 { 1005, 823, 546, 249, 90, -22, 207},
1064 { 298, 397, 381, 319, 200, 62, 303},
1065 { 473, 379, 133, -247, -632, -441, 75},
1066 { 284, 208, 391, 115, -25, 44, 95},
1067 { -72, 79, -95, -63, -129, -293, 203},
1068 { -164, -349, 115, 122, 69, -1, 378},
1069 { 348, 170, 99, 58, -179, -302, 188},
1070 { -190, -2, 150, 23, -51, -11, 216},
1071 { -615, -863, -1090, -1427, -802, -48, -6},
1072 { -961, -1276, -1548, -727, -58, 56, 223},
1073 { -124, -255, -561, -988, -1277, -148, -82},
1074 { -480, -660, -891, -1191, -1339, -325, 20},
1075 { -621, -917, -1296, -1350, 264, 289, 50},
1076 { -844, -1022, -1345, -1329, -293, 46, 278},
1077 { -260, -468, -829, -1176, -533, -560, -78},
1078 { -215, -484, -822, -1233, -791, 15, -138},
1079 { 1301, 1317, 1262, 1048, 716, 357, -64},
1080 { 578, 824, 925, 802, 630, 362, 102},
1081 { 470, 925, 767, 514, 327, 190, -112},
1082 { 225, 492, 495, 437, 598, 384, -45},
1083 { 43, 82, -42, 175, 519, 342, -64},
1084 { -304, -154, 159, 576, 403, 221, 327},
1085 { 214, 244, 122, -62, 312, 92, -160},
1086 { 218, 208, 310, 268, 306, 323, -199},
1087 { -285, -269, -79, -124, -143, -153, 236},
1088 { -205, -384, -426, 344, 59, -185, -184},
1089 { -272, 247, 126, -210, -518, -468, 78},
1090 { -99, -120, 502, 160, -280, -557, 304},
1091 { -423, -17, -283, -443, 215, 212, -140},
1092 { -564, -684, -228, 510, 361, 130, 323},
1093 { -428, 335, 98, -65, 36, -215, -246},
1094 { -362, 51, 364, -16, -234, 150, -165},
1095 { 914, 883, 751, 653, 676, 464, -153},
1096 { 631, 545, 535, 720, 596, 360, -81},
1097 { 783, 712, 512, 439, 341, 251, -391},
1098 { 497, 417, 249, 372, 295, 173, -193},
1099 { 128, -110, -385, 93, 39, 173, -231},
1100 { 216, -59, -253, 462, 389, 154, 69},
1101 { 455, 270, -4, -337, -49, 233, -322},
1102 { 307, 143, 53, 218, 128, 236, -156},
1103 { -37, -186, -240, -411, -110, 9, 399},
1104 { -140, -365, -628, 258, 380, 214, 277},
1105 { 131, 454, 177, -285, -520, 108, -214},
1106 { 77, -141, 201, -123, -490, -131, 60},
1107 { -14, -194, -521, -741, 273, 362, -33},
1108 { -362, -566, -287, -228, 161, 237, 317},
1109 { -269, 195, -75, -375, -204, 11, 77},
1110 { -128, -264, -156, -223, -475, 265, 27},
1111 { 1238, 1147, 916, 689, 432, 210, -280},
1112 { 800, 664, 879, 726, 411, 160, -164},
1113 { 454, 686, 536, 275, 147, 46, 111},
1114 { 303, 486, 512, 355, 241, 181, -69},
1115 { 79, 92, 29, 147, 233, 52, 17},
1116 { -171, 289, 131, 439, 271, 3, -10},
1117 { 413, 241, 144, 174, 155, -2, 14},
1118 { 58, 217, 247, 219, 149, 175, -18},
1119 { 228, -8, -240, -206, -513, -191, 202},
1120 { -96, -272, -454, 33, -300, -575, 46},
1121 { -10, -108, -246, -347, -770, -535, 9},
1122 { -326, -430, -61, -321, -704, -299, 201},
1123 { -1, -280, -603, -419, -185, 18, -36},
1124 { -516, -522, -379, -291, -181, -97, 27},
1125 { -159, -313, -525, -224, -510, -831, -197},
1126 { -292, -459, -59, -310, -562, -143, -351},
1127 { 1066, 912, 631, 389, 207, 86, -224},
1128 { 596, 512, 596, 505, 314, 122, -48},
1129 { 787, 861, 441, -93, -303, 33, -190},
1130 { 257, 469, 337, 51, 15, 298, -93},
1131 { 295, 73, -119, 25, 36, 23, 108},
1132 { -28, -3, -32, 114, 21, 185, 107},
1133 { 482, 305, 15, -279, -319, 52, 96},
1134 { 226, 46, 115, 72, -136, 133, -125},
1135 { 18, -207, -559, -590, -503, -482, 321},
1136 { -571, -789, -951, -172, -441, -538, 113},
1137 { 181, 14, -310, -641, -1001, -202, 159},
1138 { -136, -393, -433, -513, -911, -144, -22},
1139 { 72, -265, -706, -954, -159, 53, 332},
1140 { -338, -591, -852, -383, -395, 56, 44},
1141 { 43, -158, -464, -897, -631, -157, -294},
1142 { -161, -128, -328, -573, -483, -125, 11},
1143 { 1017, 906, 1051, 1005, 679, 341, -102},
1144 { 359, 334, 1567, 1314, 723, 105, 10},
1145 { -65, 726, 529, 301, 220, 43, -273},
1146 { -510, 436, 719, 566, 358, 179, 114},
1147 { -560, 298, 133, -120, 342, 225, 14},
1148 { -899, -101, 217, 617, 400, 146, -58},
1149 { -41, 352, 82, -196, 39, 121, -167},
1150 { -212, 59, 447, 284, 423, 250, -169},
1151 { -371, -484, -596, 30, -41, 249, 22},
1152 { -372, -650, -794, 477, 445, 216, -79},
1153 { -352, 275, 17, -443, -929, 92, 19},
1154 { -699, -696, 431, 264, -49, -310, 182},
1155 { -978, -217, -430, -400, 101, 261, 72},
1156 { -929, -889, -357, -13, 463, 378, 236},
1157 { -826, 56, 30, -299, -360, -128, -51},
1158 { -878, -299, -111, 75, 65, 36, 3},
1159 { 817, 368, -25, 354, 697, 591, -173},
1160 { 309, 212, 222, 751, 484, 140, -56},
1161 { 593, 379, 70, -8, 258, 180, 110},
1162 { 165, -46, 255, 297, 219, 273, 105},
1163 { 160, -70, -358, -181, 379, 330, 319},
1164 { -238, -369, -198, 740, 580, 319, -143},
1165 { 201, 109, -202, -456, 328, 276, -141},
1166 { 203, 170, 111, 42, 207, 360, 188},
1167 { -345, -399, -513, -233, 650, 422, 81},
1168 { -635, -961, -1220, 463, 539, 204, 209},
1169 { 202, -25, -194, -498, -787, 193, -143},
1170 { -449, -538, 195, -106, -331, 68, 62},
1171 { -228, -477, -840, -576, 317, 128, 283},
1172 { -671, -937, -807, -114, 391, 335, -62},
1173 { 246, 2, -314, -679, -303, 180, -88},
1174 { -107, -272, 90, -198, -28, 290, -112},
1175 { 885, 1149, 1021, 712, 496, 281, -83},
1176 { 269, 492, 787, 643, 347, 70, 124},
1177 { 336, 636, 499, 92, -229, -179, 191},
1178 { 26, 402, 564, 340, 149, -11, 135},
1179 { -440, 561, 470, 204, -72, -186, 140},
1180 { -720, 14, 355, 229, 68, -133, 465},
1181 { 110, 310, 103, 12, 106, 29, 158},
1182 { -178, 113, 161, 142, 121, 115, 27},
1183 { -651, -414, -645, -152, -164, -13, -429},
1184 { -639, -944, -681, -104, -81, 52, -189},
1185 { -663, -164, -316, -683, -954, -205, -83},
1186 { -609, -669, -172, -517, -694, 283, -80},
1187 { -646, -152, -383, -678, -246, -40, -143},
1188 { -747, -796, -745, -390, -98, 43, 275},
1189 { -599, -199, -398, -433, -436, -538, 31},
1190 { -1107, -568, -376, -265, -126, -21, 1},
1191 { 847, 573, 308, 392, 305, 101, 55},
1192 { 273, 293, 201, 267, 346, 201, 123},
1193 { 727, 480, 226, 2, -65, -138, 164},
1194 { 273, 208, 173, 292, 12, 253, 174},
1195 { 340, 207, 180, 88, 116, 46, 475},
1196 { -460, -166, -30, 13, 110, 173, 396},
1197 { 137, 88, 43, -137, -94, 34, 284},
1198 { 96, -14, 226, 40, 63, 70, 130},
1199 { -467, -735, -1012, -1174, -307, 305, -67},
1200 { -612, -920, -1146, -567, -8, 92, -25},
1201 { -182, -271, -492, -754, -857, 287, -75},
1202 { -494, -787, -689, -683, -709, 137, -326},
1203 { -288, -550, -903, -1105, 334, 321, -62},
1204 { -354, -653, -834, -445, 1, 377, -152},
1205 { -162, -306, -608, -937, -297, 247, -192},
1206 { -234, -477, -244, -488, -266, 342, -332}
1207 };
1208
1209 static const int16_t dico21_isf[64][3] = {
1210 { 329, 409, 249}, { -33, 505, 160},
1211 { -29, -14, 582}, { -262, 127, 354},
1212 { 145, 237, 175}, { -152, 245, 122},
1213 { 27, 42, 340}, { -84, -93, 311},
1214 { 285, 222, -156}, { 47, -43, -504},
1215 { 234, 121, 385}, { 104, -317, 45},
1216 { 176, 195, 8}, { 104, -59, -94},
1217 { 177, 53, 192}, { -34, -127, 152},
1218 { 570, 277, -34}, { -67, -329, -639},
1219 { -157, -272, 462}, { -177, -462, 198},
1220 { 322, 179, 115}, { -386, 171, 19},
1221 { 19, -12, 195}, { -120, -252, 201},
1222 { 304, 36, -336}, { -128, -221, -380},
1223 { 171, -185, 296}, { -242, -312, 23},
1224 { 198, 39, 16}, { -3, -177, -111},
1225 { 111, -93, 76}, { -92, -223, 4},
1226 { 177, 406, -44}, { -168, 380, -149},
1227 { -4, 273, 331}, { -420, 513, 277},
1228 { 21, 247, 47}, { -58, 131, -2},
1229 { -3, 134, 180}, { -145, 40, 175},
1230 { 189, 74, -145}, { -27, -45, -325},
1231 { 370, -114, -21}, { -83, -415, -173},
1232 { 77, 95, -51}, { -40, -30, -67},
1233 { 71, 88, 86}, { -35, -98, 14},
1234 { 69, 197, -334}, { -196, 79, -231},
1235 { -348, -137, 218}, { -352, -89, -85},
1236 { 47, 201, -130}, { -165, 37, -15},
1237 { -43, 3, 86}, { -161, -108, 79},
1238 { 83, 21, -237}, { -81, -149, -238},
1239 { 150, -186, -251}, { -186, -249, -162},
1240 { -19, 66, -139}, { -26, -50, -181},
1241 { 24, 11, 0}, { -130, -105, -98}
1242 };
1243
1244 static const int16_t dico22_isf[128][3] = {
1245 { -127, 310, 42}, { -242, 197, 5},
1246 { -151, 84, -17}, { -214, 127, -149},
1247 { -247, -131, 159}, { -268, -267, -95},
1248 { -217, 1, -79}, { -271, -80, -185},
1249 { -45, 436, 159}, { 165, 199, 391},
1250 { -33, 81, 187}, { -66, -42, 355},
1251 { -298, -57, 343}, { -108, -537, 226},
1252 { -144, -23, 193}, { 176, -402, 87},
1253 { 53, 296, 25}, { -84, 253, -104},
1254 { -58, 105, -126}, { -169, 174, -314},
1255 { -48, 44, -294}, { -164, -417, -242},
1256 { -139, 3, -194}, { -155, -207, -211},
1257 { 119, 322, 213}, { 333, 50, 380},
1258 { 237, 247, -2}, { 466, -16, 201},
1259 { 238, -255, -107}, { 67, -440, -149},
1260 { 122, -88, -139}, { 88, -247, -73},
1261 { -41, 231, 167}, { -62, 155, 16},
1262 { -65, 16, 77}, { -68, -2, -63},
1263 { -151, -300, 160}, { -18, -333, 54},
1264 { -56, -94, 5}, { 2, -190, 14},
1265 { 92, 148, 209}, { 108, 9, 272},
1266 { 108, 35, 110}, { 142, -85, 145},
1267 { 47, -157, 279}, { 3, -320, 246},
1268 { 43, -72, 68}, { 86, -217, 135},
1269 { 36, 140, 79}, { 56, 175, -49},
1270 { 26, 45, 3}, { 73, 55, -101},
1271 { 109, -183, -242}, { -4, -283, -242},
1272 { 48, -68, -48}, { -6, -153, -122},
1273 { 161, 196, 96}, { 232, 80, 190},
1274 { 165, 97, 11}, { 258, -31, 71},
1275 { 267, -77, -91}, { 311, -209, 87},
1276 { 152, -14, -22}, { 150, -149, 9},
1277 { -324, 557, 187}, { -384, 307, 46},
1278 { -251, 27, 77}, { -365, 77, -52},
1279 { -482, -84, 160}, { -424, -515, -64},
1280 { -294, -120, -4}, { -476, -116, -109},
1281 { -97, 318, 365}, { 106, 627, 445},
1282 { -190, 120, 287}, { -146, 65, 619},
1283 { -427, 242, 363}, { -361, -371, 432},
1284 { -347, 102, 168}, { -629, 195, -14},
1285 { -65, 476, -47}, { -297, 320, -168},
1286 { -55, 356, -264}, { -391, 82, -286},
1287 { -51, -31, -556}, { -178, -399, -586},
1288 { -205, -49, -360}, { -343, -238, -337},
1289 { 220, 457, 58}, { 561, 467, 259},
1290 { 340, 270, -168}, { 450, 77, -280},
1291 { 60, 167, -413}, { 133, -252, -492},
1292 { 216, 157, -290}, { 282, 0, -495},
1293 { -226, 293, 183}, { -157, 135, 122},
1294 { -158, -59, 39}, { -133, -118, -97},
1295 { -332, -309, 113}, { -160, -425, -6},
1296 { -149, -211, 24}, { -80, -277, -90},
1297 { -11, 125, 338}, { 130, -71, 465},
1298 { 5, -45, 184}, { 237, -95, 253},
1299 { -139, -197, 297}, { -19, -300, 511},
1300 { -63, -152, 139}, { 250, -289, 336},
1301 { 124, 339, -150}, { 34, 176, -208},
1302 { 171, 166, -116}, { 94, 38, -229},
1303 { 75, -65, -339}, { -78, -205, -385},
1304 { 0, -30, -163}, { -56, -110, -242},
1305 { 321, 244, 194}, { 505, 238, -1},
1306 { 317, 116, 65}, { 309, 88, -74},
1307 { 452, -51, -50}, { 334, -217, -290},
1308 { 211, 41, -152}, { 238, -55, -260}
1309 };
1310
1311 static const int16_t dico23_isf[128][3] = {
1312 { -10, 151, 359}, { 136, 298, 223},
1313 { 255, -104, 290}, { 423, 6, 183},
1314 { -270, -269, -98}, { -52, -82, 13},
1315 { -82, -274, -97}, { 90, -246, -72},
1316 { -299, -70, 421}, { -88, 365, 430},
1317 { 187, -318, 381}, { 380, 37, 488},
1318 { -373, -316, 79}, { -308, -101, 5},
1319 { -135, -451, 8}, { 72, -421, -154},
1320 { 180, 170, -121}, { 62, 177, -40},
1321 { 326, 80, -105}, { 248, 263, -5},
1322 { -168, -181, -221}, { -2, -23, -158},
1323 { -14, -149, -121}, { 119, -91, -147},
1324 { 119, 332, -153}, { 49, 303, 34},
1325 { 442, -55, -69}, { 217, 454, 58},
1326 { -359, -187, -375}, { -42, 50, -274},
1327 { -8, -267, -249}, { 85, -86, -346},
1328 { -77, -40, 345}, { 89, 134, 219},
1329 { 156, -80, 160}, { 108, 40, 116},
1330 { -158, -206, 29}, { 5, -32, 175},
1331 { -65, -158, 146}, { 55, -78, 73},
1332 { -114, -222, 353}, { -47, 81, 211},
1333 { 49, -151, 268}, { 105, 4, 302},
1334 { -263, -132, 183}, { -151, -28, 201},
1335 { -177, -307, 166}, { 101, -221, 130},
1336 { 74, 58, -98}, { 32, 44, 13},
1337 { 194, 30, -142}, { 170, 96, 8},
1338 { -136, -119, -91}, { -65, 8, -55},
1339 { 3, -188, 12}, { 45, -63, -49},
1340 { 149, -21, -19}, { 24, 144, 95},
1341 { 254, -22, 60}, { 161, 196, 96},
1342 { -158, -61, 48}, { -70, 33, 82},
1343 { -23, -321, 58}, { 155, -147, 5},
1344 { -364, 328, 77}, { -21, 453, 173},
1345 { -108, 82, 630}, { 367, 263, 208},
1346 { -300, -62, -176}, { -205, 143, -158},
1347 { -169, -410, -264}, { 257, -269, -100},
1348 { -636, 289, -2}, { -292, 627, 173},
1349 { -382, -363, 387}, { 248, 524, 447},
1350 { -521, -111, -107}, { -395, 118, -274},
1351 { -343, -680, -125}, { -172, -447, -663},
1352 { 75, 148, -367}, { -79, 263, -94},
1353 { 249, 148, -286}, { 380, 271, -162},
1354 { -142, -4, -186}, { -57, 111, -125},
1355 { -35, -108, -254}, { 100, 29, -242},
1356 { -80, 303, -264}, { -78, 464, -57},
1357 { 248, -22, -494}, { 661, 662, 44},
1358 { -193, -40, -330}, { -178, 145, -337},
1359 { -90, -199, -400}, { -40, -23, -498},
1360 { -192, 114, 315}, { -41, 244, 190},
1361 { 88, -97, 485}, { 241, 80, 212},
1362 { -246, 40, 87}, { -156, 147, 134},
1363 { -2, -334, 239}, { 308, -203, 110},
1364 { -459, 251, 422}, { -218, 310, 228},
1365 { -86, -346, 654}, { 184, 175, 425},
1366 { -481, -63, 169}, { -349, 117, 188},
1367 { -125, -560, 310}, { 158, -416, 94},
1368 { 46, 171, -192}, { -63, 157, 14},
1369 { 256, -35, -271}, { 322, 123, 53},
1370 { -214, 4, -76}, { -156, 86, -18},
1371 { 128, -197, -232}, { 265, -90, -98},
1372 { -308, 332, -145}, { -131, 308, 58},
1373 { 509, 59, -339}, { 562, 196, -14},
1374 { -378, 100, -47}, { -234, 202, 1},
1375 { 104, -270, -493}, { 319, -210, -325}
1376 };
1377
1378 static const int16_t dico24_isf[32][3] = {
1379 { -79, -89, -4}, { -171, 77, -211},
1380 { 160, -193, 98}, { 120, -103, 323},
1381 { 32, -22, -129}, { 72, 78, -268},
1382 { 182, -76, -66}, { 309, 99, -145},
1383 { -229, -157, -84}, { -383, 98, -71},
1384 { -90, -352, 12}, { -284, -178, 178},
1385 { -65, -125, -166}, { -87, -175, -351},
1386 { 42, -198, -48}, { 154, -140, -243},
1387 { -77, 18, 108}, { -39, 355, 91},
1388 { 87, 8, 155}, { -4, 158, 239},
1389 { 128, 95, -54}, { 7, 246, -124},
1390 { 258, 15, 89}, { 206, 216, 98},
1391 { -201, 9, 18}, { -312, 233, 204},
1392 { -39, -174, 155}, { -144, -9, 284},
1393 { -57, 70, -69}, { -157, 187, 18},
1394 { 54, -30, 23}, { 24, 135, 55}
1395 };
1396
1397 static const int16_t dico25_isf[32][4] = {
1398 { 169, 142, -119, 115}, { 206, -20, 94, 226},
1399 { -106, 313, -21, 16}, { -62, 161, 71, 255},
1400 { -89, 101, -185, 125}, { 72, -30, -201, 344},
1401 { -258, 33, -8, 81}, { -104, -154, 72, 296},
1402 { 144, -68, -268, -25}, { 81, -78, -87, 106},
1403 { 22, 155, -186, -119}, { -46, -28, 27, 91},
1404 { -114, -37, -175, -33}, { -94, -222, -189, 122},
1405 { -132, -119, -191, -270}, { -172, -173, 18, -43},
1406 { 279, 135, -42, -128}, { 187, -86, 229, -138},
1407 { 159, 240, 140, 46}, { 69, 25, 227, 77},
1408 { 21, 115, 13, 8}, { 68, -248, 126, 81},
1409 { -150, 137, 207, -9}, { -154, -133, 289, 67},
1410 { 143, -37, -86, -326}, { 180, -32, 19, -23},
1411 { 26, 168, 116, -233}, { -32, -26, 118, -78},
1412 { 3, -8, -45, -115}, { 57, -215, -54, -83},
1413 { -209, 112, -22, -167}, { -91, -151, 168, -262}
1414 };
1415
1416 static const int16_t dico21_isf_36b[128][5] = {
1417 { -52, -96, 212, 315, -73}, { 82, -204, 363, 136, -197},
1418 { -126, -331, 183, 218, 143}, { -49, -41, 557, 230, 72},
1419 { 2, -73, 163, 377, 221}, { 133, 111, 278, 215, -110},
1420 { -102, -20, 284, 113, 273}, { 84, 319, 290, 18, 85},
1421 { -25, -5, 125, 132, -204}, { -38, -5, 286, -9, -356},
1422 { -140, -256, 92, 117, -189}, { -144, 191, 313, 51, -98},
1423 { 167, -10, 44, 247, 36}, { 381, 197, 238, 74, 6},
1424 { 38, -408, 29, -3, -85}, { 92, 266, 157, -25, -200},
1425 { 161, -121, 70, 84, -140}, { -16, -86, 112, -94, -189},
1426 { -269, -270, 351, 107, -24}, { -68, -67, 492, -103, -155},
1427 { -53, -131, 62, 122, 10}, { 135, 84, 283, -55, -120},
1428 { -12, -219, 331, -81, 167}, { 220, -136, 147, -172, -42},
1429 { 140, -95, -109, -88, -194}, { 0, -2, -4, -33, -381},
1430 { -66, -217, 152, -186, -402}, { 244, 108, 156, -140, -395},
1431 { 113, -136, -196, 110, -24}, { 214, 118, 11, -64, -131},
1432 { -110, -286, -6, -332, 16}, { 94, 97, 79, -291, -205},
1433 { -5, -39, -20, 252, -96}, { 76, 174, 101, 163, 61},
1434 { -69, -239, -55, 399, 6}, { -115, 319, 164, 275, 196},
1435 { -15, 36, -47, 331, 121}, { 226, 209, 271, 325, 184},
1436 { 13, -80, -218, 471, 353}, { 288, 378, 16, -51, 251},
1437 { 174, 116, 52, 149, -279}, { 235, 276, 39, 120, -48},
1438 { 0, -108, -108, 241, -339}, { -93, 534, 45, 33, -87},
1439 { 194, 149, -71, 405, -44}, { 409, 370, 81, -186, -154},
1440 { 25, -102, -448, 124, -173}, { 22, 408, -110, -310, -214},
1441 { -26, 23, -83, 114, 14}, { -110, 164, 52, 223, -82},
1442 { 37, -25, -263, 306, -15}, { -466, 415, 292, 165, -18},
1443 { 29, -19, -171, 155, 182}, { 179, 144, -27, 231, 258},
1444 { -103, -247, -396, 238, 113}, { 375, -154, -109, -4, 156},
1445 { 98, 85, -292, -5, -124}, { 116, 139, -116, -98, -294},
1446 { -14, -83, -278, -117, -378}, { 106, 33, -106, -344, -484},
1447 { 119, 17, -412, 138, 166}, { 384, 101, -204, 88, -156},
1448 { -121, -284, -300, -1, -166}, { 280, 33, -152, -313, -81},
1449 { -37, 22, 229, 153, 37}, { -60, -83, 236, -8, -41},
1450 { -169, -228, 126, -20, 363}, { -235, 17, 364, -156, 156},
1451 { -25, -30, 72, 144, 156}, { 153, -26, 256, 97, 144},
1452 { -21, -37, 48, -65, 250}, { 63, 77, 273, -128, 124},
1453 { -129, -26, 40, 9, -115}, { -6, 82, 38, -90, -182},
1454 { -336, -13, 28, 158, 91}, { -30, 241, 137, -170, -17},
1455 { 146, 14, -11, 33, 61}, { 192, 197, 54, -84, 85},
1456 { 23, -200, -78, -29, 140}, { 122, 237, 106, -341, 136},
1457 { -57, -142, -85, -16, -74}, { -59, -90, -8, -187, -20},
1458 { -211, -267, 216, -179, -110}, { -50, -7, 220, -267, -70},
1459 { -57, -42, -17, -15, 71}, { 32, 21, 63, -137, 33},
1460 { -137, -175, 104, -68, 97}, { -67, -43, 133, -301, 221},
1461 { -116, -200, -81, -92, -272}, { -64, -41, -54, -244, -220},
1462 { -287, -242, -50, -87, -89}, { -245, 236, 102, -166, -295},
1463 { 66, 24, -162, -71, 95}, { 66, 136, -90, -220, -36},
1464 { -98, -161, -222, -188, 29}, { -18, 18, -19, -415, 9},
1465 { 49, 61, 100, 39, -56}, { -111, 82, 135, -31, 52},
1466 { -90, -153, -93, 189, 182}, { -214, 295, 119, -74, 284},
1467 { 2, 137, 37, 47, 182}, { 92, 117, 184, -53, 373},
1468 { -21, -14, -35, 136, 391}, { 146, 129, -164, -28, 333},
1469 { 92, 80, -84, 100, -134}, { -8, 217, -32, 3, -47},
1470 { -151, 251, -215, 142, 92}, { -224, 310, -172, -275, 98},
1471 { 159, 155, -177, 112, 53}, { 205, 27, 8, -240, 192},
1472 { 169, 120, -319, -201, 106}, { 11, 36, -86, -237, 455},
1473 { -109, -154, -163, 174, -55}, { -38, 32, -101, -78, -59},
1474 { -205, -321, -97, 69, 79}, { -310, 44, 18, -185, 34},
1475 { -115, -20, -148, -39, 203}, { -29, 154, -30, -158, 166},
1476 { -45, -131, -317, -24, 363}, { -165, -205, -112, -222, 265},
1477 { -32, -44, -150, 54, -193}, { -6, -38, -255, -169, -115},
1478 { -266, 87, -189, -36, -169}, { -60, -87, -266, -436, -170},
1479 { -68, -81, -278, 24, 38}, { -23, -19, -155, -256, 141},
1480 { -61, -226, -565, -175, 71}, { 9, -29, -237, -515, 263}
1481 };
1482
1483 static const int16_t dico22_isf_36b[128][4] = {
1484 { -298, -6, 95, 31}, { -213, -87, -122, 261},
1485 { 4, -49, 208, 14}, { -129, -110, 30, 118},
1486 { -214, 258, 110, -235}, { -41, -18, -126, 120},
1487 { 103, 65, 127, -37}, { 126, -36, -24, 25},
1488 { -138, -67, -278, -186}, { -164, -194, -201, 78},
1489 { -211, -87, -51, -221}, { -174, -79, -94, -39},
1490 { 23, -6, -157, -240}, { 22, -110, -153, -68},
1491 { 148, -5, -2, -149}, { -1, -135, -39, -179},
1492 { 68, 360, -117, -15}, { 137, 47, -278, 146},
1493 { 136, 260, 135, 65}, { 61, 116, -45, 97},
1494 { 231, 379, 87, -120}, { 338, 177, -272, 3},
1495 { 266, 156, 28, -69}, { 260, 84, -85, 86},
1496 { -266, 154, -256, -182}, { -17, -65, -304, -6},
1497 { -40, 175, -151, -180}, { -27, 27, -87, -63},
1498 { 121, 114, -166, -469}, { 159, -66, -323, -231},
1499 { 214, 152, -141, -212}, { 137, 36, -184, -51},
1500 { -282, -237, 40, 10}, { -48, -235, -37, 251},
1501 { -54, -323, 136, 29}, { -88, -174, 213, 198},
1502 { -390, 99, -63, -375}, { 107, -169, -164, 424},
1503 { 69, -111, 141, -167}, { 74, -129, 65, 144},
1504 { -353, -207, -205, -109}, { -160, -386, -355, 98},
1505 { -176, -493, -20, -143}, { -252, -432, -2, 216},
1506 { -90, -174, -168, -411}, { 13, -284, -229, -160},
1507 { -87, -279, 34, -251}, { -75, -263, -58, -42},
1508 { 420, 53, -211, -358}, { 384, -35, -374, 396},
1509 { 68, -228, 323, -2}, { 167, -307, 192, 194},
1510 { 459, 329, -5, -332}, { 375, 79, -7, 313},
1511 { 282, -124, 200, -92}, { 271, -162, -70, 180},
1512 { -157, -298, -514, -309}, { 58, -163, -546, 18},
1513 { 124, -364, 167, -238}, { 83, -411, -117, 96},
1514 { 140, -112, -388, -624}, { 259, -133, -317, 41},
1515 { 163, -130, -64, -334}, { 226, -165, -124, -110},
1516 { -466, -61, 6, 229}, { -153, 205, -145, 242},
1517 { -159, 48, 195, 148}, { -58, 28, 31, 279},
1518 { -303, 185, 279, -4}, { -61, 197, 59, 86},
1519 { -114, 123, 168, -52}, { 35, 36, 100, 126},
1520 { -407, 102, -77, -40}, { -338, -1, -342, 156},
1521 { -179, 105, -34, -97}, { -185, 84, -35, 108},
1522 { -133, 107, -91, -357}, { -180, 54, -229, 24},
1523 { -44, 47, 47, -182}, { -66, 13, 45, 4},
1524 { -339, 251, 64, 226}, { -42, 101, -350, 275},
1525 { -99, 398, 142, 121}, { 111, 12, -102, 260},
1526 { 0, 505, 260, -94}, { 161, 285, -96, 224},
1527 { -4, 206, 314, 33}, { 167, 139, 88, 204},
1528 { -235, 316, -60, -25}, { -8, -150, -312, 201},
1529 { -36, 292, 61, -104}, { -40, 174, -162, 42},
1530 { -21, 402, -29, -351}, { 21, 152, -360, -93},
1531 { 57, 191, 212, -196}, { 76, 158, -21, -69},
1532 { -328, -185, 331, 119}, { -53, 285, 56, 337},
1533 { -107, -24, 405, 29}, { -18, 137, 272, 277},
1534 { -255, 22, 173, -191}, { 295, 322, 325, 302},
1535 { 21, -27, 332, -178}, { 119, 13, 271, 129},
1536 { -455, -180, 116, -191}, { -227, 62, -148, 524},
1537 { -176, -287, 282, -157}, { -243, 13, 199, 430},
1538 { -59, -49, 115, -365}, { 72, -172, -137, 93},
1539 { -138, -126, 141, -84}, { 5, -124, 38, -20},
1540 { -258, 311, 601, 213}, { 94, 130, -61, 502},
1541 { -1, -157, 485, 313}, { 146, -74, 158, 345},
1542 { 276, 135, 280, -57}, { 490, 252, 99, 43},
1543 { 267, -74, 429, 105}, { 278, -23, 119, 94},
1544 { -542, 488, 257, -115}, { -84, -244, -438, 478},
1545 { -113, -545, 387, 101}, { -95, -306, 111, 498},
1546 { 95, 166, 22, -301}, { 420, -15, -58, -78},
1547 { 270, 29, 122, -282}, { 160, -240, 50, -38}
1548 };
1549
1550 static const int16_t dico23_isf_36b[64][7] = {
1551 { 81, -18, 68, -27, -122, -280, -4},
1552 { 45, -177, 209, -30, -136, -74, 131},
1553 { -44, 101, -75, -88, -48, -137, -54},
1554 { -245, -28, 63, -18, -112, -103, 58},
1555 { -79, -6, 220, -65, 114, -35, -50},
1556 { 109, -65, 143, -114, 129, 76, 125},
1557 { 166, 90, -61, -