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

📄 tabamrwb.c

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 C
📖 第 1 页 / 共 2 页
字号:
/*/////////////////////////////////////////////////////////////////////////////
//
//                  INTEL CORPORATION PROPRIETARY INFORMATION
//     This software is supplied under the terms of a license agreement or
//     nondisclosure agreement with Intel Corporation and may not be copied
//     or disclosed except in accordance with the terms of that agreement.
//          Copyright(c) 2005 Intel Corporation. All Rights Reserved.
//
//     Intel(R) Integrated Performance Primitives
//     USC - Unified Speech Codec interface library
//
// By downloading and installing USC codec, you hereby agree that the
// accompanying Materials are being provided to you under the terms and
// conditions of the End User License Agreement for the Intel(R) Integrated
// Performance Primitives product previously accepted by you. Please refer
// to the file ipplic.htm located in the root directory of your Intel(R) IPP
// product installation for more information.
//
// A speech coding standards promoted by ITU, ETSI, 3GPP and other
// organizations. Implementations of these standards, or the standard enabled
// platforms may require licenses from various entities, including
// Intel Corporation.
//
//
// Purpose: AMRWB speech codec: tables.
//
*/

#include "ownamrwb.h"
__ALIGN32 CONST int LagWindowTbl[LP_ORDER] =
{
   2146337792, 2143546880, 2138903424, 2132419328,
   2124111616, 2114001792, 2102115840, 2088484096,
   2073141760, 2056127616, 2037485184, 2017261056,
   1995505920, 1972273792, 1947621888, 1921610624
};

__ALIGN32 CONST short LPWindowTbl[WINDOW_SIZE] =
{
    2621,    2622,    2626,    2632,    2640,    2650,    2662,    2677,    2694,
    2714,    2735,    2759,    2785,    2814,    2844,    2877,    2912,    2949,
    2989,    3031,    3075,    3121,    3169,    3220,    3273,    3328,    3385,
    3444,    3506,    3569,    3635,    3703,    3773,    3845,    3919,    3996,
    4074,    4155,    4237,    4321,    4408,    4496,    4587,    4680,    4774,
    4870,    4969,    5069,    5171,    5275,    5381,    5489,    5599,    5710,
    5824,    5939,    6056,    6174,    6295,    6417,    6541,    6666,    6793,
    6922,    7052,    7185,    7318,    7453,    7590,    7728,    7868,    8009,
    8152,    8296,    8442,    8589,    8737,    8887,    9038,    9191,    9344,
    9499,    9655,    9813,    9971,   10131,   10292,   10454,   10617,   10781,
   10946,   11113,   11280,   11448,   11617,   11787,   11958,   12130,   12303,
   12476,   12650,   12825,   13001,   13178,   13355,   13533,   13711,   13890,
   14070,   14250,   14431,   14612,   14793,   14975,   15158,   15341,   15524,
   15708,   15891,   16076,   16260,   16445,   16629,   16814,   16999,   17185,
   17370,   17555,   17740,   17926,   18111,   18296,   18481,   18666,   18851,
   19036,   19221,   19405,   19589,   19773,   19956,   20139,   20322,   20504,
   20686,   20867,   21048,   21229,   21408,   21588,   21767,   21945,   22122,
   22299,   22475,   22651,   22825,   22999,   23172,   23344,   23516,   23686,
   23856,   24025,   24192,   24359,   24525,   24689,   24853,   25016,   25177,
   25337,   25496,   25654,   25811,   25967,   26121,   26274,   26426,   26576,
   26725,   26873,   27019,   27164,   27308,   27450,   27590,   27729,   27867,
   28003,   28137,   28270,   28401,   28531,   28659,   28785,   28910,   29033,
   29154,   29274,   29391,   29507,   29622,   29734,   29845,   29953,   30060,
   30165,   30268,   30370,   30469,   30566,   30662,   30755,   30847,   30936,
   31024,   31109,   31193,   31274,   31354,   31431,   31506,   31579,   31651,
   31719,   31786,   31851,   31914,   31974,   32032,   32088,   32142,   32194,
   32243,   32291,   32336,   32379,   32419,   32458,   32494,   32528,   32560,
   32589,   32617,   32642,   32664,   32685,   32703,   32719,   32733,   32744,
   32753,   32760,   32764,   32767,   32767,   32765,   32757,   32745,   32727,
   32705,   32678,   32646,   32609,   32567,   32520,   32468,   32411,   32349,
   32283,   32211,   32135,   32054,   31968,   31877,   31781,   31681,   31575,
   31465,   31351,   31231,   31107,   30978,   30844,   30706,   30563,   30415,
   30263,   30106,   29945,   29779,   29609,   29434,   29255,   29071,   28883,
   28691,   28494,   28293,   28087,   27878,   27664,   27446,   27224,   26997,
   26767,   26533,   26294,   26052,   25806,   25555,   25301,   25043,   24782,
   24516,   24247,   23974,   23698,   23418,   23134,   22847,   22557,   22263,
   21965,   21665,   21361,   21054,   20743,   20430,   20113,   19794,   19471,
   19146,   18817,   18486,   18152,   17815,   17476,   17134,   16789,   16442,
   16092,   15740,   15385,   15028,   14669,   14308,   13944,   13579,   13211,
   12841,   12470,   12096,   11721,   11344,   10965,   10584,   10202,    9819,
    9433,    9047,    8659,    8270,    7879,    7488,    7095,    6701,    6306,
    5910,    5514,    5116,    4718,    4319,    3919,    3519,    3118,    2716,
    2315,    1913,    1510,    1108,     705,     302
};

