media/libopus/silk/tables_NLSF_CB_WB.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libopus/silk/tables_NLSF_CB_WB.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,198 @@
     1.4 +/***********************************************************************
     1.5 +Copyright (c) 2006-2011, Skype Limited. All rights reserved.
     1.6 +Redistribution and use in source and binary forms, with or without
     1.7 +modification, are permitted provided that the following conditions
     1.8 +are met:
     1.9 +- Redistributions of source code must retain the above copyright notice,
    1.10 +this list of conditions and the following disclaimer.
    1.11 +- Redistributions in binary form must reproduce the above copyright
    1.12 +notice, this list of conditions and the following disclaimer in the
    1.13 +documentation and/or other materials provided with the distribution.
    1.14 +- Neither the name of Internet Society, IETF or IETF Trust, nor the
    1.15 +names of specific contributors, may be used to endorse or promote
    1.16 +products derived from this software without specific prior written
    1.17 +permission.
    1.18 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1.19 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.20 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.21 +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    1.22 +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.23 +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.24 +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.25 +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.26 +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.27 +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    1.28 +POSSIBILITY OF SUCH DAMAGE.
    1.29 +***********************************************************************/
    1.30 +
    1.31 +#ifdef HAVE_CONFIG_H
    1.32 +#include "config.h"
    1.33 +#endif
    1.34 +
    1.35 +#include "tables.h"
    1.36 +
    1.37 +static const opus_uint8 silk_NLSF_CB1_WB_Q8[ 512 ] = {
    1.38 +         7,     23,     38,     54,     69,     85,    100,    116,
    1.39 +       131,    147,    162,    178,    193,    208,    223,    239,
    1.40 +        13,     25,     41,     55,     69,     83,     98,    112,
    1.41 +       127,    142,    157,    171,    187,    203,    220,    236,
    1.42 +        15,     21,     34,     51,     61,     78,     92,    106,
    1.43 +       126,    136,    152,    167,    185,    205,    225,    240,
    1.44 +        10,     21,     36,     50,     63,     79,     95,    110,
    1.45 +       126,    141,    157,    173,    189,    205,    221,    237,
    1.46 +        17,     20,     37,     51,     59,     78,     89,    107,
    1.47 +       123,    134,    150,    164,    184,    205,    224,    240,
    1.48 +        10,     15,     32,     51,     67,     81,     96,    112,
    1.49 +       129,    142,    158,    173,    189,    204,    220,    236,
    1.50 +         8,     21,     37,     51,     65,     79,     98,    113,
    1.51 +       126,    138,    155,    168,    179,    192,    209,    218,
    1.52 +        12,     15,     34,     55,     63,     78,     87,    108,
    1.53 +       118,    131,    148,    167,    185,    203,    219,    236,
    1.54 +        16,     19,     32,     36,     56,     79,     91,    108,
    1.55 +       118,    136,    154,    171,    186,    204,    220,    237,
    1.56 +        11,     28,     43,     58,     74,     89,    105,    120,
    1.57 +       135,    150,    165,    180,    196,    211,    226,    241,
    1.58 +         6,     16,     33,     46,     60,     75,     92,    107,
    1.59 +       123,    137,    156,    169,    185,    199,    214,    225,
    1.60 +        11,     19,     30,     44,     57,     74,     89,    105,
    1.61 +       121,    135,    152,    169,    186,    202,    218,    234,
    1.62 +        12,     19,     29,     46,     57,     71,     88,    100,
    1.63 +       120,    132,    148,    165,    182,    199,    216,    233,
    1.64 +        17,     23,     35,     46,     56,     77,     92,    106,
    1.65 +       123,    134,    152,    167,    185,    204,    222,    237,
    1.66 +        14,     17,     45,     53,     63,     75,     89,    107,
    1.67 +       115,    132,    151,    171,    188,    206,    221,    240,
    1.68 +         9,     16,     29,     40,     56,     71,     88,    103,
    1.69 +       119,    137,    154,    171,    189,    205,    222,    237,
    1.70 +        16,     19,     36,     48,     57,     76,     87,    105,
    1.71 +       118,    132,    150,    167,    185,    202,    218,    236,
    1.72 +        12,     17,     29,     54,     71,     81,     94,    104,
    1.73 +       126,    136,    149,    164,    182,    201,    221,    237,
    1.74 +        15,     28,     47,     62,     79,     97,    115,    129,
    1.75 +       142,    155,    168,    180,    194,    208,    223,    238,
    1.76 +         8,     14,     30,     45,     62,     78,     94,    111,
    1.77 +       127,    143,    159,    175,    192,    207,    223,    239,
    1.78 +        17,     30,     49,     62,     79,     92,    107,    119,
    1.79 +       132,    145,    160,    174,    190,    204,    220,    235,
    1.80 +        14,     19,     36,     45,     61,     76,     91,    108,
    1.81 +       121,    138,    154,    172,    189,    205,    222,    238,
    1.82 +        12,     18,     31,     45,     60,     76,     91,    107,
    1.83 +       123,    138,    154,    171,    187,    204,    221,    236,
    1.84 +        13,     17,     31,     43,     53,     70,     83,    103,
    1.85 +       114,    131,    149,    167,    185,    203,    220,    237,
    1.86 +        17,     22,     35,     42,     58,     78,     93,    110,
    1.87 +       125,    139,    155,    170,    188,    206,    224,    240,
    1.88 +         8,     15,     34,     50,     67,     83,     99,    115,
    1.89 +       131,    146,    162,    178,    193,    209,    224,    239,
    1.90 +        13,     16,     41,     66,     73,     86,     95,    111,
    1.91 +       128,    137,    150,    163,    183,    206,    225,    241,
    1.92 +        17,     25,     37,     52,     63,     75,     92,    102,
    1.93 +       119,    132,    144,    160,    175,    191,    212,    231,
    1.94 +        19,     31,     49,     65,     83,    100,    117,    133,
    1.95 +       147,    161,    174,    187,    200,    213,    227,    242,
    1.96 +        18,     31,     52,     68,     88,    103,    117,    126,
    1.97 +       138,    149,    163,    177,    192,    207,    223,    239,
    1.98 +        16,     29,     47,     61,     76,     90,    106,    119,
    1.99 +       133,    147,    161,    176,    193,    209,    224,    240,
   1.100 +        15,     21,     35,     50,     61,     73,     86,     97,
   1.101 +       110,    119,    129,    141,    175,    198,    218,    237
   1.102 +};
   1.103 +
   1.104 +static const opus_uint8 silk_NLSF_CB1_iCDF_WB[ 64 ] = {
   1.105 +       225,    204,    201,    184,    183,    175,    158,    154,
   1.106 +       153,    135,    119,    115,    113,    110,    109,     99,
   1.107 +        98,     95,     79,     68,     52,     50,     48,     45,
   1.108 +        43,     32,     31,     27,     18,     10,      3,      0,
   1.109 +       255,    251,    235,    230,    212,    201,    196,    182,
   1.110 +       167,    166,    163,    151,    138,    124,    110,    104,
   1.111 +        90,     78,     76,     70,     69,     57,     45,     34,
   1.112 +        24,     21,     11,      6,      5,      4,      3,      0
   1.113 +};
   1.114 +
   1.115 +static const opus_uint8 silk_NLSF_CB2_SELECT_WB[ 256 ] = {
   1.116 +         0,      0,      0,      0,      0,      0,      0,      1,
   1.117 +       100,    102,    102,     68,     68,     36,     34,     96,
   1.118 +       164,    107,    158,    185,    180,    185,    139,    102,
   1.119 +        64,     66,     36,     34,     34,      0,      1,     32,
   1.120 +       208,    139,    141,    191,    152,    185,    155,    104,
   1.121 +        96,    171,    104,    166,    102,    102,    102,    132,
   1.122 +         1,      0,      0,      0,      0,     16,     16,      0,
   1.123 +        80,    109,     78,    107,    185,    139,    103,    101,
   1.124 +       208,    212,    141,    139,    173,    153,    123,    103,
   1.125 +        36,      0,      0,      0,      0,      0,      0,      1,
   1.126 +        48,      0,      0,      0,      0,      0,      0,     32,
   1.127 +        68,    135,    123,    119,    119,    103,     69,     98,
   1.128 +        68,    103,    120,    118,    118,    102,     71,     98,
   1.129 +       134,    136,    157,    184,    182,    153,    139,    134,
   1.130 +       208,    168,    248,     75,    189,    143,    121,    107,
   1.131 +        32,     49,     34,     34,     34,      0,     17,      2,
   1.132 +       210,    235,    139,    123,    185,    137,    105,    134,
   1.133 +        98,    135,    104,    182,    100,    183,    171,    134,
   1.134 +       100,     70,     68,     70,     66,     66,     34,    131,
   1.135 +        64,    166,    102,     68,     36,      2,      1,      0,
   1.136 +       134,    166,    102,     68,     34,     34,     66,    132,
   1.137 +       212,    246,    158,    139,    107,    107,     87,    102,
   1.138 +       100,    219,    125,    122,    137,    118,    103,    132,
   1.139 +       114,    135,    137,    105,    171,    106,     50,     34,
   1.140 +       164,    214,    141,    143,    185,    151,    121,    103,
   1.141 +       192,     34,      0,      0,      0,      0,      0,      1,
   1.142 +       208,    109,     74,    187,    134,    249,    159,    137,
   1.143 +       102,    110,    154,    118,     87,    101,    119,    101,
   1.144 +         0,      2,      0,     36,     36,     66,     68,     35,
   1.145 +        96,    164,    102,    100,     36,      0,      2,     33,
   1.146 +       167,    138,    174,    102,    100,     84,      2,      2,
   1.147 +       100,    107,    120,    119,     36,    197,     24,      0
   1.148 +};
   1.149 +
   1.150 +static const opus_uint8 silk_NLSF_CB2_iCDF_WB[ 72 ] = {
   1.151 +       255,    254,    253,    244,     12,      3,      2,      1,
   1.152 +         0,    255,    254,    252,    224,     38,      3,      2,
   1.153 +         1,      0,    255,    254,    251,    209,     57,      4,
   1.154 +         2,      1,      0,    255,    254,    244,    195,     69,
   1.155 +         4,      2,      1,      0,    255,    251,    232,    184,
   1.156 +        84,      7,      2,      1,      0,    255,    254,    240,
   1.157 +       186,     86,     14,      2,      1,      0,    255,    254,
   1.158 +       239,    178,     91,     30,      5,      1,      0,    255,
   1.159 +       248,    227,    177,    100,     19,      2,      1,      0
   1.160 +};
   1.161 +
   1.162 +static const opus_uint8 silk_NLSF_CB2_BITS_WB_Q5[ 72 ] = {
   1.163 +       255,    255,    255,    156,      4,    154,    255,    255,
   1.164 +       255,    255,    255,    227,    102,     15,     92,    255,
   1.165 +       255,    255,    255,    255,    213,     83,     24,     72,
   1.166 +       236,    255,    255,    255,    255,    150,     76,     33,
   1.167 +        63,    214,    255,    255,    255,    190,    121,     77,
   1.168 +        43,     55,    185,    255,    255,    255,    245,    137,
   1.169 +        71,     43,     59,    139,    255,    255,    255,    255,
   1.170 +       131,     66,     50,     66,    107,    194,    255,    255,
   1.171 +       166,    116,     76,     55,     53,    125,    255,    255
   1.172 +};
   1.173 +
   1.174 +static const opus_uint8 silk_NLSF_PRED_WB_Q8[ 30 ] = {
   1.175 +       175,    148,    160,    176,    178,    173,    174,    164,
   1.176 +       177,    174,    196,    182,    198,    192,    182,     68,
   1.177 +        62,     66,     60,     72,    117,     85,     90,    118,
   1.178 +       136,    151,    142,    160,    142,    155
   1.179 +};
   1.180 +
   1.181 +static const opus_int16 silk_NLSF_DELTA_MIN_WB_Q15[ 17 ] = {
   1.182 +       100,      3,     40,      3,      3,      3,      5,     14,
   1.183 +        14,     10,     11,      3,      8,      9,      7,      3,
   1.184 +       347
   1.185 +};
   1.186 +
   1.187 +const silk_NLSF_CB_struct silk_NLSF_CB_WB =
   1.188 +{
   1.189 +    32,
   1.190 +    16,
   1.191 +    SILK_FIX_CONST( 0.15, 16 ),
   1.192 +    SILK_FIX_CONST( 1.0 / 0.15, 6 ),
   1.193 +    silk_NLSF_CB1_WB_Q8,
   1.194 +    silk_NLSF_CB1_iCDF_WB,
   1.195 +    silk_NLSF_PRED_WB_Q8,
   1.196 +    silk_NLSF_CB2_SELECT_WB,
   1.197 +    silk_NLSF_CB2_iCDF_WB,
   1.198 +    silk_NLSF_CB2_BITS_WB_Q5,
   1.199 +    silk_NLSF_DELTA_MIN_WB_Q15,
   1.200 +};
   1.201 +

mercurial