Fixing DTX for fixed-point too, updating project files
[opus.git] / src_common / SKP_Silk_tables_NLSF_CB1_10.c
1 /***********************************************************************\r
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. \r
3 Redistribution and use in source and binary forms, with or without \r
4 modification, (subject to the limitations in the disclaimer below) \r
5 are permitted provided that the following conditions are met:\r
6 - Redistributions of source code must retain the above copyright notice,\r
7 this list of conditions and the following disclaimer.\r
8 - Redistributions in binary form must reproduce the above copyright \r
9 notice, this list of conditions and the following disclaimer in the \r
10 documentation and/or other materials provided with the distribution.\r
11 - Neither the name of Skype Limited, nor the names of specific \r
12 contributors, may be used to endorse or promote products derived from \r
13 this software without specific prior written permission.\r
14 NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED \r
15 BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND \r
16 CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\r
17 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND \r
18 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE \r
19 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, \r
20 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
21 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF \r
22 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON \r
23 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
26 ***********************************************************************/\r
27 \r
28 /**********************************************/\r
29 /* This file has been automatically generated */\r
30 /*                                            */\r
31 /* ROM usage:  0.11 + 0.90 kB                 */\r
32 /**********************************************/\r
33 \r
34 #include "SKP_Silk_structs.h"\r
35 #include "SKP_Silk_tables.h"\r
36 #include "SKP_Silk_tables_NLSF_CB.h"\r
37 \r
38 const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB1_10_CDF[ NLSF_MSVQ_CB1_10_VECTORS ] =\r
39 {\r
40           176,\r
41           144,\r
42           119,\r
43           102,\r
44            92,\r
45            85,\r
46            79,\r
47            73,\r
48            68,\r
49            63,\r
50            58,\r
51            53,\r
52            49,\r
53            45,\r
54            41,\r
55            37,\r
56            34,\r
57            30,\r
58            27,\r
59            24,\r
60            22,\r
61            19,\r
62            17,\r
63            15,\r
64            13,\r
65            12,\r
66            10,\r
67             8,\r
68             6,\r
69             4,\r
70             2,\r
71             0,\r
72           149,\r
73            93,\r
74            71,\r
75            55,\r
76            40,\r
77            26,\r
78            12,\r
79             0,\r
80           121,\r
81           100,\r
82            80,\r
83            61,\r
84            45,\r
85            29,\r
86            14,\r
87             0,\r
88           133,\r
89           110,\r
90            88,\r
91            67,\r
92            48,\r
93            30,\r
94            13,\r
95             0,\r
96           199,\r
97           152,\r
98           111,\r
99            76,\r
100            53,\r
101            32,\r
102            15,\r
103             0,\r
104           161,\r
105           109,\r
106            88,\r
107            68,\r
108            49,\r
109            30,\r
110            14,\r
111             0,\r
112           211,\r
113           171,\r
114           134,\r
115            98,\r
116            63,\r
117            37,\r
118            11,\r
119             0\r
120 };\r
121 \r
122 const SKP_uint8 * const SKP_Silk_NLSF_MSVQ_CB1_10_CDF_start_ptr[ NLSF_MSVQ_CB1_10_STAGES ] =\r
123 {\r
124      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[   0 ],\r
125      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  32 ],\r
126      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  40 ],\r
127      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  48 ],\r
128      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  56 ],\r
129      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  64 ],\r
130      &SKP_Silk_NLSF_MSVQ_CB1_10_CDF[  72 ]\r
131 };\r
132 \r
133 const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[ NLSF_MSVQ_CB1_10_VECTORS ] =\r
134 {\r
135                27,               48,\r
136                54,               63,\r
137                74,               84,\r
138                85,               89,\r
139                91,               91,\r
140                91,               91,\r
141                94,               95,\r
142                96,               97,\r
143               100,              101,\r
144               102,              104,\r
145               106,              106,\r
146               113,              113,\r
147               113,              113,\r
148               113,              113,\r
149               113,              113,\r
150               113,              113,\r
151                20,               35,\r
152                57,               64,\r
153                66,               66,\r
154                67,               71,\r
155                15,               58,\r
156                58,               61,\r
157                64,               64,\r
158                65,               68,\r
159                17,               55,\r
160                57,               58,\r
161                60,               61,\r
162                63,               68,\r
163                35,               39,\r
164                43,               46,\r
165                56,               58,\r
166                63,               65,\r
167                23,               37,\r
168                57,               59,\r
169                60,               61,\r
170                63,               68,\r
171                40,               43,\r
172                45,               45,\r
173                46,               53,\r
174                53,               73\r
175 };\r
176 \r
177 const SKP_int SKP_Silk_NLSF_MSVQ_CB1_10_ndelta_min_Q15[ 10 + 1 ] =\r
178 {\r
179               488,\r
180                31,\r
181               249,\r
182               268,\r
183               153,\r
184                20,\r
185                12,\r
186                15,\r
187                 9,\r
188                 3,\r
189               685\r
190 };\r
191 \r
192 const SKP_int8 SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 * NLSF_MSVQ_CB1_10_VECTORS ] =\r
193 {\r
194              -112,              -92,\r
195               -67,              -43,\r
196               -20,                3,\r
197                28,               52,\r
198                78,              100,\r
199              -113,             -100,\r
200               -76,              -53,\r
201               -30,               -7,\r
202                20,               45,\r
203                72,               97,\r
204               -97,              -81,\r
205               -58,              -34,\r
206               -10,               11,\r
207                37,               59,\r
208                83,              104,\r
209              -110,             -100,\r
210               -80,              -61,\r
211               -38,              -15,\r
212                12,               38,\r
213                66,               90,\r
214              -114,             -107,\r
215               -81,              -50,\r
216               -23,                2,\r
217                28,               51,\r
218                77,              101,\r
219               -92,              -80,\r
220               -59,              -42,\r
221               -18,                2,\r
222                26,               50,\r
223                77,               97,\r
224              -102,              -83,\r
225               -56,              -29,\r
226                -8,               23,\r
227                48,               73,\r
228                98,              111,\r
229               -98,              -78,\r
230               -48,              -19,\r
231                 7,               32,\r
232                54,               73,\r
233                92,              107,\r
234              -105,              -90,\r
235               -69,              -42,\r
236                -4,               20,\r
237                38,               57,\r
238                77,               97,\r
239              -113,             -101,\r
240               -71,              -40,\r
241               -14,               11,\r
242                42,               65,\r
243                89,              108,\r
244              -109,              -99,\r
245               -84,              -61,\r
246               -17,                0,\r
247                19,               46,\r
248                65,               97,\r
249              -109,             -100,\r
250               -85,              -49,\r
251               -25,              -10,\r
252                21,               35,\r
253                79,               97,\r
254              -109,             -101,\r
255               -81,              -33,\r
256               -10,                6,\r
257                28,               46,\r
258                81,               99,\r
259              -115,              -84,\r
260               -58,              -32,\r
261               -11,               11,\r
262                36,               61,\r
263                84,              104,\r
264              -114,             -106,\r
265               -88,              -68,\r
266               -39,               -3,\r
267                25,               44,\r
268                66,               97,\r
269               -79,              -68,\r
270               -46,              -29,\r
271                -7,               13,\r
272                36,               58,\r
273                82,              101,\r
274              -106,              -87,\r
275               -69,              -51,\r
276               -27,              -11,\r
277                15,               52,\r
278                74,               92,\r
279               -99,              -87,\r
280               -70,              -55,\r
281               -40,              -13,\r
282                31,               52,\r
283                78,              101,\r
284              -109,              -98,\r
285               -83,              -66,\r
286               -52,              -28,\r
287                23,               46,\r
288                74,               99,\r
289              -111,             -103,\r
290               -87,              -57,\r
291                -2,               19,\r
292                33,               53,\r
293                72,               97,\r
294              -113,              -99,\r
295               -62,              -21,\r
296                 5,               27,\r
297                47,               65,\r
298                86,              103,\r
299               -99,              -79,\r
300               -37,              -16,\r
301                 3,               19,\r
302                37,               62,\r
303                83,              101,\r
304               -92,              -79,\r
305               -57,              -41,\r
306               -25,              -10,\r
307                 8,               30,\r
308                68,               96,\r
309              -104,              -92,\r
310               -77,              -56,\r
311               -39,              -23,\r
312                -7,               21,\r
313                72,               95,\r
314               -78,              -65,\r
315               -34,              -16,\r
316                10,               30,\r
317                51,               71,\r
318                90,              106,\r
319              -104,              -76,\r
320               -38,               -5,\r
321                27,               52,\r
322                66,               77,\r
323                89,              101,\r
324              -106,              -79,\r
325               -50,              -24,\r
326                15,               40,\r
327                43,               35,\r
328                47,              102,\r
329              -103,              -71,\r
330               -40,               -6,\r
331                22,               22,\r
332                26,               37,\r
333                66,               99,\r
334              -106,              -78,\r
335               -53,              -30,\r
336                -3,               40,\r
337                63,               69,\r
338                57,               75,\r
339              -106,              -79,\r
340               -51,              -33,\r
341                -1,               17,\r
342                51,               89,\r
343               108,              121,\r
344              -107,              -82,\r
345               -56,              -37,\r
346                -7,               17,\r
347                68,               86,\r
348                86,               88,\r
349              -102,              -76,\r
350               -47,              -13,\r
351                -3,                3,\r
352                10,               43,\r
353                77,              105,\r
354                -2,               -2,\r
355                -1,               -1,\r
356                 0,                0,\r
357                -1,                0,\r
358                 0,                0,\r
359                 2,                4,\r
360                 4,                3,\r
361                 4,                5,\r
362                 4,                3,\r
363                 2,                2,\r
364                -1,               -3,\r
365                -5,                0,\r
366                -5,               -9,\r
367                -4,               -1,\r
368                -4,               -6,\r
369                 1,                1,\r
370                 0,                2,\r
371                -4,               -6,\r
372                -2,               -4,\r
373                 9,                5,\r
374                -3,               -6,\r
375                -9,              -12,\r
376                 2,                0,\r
377                 0,                2,\r
378                 0,               -1,\r
379                 0,               -1,\r
380                 2,                9,\r
381                 6,                2,\r
382                -4,               -9,\r
383                -7,               -3,\r
384                 9,                9,\r
385                 7,                3,\r
386                -3,               -6,\r
387                -3,               -5,\r
388                -8,               -2,\r
389                 1,                0,\r
390                -3,               -8,\r
391               -12,                4,\r
392                 4,                7,\r
393                 7,                0,\r
394                -1,                0,\r
395                 0,                0,\r
396                 0,                1,\r
397                 0,                1,\r
398                 1,                1,\r
399                 3,                3,\r
400                 2,               -5,\r
401                -8,               -3,\r
402                -3,               -1,\r
403                -1,               -3,\r
404                 3,                3,\r
405                 4,                4,\r
406                 2,               -4,\r
407                -9,               -1,\r
408                -2,               -2,\r
409                 2,                2,\r
410                 2,                4,\r
411                 5,                5,\r
412                 3,                0,\r
413                -5,               -7,\r
414                -1,               -2,\r
415                -6,               -5,\r
416                -1,               -6,\r
417                 1,               -1,\r
418                -6,                5,\r
419                -5,              -10,\r
420                 4,                2,\r
421                 2,                0,\r
422                 0,                1,\r
423                 1,                0,\r
424                 2,                1,\r
425                -1,                3,\r
426                 3,               -1,\r
427                12,                3,\r
428                 3,                3,\r
429                 0,               -2,\r
430                -4,               -4,\r
431                -4,                5,\r
432                -1,               -9,\r
433                 1,                0,\r
434                -1,                0,\r
435                -1,                0,\r
436                 0,                0,\r
437                 1,                0,\r
438                -1,               -2,\r
439                 0,               -1,\r
440                -2,               -1,\r
441                -1,                0,\r
442                 2,                8,\r
443                 4,                4,\r
444                 6,                4,\r
445                 0,               -2,\r
446                -2,                0,\r
447                 0,               -1,\r
448                -2,                1,\r
449                 2,                0,\r
450                -3,               -2,\r
451                 7,                1,\r
452                 1,               -1,\r
453                -3,                2,\r
454                -1,               -3,\r
455                -4,                6,\r
456                 0,                1,\r
457                -3,               -1,\r
458                 5,                0,\r
459                 0,               -2,\r
460                 1,               -2,\r
461                -2,               -2,\r
462                -6,               -2,\r
463                 2,                5,\r
464                 0,               -2,\r
465                10,                5,\r
466                -1,                1,\r
467                 0,                0,\r
468                -1,               -1,\r
469                -1,                7,\r
470                 5,               -2,\r
471                 0,                0,\r
472                 0,               -4,\r
473                -1,               -3,\r
474                -2,               -1,\r
475                -2,               -3,\r
476                 1,               -1,\r
477                -1,               -2,\r
478                 3,                0,\r
479                 0,                0,\r
480                 1,                1,\r
481                -2,               -5,\r
482                 1,                1,\r
483                 0,                2,\r
484                 2,                1,\r
485                 1,               -3,\r
486                 1,                2,\r
487                 0,                3,\r
488                 0,               -2,\r
489                 2,                1,\r
490                 2,                3,\r
491                 1,                0,\r
492                -1,               -3,\r
493                 0,               -1,\r
494                -1,               -2,\r
495                 0,                0,\r
496                 1,                3,\r
497                 5,                1,\r
498                -1,                1,\r
499                -4,                5,\r
500                 0,                2,\r
501                 1,                1,\r
502                 0,                0,\r
503                -1,                0,\r
504                 0,               -2,\r
505                -1,                1,\r
506                 2,                0,\r
507                -5,                4,\r
508                -1,                0,\r
509                 1,                0,\r
510                -2,                1,\r
511                -6,                4,\r
512                 0,                0,\r
513                -2,                0,\r
514                 0,               -1,\r
515                 1,               -1,\r
516                -1,               -1,\r
517                 0,               -3,\r
518                -2,                0,\r
519                 1,                1,\r
520                -1,                4,\r
521                 1,                0,\r
522                 0,                2,\r
523                -1,                2,\r
524                -3,                0,\r
525                 3,                0,\r
526                 1,                0,\r
527                 1,                4,\r
528                 2,                0,\r
529                 2,                0,\r
530                 1,                0,\r
531                 0,                1,\r
532                 1,               -1,\r
533                 6,                2,\r
534                 0,                3,\r
535                -1,               -3,\r
536                 0,               -2,\r
537                -2,                1,\r
538                 1,                0,\r
539                 0,                0,\r
540                -1,               -1,\r
541                 1,                6,\r
542                -1,                0,\r
543                 0,               -1,\r
544                 1,                0,\r
545                 0,                1,\r
546                 0,               -1,\r
547                 1,                1,\r
548                 0,               -7,\r
549                -1,               -3,\r
550                -4,               -1,\r
551                -2,                0,\r
552                 0,                1,\r
553                 0,                1,\r
554                 2,                1,\r
555                -3,                0,\r
556                 0,                0,\r
557                 0,               -1,\r
558                 1,               -1,\r
559                -1,                1,\r
560                 1,               -1,\r
561                 0,                2,\r
562                 0,                0,\r
563                 0,                3,\r
564                 1,                0,\r
565                 1,                1,\r
566                -3,                0,\r
567                -2,                1,\r
568                 1,                0,\r
569                 0,                0,\r
570                 1,                0,\r
571                 3,               -2,\r
572                 0,                0,\r
573                 1,                0,\r
574                -1,                0,\r
575                 0,               -1,\r
576                 0,                0,\r
577                -1,                0,\r
578                -4,               -1,\r
579                -2,               -3,\r
580                 0,                1,\r
581                 0,                0,\r
582                 0,               -1,\r
583                 1,                0,\r
584                 0,                1,\r
585                 0,                0,\r
586                -1,                0,\r
587                 5,                0,\r
588                 1,               -1,\r
589                 2,               -3,\r
590                 1,               -1,\r
591                 0,                0,\r
592                 0,                0,\r
593                 0,                0\r
594 };\r
595 \r
596 const SKP_Silk_NLSF_CBS SKP_Silk_NLSF_CB1_10_Stage_info[ NLSF_MSVQ_CB1_10_STAGES ] =\r
597 {\r
598         {  32, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *   0 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[   0 ] },\r
599         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  32 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  32 ] },\r
600         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  40 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  40 ] },\r
601         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  48 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  48 ] },\r
602         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  56 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  56 ] },\r
603         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  64 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  64 ] },\r
604         {   8, &SKP_Silk_NLSF_MSVQ_CB1_10_Q8[ 10 *  72 ], &SKP_Silk_NLSF_MSVQ_CB1_10_rates_Q4[  72 ] }\r
605 };\r
606 \r
607 const SKP_Silk_NLSF_CB_struct SKP_Silk_NLSF_CB1_10 =\r
608 {\r
609         NLSF_MSVQ_CB1_10_STAGES,\r
610         SKP_Silk_NLSF_CB1_10_Stage_info,\r
611         SKP_Silk_NLSF_MSVQ_CB1_10_ndelta_min_Q15,\r
612         SKP_Silk_NLSF_MSVQ_CB1_10_CDF_start_ptr\r
613 };\r
614 \r