shithub: opus

ref: bf8577992e69de9182d29fe37739dbd6b5ac7354
dir: /src_common/SKP_Silk_tables_NLSF_CB1_16.c/

View raw version
/***********************************************************************
Copyright (c) 2006-2011, 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.14 + 1.80 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_CB1_16_CDF[ NLSF_MSVQ_CB1_16_VECTORS ] =
{
          192,
          162,
          146,
          130,
          116,
          103,
           92,
           83,
           75,
           69,
           63,
           57,
           51,
           46,
           40,
           36,
           32,
           28,
           25,
           23,
           21,
           19,
           17,
           15,
           13,
           12,
           10,
            8,
            6,
            4,
            2,
            0,
          118,
           91,
           64,
           44,
           32,
           21,
           10,
            0,
          128,
          104,
           81,
           60,
           41,
           26,
           12,
            0,
          134,
          103,
           82,
           60,
           42,
           25,
           12,
            0,
          103,
           83,
           64,
           47,
           32,
           19,
            8,
            0,
           97,
           77,
           59,
           43,
           29,
           17,
            8,
            0,
           96,
           75,
           58,
           41,
           29,
           18,
            9,
            0,
          110,
           82,
           55,
           41,
           28,
           18,
            9,
            0,
          197,
          143,
          101,
           73,
           50,
           33,
           16,
            0,
          169,
          128,
           99,
           72,
           47,
           30,
           13,
            0
};

const SKP_uint8 * const SKP_Silk_NLSF_MSVQ_CB1_16_CDF_start_ptr[ NLSF_MSVQ_CB1_16_STAGES ] =
{
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[   0 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  32 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  40 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  48 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  56 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  64 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  72 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  80 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  88 ],
     &SKP_Silk_NLSF_MSVQ_CB1_16_CDF[  96 ]
};

const SKP_uint8 SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[ NLSF_MSVQ_CB1_16_VECTORS ] =
{
               32,               50,
               63,               65,
               66,               70,
               73,               77,
               81,               85,
               85,               88,
               88,               89,
               89,               93,
               95,               98,
              103,              113,
              113,              113,
              113,              113,
              113,              113,
              113,              113,
              113,              113,
              113,              113,
               14,               52,
               52,               58,
               71,               73,
               73,               74,
               16,               55,
               56,               58,
               60,               65,
               67,               71,
               17,               49,
               57,               57,
               61,               63,
               69,               70,
               12,               60,
               60,               62,
               66,               70,
               72,               80,
               11,               59,
               61,               64,
               67,               72,
               77,               79,
               11,               58,
               63,               63,
               71,               73,
               77,               78,
               13,               51,
               52,               67,
               69,               76,
               77,               77,
               34,               36,
               42,               51,
               55,               63,
               63,               64,
               25,               42,
               50,               52,
               54,               62,
               63,               69
};

const SKP_int SKP_Silk_NLSF_MSVQ_CB1_16_ndelta_min_Q15[ 16 + 1 ] =
{
              110,
               27,
              146,
              128,
               34,
               27,
               32,
               23,
               31,
               25,
               32,
               25,
               23,
               24,
               29,
                4,
              653
};

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

const SKP_Silk_NLSF_CBS SKP_Silk_NLSF_CB1_16_Stage_info[ NLSF_MSVQ_CB1_16_STAGES ] =
{
        {  32, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *   0 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[   0 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  32 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  32 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  40 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  40 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  48 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  48 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  56 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  56 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  64 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  64 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  72 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  72 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  80 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  80 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  88 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  88 ] },
        {   8, &SKP_Silk_NLSF_MSVQ_CB1_16_Q8[ 16 *  96 ], &SKP_Silk_NLSF_MSVQ_CB1_16_rates_Q4[  96 ] }
};

const SKP_Silk_NLSF_CB_struct SKP_Silk_NLSF_CB1_16 =
{
        NLSF_MSVQ_CB1_16_STAGES,
        SKP_Silk_NLSF_CB1_16_Stage_info,
        SKP_Silk_NLSF_MSVQ_CB1_16_ndelta_min_Q15,
        SKP_Silk_NLSF_MSVQ_CB1_16_CDF_start_ptr
};