shithub: opus

ref: 606cc10f2f7d76046a25fde5ec5e0a35dafdaae6
dir: /src_common/SKP_Silk_tables_NLSF_CB0_10.c/

View raw version
/***********************************************************************
Copyright (c) 2006-2010, Skype Limited. All rights reserved. 
Redistribution and use in source and binary forms, with or without 
modification, (subject to the limitations in the disclaimer below) 
are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright 
notice, this list of conditions and the following disclaimer in the 
documentation and/or other materials provided with the distribution.
- Neither the name of Skype Limited, nor the names of specific 
contributors, may be used to endorse or promote products derived from 
this software without specific prior written permission.
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED 
BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 
CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
***********************************************************************/

/**********************************************/
/* This file has been automatically generated */
/*                                            */
/* ROM usage:  0.16 + 1.43 kB                 */
/**********************************************/

#include "SKP_Silk_structs.h"
#include "SKP_Silk_tables.h"
#include "SKP_Silk_tables_NLSF_CB.h"

const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ NLSF_MSVQ_CB0_10_VECTORS ] =
{
          244,
          236,
          228,
          220,
          213,
          207,
          201,
          195,
          190,
          184,
          179,
          173,
          168,
          163,
          158,
          153,
          148,
          143,
          139,
          134,
          129,
          125,
          120,
          116,
          112,
          107,
          103,
           99,
           95,
           91,
           88,
           84,
           80,
           77,
           73,
           69,
           66,
           62,
           59,
           55,
           52,
           48,
           45,
           42,
           39,
           36,
           32,
           29,
           27,
           24,
           21,
           18,
           16,
           13,
           11,
            9,
            7,
            6,
            5,
            4,
            3,
            2,
            1,
            0,
          235,
          216,
          198,
          180,
          162,
          145,
          129,
          112,
           96,
           80,
           65,
           50,
           36,
           22,
           10,
            0,
          222,
          189,
          155,
          123,
           92,
           62,
           31,
            0,
          221,
          187,
          154,
          122,
           91,
           60,
           29,
            0,
          220,
          186,
          154,
          122,
           90,
           60,
           29,
            0,
          223,
          189,
          156,
          124,
           92,
           60,
           29,
            0,
          236,
          219,
          201,
          184,
          168,
          151,
          134,
          117,
          101,
           85,
           69,
           53,
           38,
           24,
           11,
            0
};

const SKP_uint8 * const SKP_Silk_NLSF_MSVQ_CB0_10_CDF_start_ptr[ NLSF_MSVQ_CB0_10_STAGES ] =
{
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[   0 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  64 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  80 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  88 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  96 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ 104 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ 112 ]
};

const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[ NLSF_MSVQ_CB0_10_VECTORS ] =
{
               71,               79,
               80,               81,
               84,               85,
               87,               88,
               88,               88,
               89,               89,
               90,               90,
               91,               91,
               92,               92,
               92,               92,
               93,               93,
               94,               94,
               94,               95,
               96,               96,
               96,               97,
               97,               98,
               98,               98,
               98,               98,
               99,               99,
               99,               99,
               99,              100,
              100,              101,
              102,              102,
              102,              103,
              104,              104,
              105,              105,
              105,              108,
              111,              111,
              114,              123,
              128,              128,
              128,              128,
              128,              128,
               58,               60,
               61,               61,
               62,               63,
               63,               63,
               64,               64,
               65,               66,
               67,               68,
               69,               76,
               47,               47,
               47,               48,
               49,               49,
               49,               49,
               46,               47,
               47,               48,
               49,               49,
               49,               50,
               45,               47,
               48,               48,
               48,               49,
               49,               50,
               47,               47,
               47,               48,
               48,               48,
               49,               50,
               59,               62,
               62,               63,
               63,               63,
               63,               63,
               64,               64,
               64,               64,
               65,               68,
               68,               73
};

const SKP_int SKP_Silk_NLSF_MSVQ_CB0_10_ndelta_min_Q15[ 10 + 1 ] =
{
              550,
                3,
               22,
               18,
                3,
                3,
              181,
              162,
              310,
              172,
              982
};