__ALIGN32 CONST short FirUpSamplTbl[120] =
{
       -1,    12,   -33,    68, -119, //k=0
      191,  -291,   430,  -634,  963,
    -1616,  3792, 15317, -2496, 1288,
     -809,   542,  -369,   247, -160,
       96,   -52,    23,    -6,
       -4,    24,   -62,   124, -213, //k=1
      338,  -510,   752, -1111, 1708,
    -2974,  8219, 12368, -3432, 1881,
    -1204,   812,  -552,   368, -235,
      139,   -73,    30,    -7,
       -7,    30,   -73,   139, -235, //k=2
      368,  -552,   812, -1204, 1881,
    -3432, 12368,  8219, -2974, 1708,
    -1111,   752,  -510,   338, -213,
      124,   -62,    24,    -4,
       -6,    23,   -52,    96, -160, //k=3
      247,  -369,   542,  -809, 1288,
    -2496, 15317,  3792, -1616,  963,
     -634,   430,  -291,   191, -119,
       68,   -33,    12,    -1,
        0,     0,     0,     0,    0, //k=4
        0,     0,     0,     0,    0,
        0, 16384,     0,     0,    0,
        0,     0,     0,     0,    0,
        0,     0,     0,     0
};


__ALIGN32 CONST short FirDownSamplTbl[120] =
{            /* table x4/5 */
      -1,     0,    18,   -58,//k=0
      99,   -95,     0,   198,
    -441,   601,  -507,     0,
    1030, -2746,  6575, 12254,
       0, -1293,  1366,  -964,
     434,     0,  -233,   270,
    -188,    77,     0,   -26,
      19,    -6,
      -3,     9,     0,   -41,//k=1
     111,  -170,   153,     0,
    -295,   649,  -888,   770,
       0, -1997,  9894,  9894,
   -1997,     0,   770,  -888,
     649,  -295,     0,   153,
    -170,   111,   -41,     0,
       9,    -3,
      -6,    19,   -26,     0,//k=2
      77,  -188,   270,  -233,
       0,   434,  -964,  1366,
   -1293,     0, 12254,  6575,
   -2746,  1030,     0,  -507,
     601,  -441,   198,     0,
     -95,    99,   -58,    18,
       0,    -1,
      -5,    24,   -50,    54,//k=3
       0,  -128,   294,  -408,
     344,     0,  -647,  1505,
   -2379,  3034, 13107,  3034,
   -2379,  1505,  -647,     0,
     344,  -408,   294,  -128,
       0,    54,   -50,    24,
      -5,     0
};

__ALIGN32 CONST short NormTbl[256] =
{
   7,6,5,5,4,4,4,4,
   3,3,3,3,3,3,3,3,
   2,2,2,2,2,2,2,2,
   2,2,2,2,2,2,2,2,
   1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   0,0,0,0,0,0,0,0,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1,
   -1,-1,-1,-1,-1,-1,-1,-1
};

__ALIGN32 CONST short NormTbl2[256] =
{
  15,14,13,13,12,12,12,12,
  11,11,11,11,11,11,11,11,
  10,10,10,10,10,10,10,10,
  10,10,10,10,10,10,10,10,
   9, 9, 9, 9, 9, 9, 9, 9,
   9, 9, 9, 9, 9, 9, 9, 9,
   9, 9, 9, 9, 9, 9, 9, 9,
   9, 9, 9, 9, 9, 9, 9, 9,
   8, 8, 8, 8, 8, 8, 8, 8,
   8, 8, 8, 8, 8, 8, 8, 8,
   8, 8, 8, 8, 8, 8, 8, 8,
   8, 8, 8, 8, 8, 8, 8, 8,
   8, 8, 8, 8, 8, 8, 8, 8,

⌨️ 快捷键说明

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