shithub: opus

ref: d513d743fb5d9802e2d39d74a13f5628c1553059
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.31 + 1.43 kB                 */
/**********************************************/

#include "SKP_Silk_structs.h"
#include "SKP_Silk_tables.h"
#include "SKP_Silk_tables_NLSF_CB0_10.h"

const SKP_uint16 SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ NLSF_MSVQ_CB0_10_VECTORS + NLSF_MSVQ_CB0_10_STAGES ] =
{
            0,
         2433,
         4865,
         7096,
         8971,
        10549,
        12126,
        13636,
        15147,
        16657,
        18104,
        19550,
        20996,
        22381,
        23766,
        25093,
        26419,
        27745,
        29016,
        30232,
        31448,
        32664,
        33780,
        34895,
        36010,
        37078,
        38146,
        39169,
        40192,
        41215,
        42194,
        43173,
        44153,
        45091,
        46028,
        46966,
        47904,
        48842,
        49740,
        50638,
        51498,
        52358,
        53218,
        54042,
        54865,
        55689,
        56478,
        57266,
        58055,
        58810,
        59565,
        60321,
        61044,
        61652,
        62260,
        62868,
        63337,
        63683,
        64001,
        64257,
        64512,
        64768,
        65024,
        65279,
        65535,
            0,
         5110,
        10220,
        15114,
        19800,
        24097,
        28394,
        32691,
        36988,
        41285,
        45225,
        48999,
        52612,
        56226,
        59839,
        62749,
        65535,
            0,
         8964,
        17928,
        26148,
        34368,
        42588,
        50459,
        57997,
        65535,
            0,
        10142,
        19048,
        27576,
        36104,
        44271,
        52091,
        58959,
        65535,
            0,
         8874,
        17371,
        25869,
        34366,
        42158,
        49951,
        57743,
        65535,
            0,
         8970,
        17560,
        25786,
        34012,
        42238,
        50115,
        57992,
        65535,
            0,
         4875,
         9750,
        14418,
        19086,
        23754,
        28422,
        32892,
        37173,
        41272,
        45371,
        49297,
        52896,
        56496,
        59797,
        63098,
        65535
};

const SKP_uint16 * 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[  65 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  82 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[  91 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ 100 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ 109 ],
     &SKP_Silk_NLSF_MSVQ_CB0_10_CDF[ 118 ]
};

const SKP_int SKP_Silk_NLSF_MSVQ_CB0_10_CDF_middle_idx[ NLSF_MSVQ_CB0_10_STAGES ] =
{
      22,
       8,
       5,
       5,
       5,
       5,
       8
};

const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB0_10_rates_Q4[ NLSF_MSVQ_CB0_10_VECTORS ] =
{
               76,               76,
               78,               82,
               86,               86,
               87,               87,
               87,               88,
               88,               88,
               89,               89,
               90,               90,
               90,               91,
               92,               92,
               92,               94,
               94,               94,
               95,               95,
               96,               96,
               96,               97,
               97,               97,
               98,               98,
               98,               98,
               98,               99,
               99,              100,
              100,              100,
              101,              101,
              101,              102,
              102,              102,
              103,              103,
              103,              104,
              108,              108,
              108,              114,
              121,              123,
              128,              128,
              128,              128,
              128,              128,
               59,               59,
               60,               61,
               63,               63,
               63,               63,
               63,               65,
               66,               67,
               67,               67,
               72,               73,
               46,               46,
               48,               48,
               48,               49,
               50,               50,
               43,               46,
               47,               47,
               48,               49,
               52,               53,
               46,               47,
               47,               47,
               49,               49,
               49,               49,
               46,               47,
               48,               48,
               48,               49,
               49,               50,
               60,               60,
               61,               61,
               61,               61,
               62,               63,
               64,               64,
               65,               67,
               67,               69,
               69,               76
};

const SKP_int SKP_Silk_NLSF_MSVQ_CB0_10_ndelta_min_Q15[ 10 + 1 ] =
{
              553,
                5,
               22,
               19,
                3,
                3,
              180,
              162,
              306,
              171,
              991
};

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