const SKP_int8 SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 * NLSF_MSVQ_CB0_10_VECTORS ] =
{
             -109,              -96,
              -74,              -56,
              -35,              -11,
               17,               45,
               74,              100,
              -98,              -92,
              -76,              -40,
              -10,                0,
               28,               47,
               65,              103,
             -107,              -92,
              -69,              -48,
              -16,                4,
               29,               49,
               77,              101,
             -104,              -94,
              -81,              -60,
              -24,              -10,
               13,               49,
               67,               94,
             -104,              -97,
              -81,              -51,
                2,               18,
               33,               53,
               70,              101,
             -104,              -96,
              -82,              -54,
              -10,                3,
               26,               51,
               70,               89,
             -109,              -99,
              -84,              -53,
              -33,              -18,
               22,               36,
               77,               96,
              -92,              -86,
              -70,              -37,
              -25,              -10,
               24,               40,
               79,               95,
             -102,              -95,
              -78,              -47,
              -32,              -17,
               34,               52,
               71,              105,
             -113,             -106,
              -85,              -60,
              -34,              -15,
               15,               40,
               63,               93,
              -99,              -94,
              -64,              -18,
               -6,               10,
               32,               47,
               88,              104,
             -115,             -108,
              -79,              -48,
              -21,                0,
               28,               55,
               77,              101,
              -94,              -88,
              -69,              -32,
                5,               16,
               37,               57,
               75,              103,
             -110,             -101,
              -87,              -58,
              -12,                1,
               19,               38,
               65,              101,
             -103,              -96,
              -80,              -40,
              -26,              -11,
                8,               26,
               78,               93,
             -104,              -98,
              -83,              -35,
              -21,               -7,
               30,               43,
               88,              104,
             -105,             -100,
              -78,              -21,
               -7,                6,
               28,               45,
               77,               92,
             -102,              -95,
              -71,              -34,
              -21,               -1,
               22,               41,
               66,               83,
              -98,              -91,
              -71,              -60,
              -49,               -4,
               20,               36,
               85,              101,
              -86,              -80,
              -61,              -28,
              -10,                1,
               35,               54,
               74,              103,
             -107,             -100,
              -81,              -45,
              -35,                2,
               25,               45,
               83,               99,
             -103,              -97,
              -73,              -33,
               17,               30,
               45,               64,
               81,              105,
              -86,              -79,
              -59,              -41,
              -29,              -14,
               41,               59,
               78,              105,
              -87,              -76,
              -62,              -45,
              -23,              -10,
               20,               44,
               63,               96,
             -108,              -99,
              -73,              -53,
              -28,                7,
               27,               42,
               60,               94,
              -95,              -87,
              -72,              -54,
              -40,              -26,
               24,               42,
               60,              102,
              -96,              -89,
              -73,              -59,
              -49,              -25,
               31,               45,
               80,               96,
             -100,              -94,
              -77,              -67,
              -56,              -14,
               41,               59,
               85,              104,
              -96,              -91,
              -65,              -30,
              -18,               -4,
               14,               28,
               82,              105,
             -102,              -95,
              -59,              -41,
              -29,               10,
               31,               52,
               83,               99,
             -103,              -97,
              -78,              -66,
              -54,                1,
               22,               42,
               70,               87,
             -109,             -101,
              -86,              -70,
              -57,              -17,
               19,               41,
               75,               98,
              -87,              -80,
              -67,              -51,
               -7,                6,
               26,               54,
               74,               94,
             -101,              -91,
              -76,              -52,
              -27,              -14,
                8,               27,
               54,               96,
              -99,              -93,
              -65,              -51,
              -39,              -23,
              -10,               48,
               79,               95,
             -100,              -95,
              -54,              -37,
              -25,               -9,
                5,               51,
               74,               89,
             -113,             -107,
              -93,              -70,
              -27,                1,
               23,               46,
               72,               96,
              -96,              -86,
              -67,              -40,
              -22,              -10,
               21,               62,
               80,              100,
              -93,              -87,
              -65,              -49,
              -37,              -10,
               11,               30,
               67,               82,
             -106,              -97,
              -83,              -64,
              -51,              -33,
               20,               52,
               72,              100,
              -93,              -87,
              -65,              -55,
              -41,                6,
               27,               46,
               70,               84,
             -109,             -103,
              -86,              -37,
                1,               11,
               34,               50,
               84,              100,
             -105,              -99,
              -61,               -7,
                6,               20,
               43,               61,
               86,              101,
              -96,              -88,
              -73,              -54,
              -40,              -25,
               18,               64,
               82,              100,
              -90,              -83,
              -67,              -56,
              -45,              -18,
               47,               67,
               85,              106,
             -103,              -95,
              -80,              -57,
              -45,              -24,
               -4,               19,
               70,               92,
              -93,              -87,
              -69,              -47,
              -34,              -20,
               -5,               12,
               75,              106,
              -87,              -81,
              -59,              -42,
              -28,               -8,
               10,               30,
               86,              104,
             -107,             -100,
              -85,              -60,
               -8,               28,
               42,               61,
               80,               98,
              -88,              -81,
              -62,              -51,
              -37,                9,
               37,               52,
               88,              103,
              -99,              -94,
              -74,              -66,
              -51,               19,
               41,               57,
               86,              101,
             -103,              -96,
              -76,              -52,
              -39,              -18,
               -1,               34,
               56,               79,
             -104,              -98,
              -44,              -21,
              -11,                9,
               25,               55,
               80,               95,
              -84,              -76,
              -43,              -28,
              -15,                8,
               28,               47,
               79,               95,
             -106,              -95,
              -63,              -39,
              -12,               19,
               45,               68,
               90,              107,
              -83,              -79,
              -61,              -49,
              -41,              -22,
               26,               40,
               81,              105,
              -98,              -93,
              -81,              -73,
              -27,                8,
               28,               58,
               78,               95,
              -85,              -72,
              -35,              -11,
                4,               22,
               40,               61,
               83,               99,
              -74,              -70,
              -62,              -37,
              -30,              -17,
               19,               57,
               75,               97,
              -95,              -75,
              -31,              -22,
              -16,              -11,
                5,               56,
               80,              100,
              -82,              -79,
              -75,              -72,
              -23,              -16,
               24,               49,
               78,              105,
              -74,              -70,
              -61,              -50,
              -44,                6,
               29,               50,
               76,               99,
              -76,              -73,
              -68,              -51,
              -46,              -40,
               14,               46,
               75,              101,
              -99,              -51,
              -42,              -39,
              -34,              -25,
               27,               53,
               79,              103,
                2,                0,
                4,               10,
                6,                5,
                3,                1,
                3,                0,
                0,                0,
               -3,               -6,
               -8,              -10,
                1,               -2,
               -5,                2,
               -2,               -3,
               -3,               -5,
               -9,                4,
               -2,               -2,
                0,               -4,
                2,                1,
                1,                1,
               -1,               -1,
               -2,               -5,
               -8,              -13,
               -1,               -1,
               -4,               -5,
                9,                6,
                5,                2,
               -2,               -1,
               -1,               -1,
               -2,               -2,
               -3,               -7,
              -13,                4,
                0,               -3,
                1,                1,
               -1,               -1,
               -3,               -6,
               10,                5,
                7,                4,
                8,                8,
                6,                1,
                1,               -2,
               -2,                1,
                0,               -2,
                1,                1,
                1,                2,
                3,               -1,
               -3,               -8,
              -13,                6,
                1,                0,
                3,                2,
                0,               -1,
               -6,              -12,
                9,                4,
               -5,               -5,
              -10,                5,
                3,                2,
               -1,               -2,
                3,               -1,
                1,                1,
                6,                3,
                4,                2,
               -2,               13,
                7,                3,
                1,               -1,
                0,                1,
               -3,               13,
                8,                5,
                3,               -1,
                0,               -1,
               -5,              -14,
                3,               -1,
                0,                0,
                2,                4,
               -5,               -6,
                4,                4,
               -2,               -2,
                4,                0,
               -2,                4,
               -7,                8,
                4,                2,
                0,               -2,
               -1,                0,
               -3,                0,
                0,                0,
               -2,                4,
                4,                4,
                3,                0,
                3,                5,
                0,                0,
               -1,               -1,
               -3,               -4,
               -4,               -9,
                1,                0,
               -1,               -1,
               -2,                4,
                2,                0,
               -4,               -1,
               -6,               -4,
                4,                4,
                2,                1,
               -1,               -3,
                5,                2,
               -1,                0,
               -4,               -4,
               -6,               -2,
               -2,               -2,
                5,                2,
                0,                1,
                2,                2,
                0,               -6,
                3,                5,
                1,                1,
               -2,               -4,
               -1,               -2,
               10,                3,
                1,                2,
               -1,               -1,
                1,               -1,
                0,                0,
                0,               -3,
               -5,               -1,
               -5,                7,
                4,                2,
                1,                1,
                1,                0,
                0,               -4,
                0,                0,
               -3,                5,
               -2,               -2,
               -2,               -1,
                1,                1,
               -2,               -4,
               -5,                2,
               -1,               -1,
                3,                3,
                3,                2,
                4,                3,
               -1,               -3,
                0,                0,
                0,               -2,
               -3,               -4,
                1,               -1,
               -1,               -6,
                3,                3,
                1,                2,
                1,                0,
               -4,               -2,
                1,               -2,
               -3,               -3,
                2,                1,
                1,                0,
                0,               -1,
                6,                2,
                2,                3,
                2,               -3,
               -4,                4,
                2,                1,
                3,                1,
                0,                0,
               -6,               -1,
                1,                1,
                1,                4,
                1,                1,
                1,               -1,
                2,               -1,
               -2,               -2,
               -5,                1,
               -2,               -1,
                2,                2,
                1,                1,
                2,                3,
                0,               -1,
               -4,                1,
                2,                0,
               -1,                0,
                0,               -2,
                4,                4,
                0,               -2,
               -5,                3,
                0,                0,
                0,               -1,
                0,                0,
                1,                0,
               -1,               -2,
               -1,               -1,
                3,                1,
               -1,               -2,
                0,               -3,
                0,               -2,
                0,               -3,
               -3,                2,
                2,               -1,
                0,                2,
                2,                1,
               -2,                1,
                1,               -1,
                1,               -3,
                3,                2,
                0,               -2,
               -1,                4,
                0,                0,
               -1,                2,
                1,                2,
                1,                0,
               -1,               -2,
                3,                0,
                1,                1,
                0,                1,
                0,                2,
                3,                1,
                1,                0,
                0,               -2,
                1,               -1,
                0,               -1,
               -1,                0,
               -1,               -2,
               -3,                0,
                3,                1,
               -1,               -1,
               -2,                2,
               -1,                0,
                2,               -2,
               -1,               -1,
                1,                0,
                2,                2,
                0,                0,
                2,                2,
               -1,                3,
               -2,               -1,
                1,               -2,
               -1,                0,
                0,                2,
               -1,                0,
                0,                0,
               -1,                0,
                0,                4,
               -1,                1,
                2,               -1,
                1,                2,
               -1,               -1,
               -2,               -1,
               -1,               -1,
               -1,               -1,
               -2,                1,
                0,               -2,
                1,                0,
                1,               -2,
               -1,                0,
                1,                3,
                1,                0,
                1,                0,
               -1,                1,
                1,                1,
               -1,                3,
               -2,                2,
                0,                0,
                0,                0,
                0,                0,
               -1,               -1,
                0,                1,
                1,               -3,
                0,                0,
               -1,                1,
                0,               -1,
                1,                0,
                0,                1,
               -1,               -3,
               -1,                2,
               -2,               -2,
                0,                1,
                1,                2,
               -1,                1,
                0,                1,
                0,                0,
               -1,                0,
                0,                0,
                3,                0,
                3,                1,
                0,                0,
               -1,                0,
                0,               -1,
               -1,                1,
                2,               -4,
                1,               -1,
                2,               -3,
                1,                0,
                0,                1,
                1,                1,
                1,                0,
                0,                2,
                2,                0,
               -2,                1,
               -1,                0,
                0,               -1,
               -3,               -2,
               -1,                0,
               -1,                0,
                0,                0,
                1,                1,
                0,                0,
               -1,                1,
                1,                2,
               -3,               -1,
               -1,                0,
                1,                1,
               -3,                0,
                1,                0,
                0,                0,
                0,               -2,
                2,                0,
                0,               -1,
                2,               -1,
                0,               -1,
                2,               -1,
                0,                1,
               -2,                2,
               -1,                0,
                0,               -1,
                2,                1,
               -1,                1,
                0,               -1,
                1,               -1,
                0,               -1
};

const SKP_Silk_NLSF_CBS SKP_Silk_NLSF_CB0_10_Stage_info[ NLSF_MSVQ_CB0_10_STAGES ] =
{
        {  64, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 *   0 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[   0 ] },
        {  16, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 *  64 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[  64 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 *  80 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[  80 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 *  88 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[  88 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 *  96 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[  96 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 * 104 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[ 104 ] },
        {  16, &SKP_Silk_NLSF_MSVQ_CB0_10_Q8[ 10 * 112 ], &SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[ 112 ] }
};

const SKP_Silk_NLSF_CB_struct SKP_Silk_NLSF_CB0_10 =
{
        NLSF_MSVQ_CB0_10_STAGES,
        SKP_Silk_NLSF_CB0_10_Stage_info,
        SKP_Silk_NLSF_MSVQ_CB0_10_ndelta_min_Q15,
        SKP_Silk_NLSF_MSVQ_CB0_10_CDF,
        SKP_Silk_NLSF_MSVQ_CB0_10_CDF_start_ptr
};