⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qgain475_tab.cpp

📁 实现3GPP的GSM中AMR语音的CODECS。
💻 CPP
📖 第 1 页 / 共 2 页
字号:
/* ------------------------------------------------------------------ * Copyright (C) 2008 PacketVideo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. * See the License for the specific language governing permissions * and limitations under the License. * ------------------------------------------------------------------- *//****************************************************************************************Portions of this file are derived from the following 3GPP standard:    3GPP TS 26.073    ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec    Available from http://www.3gpp.org(C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)Permission to distribute, modify and use this file under the standard licenseterms listed above has been obtained from the copyright holder.****************************************************************************************//* Filename: /audio/gsm_amr/c/src/qgain475_tab.c     Date: 12/09/2002------------------------------------------------------------------------------ REVISION HISTORY Description: Created this file from the reference, qgain475.tab. Description: Added #ifdef __cplusplus and removed "extern" from table              definition. Description: Put "extern" back. Description:------------------------------------------------------------------------------ MODULE DESCRIPTION------------------------------------------------------------------------------*//*----------------------------------------------------------------------------; INCLUDES----------------------------------------------------------------------------*/#include "typedef.h"/*--------------------------------------------------------------------------*/#ifdef __cplusplusextern "C"{#endif    /*----------------------------------------------------------------------------    ; MACROS    ; [Define module specific macros here]    ----------------------------------------------------------------------------*/    /*----------------------------------------------------------------------------    ; DEFINES    ; [Include all pre-processor statements here. Include conditional    ; compile variables also.]    ----------------------------------------------------------------------------*/#define MR475_VQ_SIZE 256    /*----------------------------------------------------------------------------    ; LOCAL FUNCTION DEFINITIONS    ; [List function prototypes here]    ----------------------------------------------------------------------------*/    /*----------------------------------------------------------------------------    ; LOCAL VARIABLE DEFINITIONS    ; [Variable declaration - defined here and used outside this module]    ----------------------------------------------------------------------------*/    /* The table contains the following data:     *     *    g_pitch(0)        (Q14) // for sub-     *    g_fac(0)          (Q12) // frame 0 and 2     *    g_pitch(1)        (Q14) // for sub-     *    g_fac(2)          (Q12) // frame 1 and 3     *     */    extern const Word16 table_gain_MR475[MR475_VQ_SIZE*4] =    {        /*g_pit(0), g_fac(0),      g_pit(1), g_fac(1) */        812,          128,           542,      140,        2873,         1135,          2266,     3402,        2067,          563,         12677,      647,        4132,         1798,          5601,     5285,        7689,          374,          3735,      441,        10912,         2638,         11807,     2494,        20490,          797,          5218,      675,        6724,         8354,          5282,     1696,        1488,          428,          5882,      452,        5332,         4072,          3583,     1268,        2469,          901,         15894,     1005,        14982,         3271,         10331,     4858,        3635,         2021,          2596,      835,        12360,         4892,         12206,     1704,        13432,         1604,          9118,     2341,        3968,         1538,          5479,     9936,        3795,          417,          1359,      414,        3640,         1569,          7995,     3541,        11405,          645,          8552,      635,        4056,         1377,         16608,     6124,        11420,          700,          2007,      607,        12415,         1578,         11119,     4654,        13680,         1708,         11990,     1229,        7996,         7297,         13231,     5715,        2428,         1159,          2073,     1941,        6218,         6121,          3546,     1804,        8925,         1802,          8679,     1580,        13935,         3576,         13313,     6237,        6142,         1130,          5994,     1734,        14141,         4662,         11271,     3321,        12226,         1551,         13931,     3015,        5081,        10464,          9444,     6706,        1689,          683,          1436,     1306,        7212,         3933,          4082,     2713,        7793,          704,         15070,      802,        6299,         5212,          4337,     5357,        6676,          541,          6062,      626,        13651,         3700,         11498,     2408,        16156,          716,         12177,      751,        8065,        11489,          6314,     2256,        4466,          496,          7293,      523,        10213,         3833,          8394,     3037,        8403,          966,         14228,     1880,        8703,         5409,         16395,     4863,        7420,         1979,          6089,     1230,        9371,         4398,         14558,     3363,        13559,         2873,         13163,     1465,        5534,         1678,         13138,    14771,        7338,          600,          1318,      548,        4252,         3539,         10044,     2364,        10587,          622,         13088,      669,        14126,         3526,          5039,     9784,        15338,          619,          3115,      590,        16442,         3013,         15542,     4168,        15537,         1611,         15405,     1228,        16023,         9299,          7534,     4976,        1990,         1213,         11447,     1157,        12512,         5519,          9475,     2644,        7716,         2034,         13280,     2239,        16011,         5093,          8066,     6761,        10083,         1413,          5002,     2347,        12523,         5975,         15126,     2899,        18264,         2289,         15827,     2527,        16265,        10254,         14651,    11319,        1797,          337,          3115,      397,        3510,         2928,          4592,     2670,        7519,          628,         11415,      656,        5946,         2435,          6544,     7367,        8238,          829,          4000,      863,        10032,         2492,         16057,     3551,        18204,         1054,          6103,     1454,        5884,         7900,         18752,     3468,        1864,          544,          9198,      683,        11623,         4160,          4594,     1644,        3158,         1157,         15953,     2560,        12349,         3733,         17420,     5260,        6106,         2004,          2917,     1742,        16467,         5257,         16787,     1680,        17205,         1759,          4773,     3231,        7386,         6035,         14342,    10012,        4035,          442,          4194,      458,        9214,         2242,          7427,     4217,        12860,          801,         11186,      825,        12648,         2084,         12956,     6554,        9505,          996,          6629,      985,        10537,         2502,         15289,     5006,        12602,         2055,         15484,     1653,        16194,         6921,         14231,     5790,        2626,          828,          5615,     1686,        13663,         5778,          3668,     1554,        11313,         2633,          9770,     1459,        14003,         4733,         15897,     6291,        6278,         1870,          7910,     2285,        16978,         4571,         16576,     3849,        15248,         2311,         16023,     3244,        14459,        17808,         11847,     2763,        1981,         1407,          1400,      876,        4335,         3547,          4391,     4210,        5405,          680,         17461,      781,        6501,         5118,          8091,     7677,        7355,          794,          8333,     1182,        15041,         3160,         14928,     3039,        20421,          880,         14545,      852,        12337,        14708,          6904,     1920,        4225,          933,          8218,     1087,        10659,         4084,         10082,     4533,        2735,          840,         20657,     1081,        16711,         5966,         15873,     4578,        10871,         2574,          3773,     1166,        14519,         4044,         20699,     2627,        15219,         2734,         15274,     2186,        6257,         3226,         13125,    19480,        7196,          930,          2462,     1618,        4515,         3092,         13852,     4277,        10460,          833,         17339,      810,        16891,         2289,         15546,     8217,        13603,         1684,          3197,     1834,        15948,         2820,         15812,     5327,        17006,         2438,         16788,     1326,        15671,         8156,         11726,     8556,        3762,         2053,          9563,     1317,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -