videoeditorengine/audioeditorengine/codecs/AWB/inc/q_gain2.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /*------------------------------------------------------*
       
    21  * Tables for function q_gain2()                        *
       
    22  *                                                      *
       
    23  *  g_pitch(Q14),  g_code(Q11)                          *
       
    24  *                                                      *
       
    25  * pitch gain are ordered in table to reduce complexity *
       
    26  * during quantization of gains.                        *
       
    27  *------------------------------------------------------*/
       
    28 
       
    29 #define nb_qua_gain6b  64     /* Number of quantization level */
       
    30 #define nb_qua_gain7b  128    /* Number of quantization level */
       
    31 
       
    32 
       
    33 const TInt t_qua_gain6b[64*2] = {
       
    34    1566,  1332,
       
    35    1577,  3557,
       
    36    3071,  6490,
       
    37    4193, 10163,
       
    38    4496,  2534,
       
    39    5019,  4488,
       
    40    5586, 15614,
       
    41    5725,  1422,
       
    42    6453,   580,
       
    43    6724,  6831,
       
    44    7657,  3527,
       
    45    8072,  2099,
       
    46    8232,  5319,
       
    47    8827,  8775,
       
    48    9740,  2868,
       
    49    9856,  1465,
       
    50   10087, 12488,
       
    51   10241,  4453,
       
    52   10859,  6618,
       
    53   11321,  3587,
       
    54   11417,  1800,
       
    55   11643,  2428,
       
    56   11718,   988,
       
    57   12312,  5093,
       
    58   12523,  8413,
       
    59   12574, 26214,
       
    60   12601,  3396,
       
    61   13172,  1623,
       
    62   13285,  2423,
       
    63   13418,  6087,
       
    64   13459, 12810,
       
    65   13656,  3607,
       
    66   14111,  4521,
       
    67   14144,  1229,
       
    68   14425,  1871,
       
    69   14431,  7234,
       
    70   14445,  2834,
       
    71   14628, 10036,
       
    72   14860, 17496,
       
    73   15161,  3629,
       
    74   15209,  5819,
       
    75   15299,  2256,
       
    76   15518,  4722,
       
    77   15663,  1060,
       
    78   15759,  7972,
       
    79   15939, 11964,
       
    80   16020,  2996,
       
    81   16086,  1707,
       
    82   16521,  4254,
       
    83   16576,  6224,
       
    84   16894,  2380,
       
    85   16906,   681,
       
    86   17213,  8406,
       
    87   17610,  3418,
       
    88   17895,  5269,
       
    89   18168, 11748,
       
    90   18230,  1575,
       
    91   18607, 32767,
       
    92   18728, 21684,
       
    93   19137,  2543,
       
    94   19422,  6577,
       
    95   19446,  4097,
       
    96   19450,  9056,
       
    97   20371, 14885};
       
    98 
       
    99 const TInt t_qua_gain7b[128*2] = {
       
   100     204,   441,
       
   101     464,  1977,
       
   102     869,  1077,
       
   103    1072,  3062,
       
   104    1281,  4759,
       
   105    1647,  1539,
       
   106    1845,  7020,
       
   107    1853,   634,
       
   108    1995,  2336,
       
   109    2351, 15400,
       
   110    2661,  1165,
       
   111    2702,  3900,
       
   112    2710, 10133,
       
   113    3195,  1752,
       
   114    3498,  2624,
       
   115    3663,   849,
       
   116    3984,  5697,
       
   117    4214,  3399,
       
   118    4415,  1304,
       
   119    4695,  2056,
       
   120    5376,  4558,
       
   121    5386,   676,
       
   122    5518, 23554,
       
   123    5567,  7794,
       
   124    5644,  3061,
       
   125    5672,  1513,
       
   126    5957,  2338,
       
   127    6533,  1060,
       
   128    6804,  5998,
       
   129    6820,  1767,
       
   130    6937,  3837,
       
   131    7277,   414,
       
   132    7305,  2665,
       
   133    7466, 11304,
       
   134    7942,   794,
       
   135    8007,  1982,
       
   136    8007,  1366,
       
   137    8326,  3105,
       
   138    8336,  4810,
       
   139    8708,  7954,
       
   140    8989,  2279,
       
   141    9031,  1055,
       
   142    9247,  3568,
       
   143    9283,  1631,
       
   144    9654,  6311,
       
   145    9811,  2605,
       
   146   10120,   683,
       
   147   10143,  4179,
       
   148   10245,  1946,
       
   149   10335,  1218,
       
   150   10468,  9960,
       
   151   10651,  3000,
       
   152   10951,  1530,
       
   153   10969,  5290,
       
   154   11203,  2305,
       
   155   11325,  3562,
       
   156   11771,  6754,
       
   157   11839,  1849,
       
   158   11941,  4495,
       
   159   11954,  1298,
       
   160   11975, 15223,
       
   161   11977,   883,
       
   162   11986,  2842,
       
   163   12438,  2141,
       
   164   12593,  3665,
       
   165   12636,  8367,
       
   166   12658,  1594,
       
   167   12886,  2628,
       
   168   12984,  4942,
       
   169   13146,  1115,
       
   170   13224,   524,
       
   171   13341,  3163,
       
   172   13399,  1923,
       
   173   13549,  5961,
       
   174   13606,  1401,
       
   175   13655,  2399,
       
   176   13782,  3909,
       
   177   13868, 10923,
       
   178   14226,  1723,
       
   179   14232,  2939,
       
   180   14278,  7528,
       
   181   14439,  4598,
       
   182   14451,   984,
       
   183   14458,  2265,
       
   184   14792,  1403,
       
   185   14818,  3445,
       
   186   14899,  5709,
       
   187   15017, 15362,
       
   188   15048,  1946,
       
   189   15069,  2655,
       
   190   15405,  9591,
       
   191   15405,  4079,
       
   192   15570,  7183,
       
   193   15687,  2286,
       
   194   15691,  1624,
       
   195   15699,  3068,
       
   196   15772,  5149,
       
   197   15868,  1205,
       
   198   15970,   696,
       
   199   16249,  3584,
       
   200   16338,  1917,
       
   201   16424,  2560,
       
   202   16483,  4438,
       
   203   16529,  6410,
       
   204   16620, 11966,
       
   205   16839,  8780,
       
   206   17030,  3050,
       
   207   17033, 18325,
       
   208   17092,  1568,
       
   209   17123,  5197,
       
   210   17351,  2113,
       
   211   17374,   980,
       
   212   17566, 26214,
       
   213   17609,  3912,
       
   214   17639, 32767,
       
   215   18151,  7871,
       
   216   18197,  2516,
       
   217   18202,  5649,
       
   218   18679,  3283,
       
   219   18930,  1370,
       
   220   19271, 13757,
       
   221   19317,  4120,
       
   222   19460,  1973,
       
   223   19654, 10018,
       
   224   19764,  6792,
       
   225   19912,  5135,
       
   226   20040,  2841,
       
   227   21234, 19833};
       
   228 
       
   229