📄 q_plsf_5_tbl.cpp
字号:
/* ------------------------------------------------------------------ * 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/q_plsf_5_tbl.c Date: 01/31/2002------------------------------------------------------------------------------ REVISION HISTORY Description: Created this file from the reference, q_plsf_5_tbl.tab Description: Changed #defines of DICO_SIZE to DICO_5_SIZE, to avoid name conflicts. 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 NB_QUA_PITCH 16#define NB_QUA_CODE 32#define DICO1_5_SIZE 128#define DICO2_5_SIZE 256#define DICO3_5_SIZE 256#define DICO4_5_SIZE 256#define DICO5_5_SIZE 64 /*---------------------------------------------------------------------------- ; LOCAL FUNCTION DEFINITIONS ; [List function prototypes here] ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; LOCAL VARIABLE DEFINITIONS ; [Variable declaration - defined here and used outside this module] ----------------------------------------------------------------------------*/ /* LSF means ->normalize frequency domain */ extern const Word16 mean_lsf_5[10] = { 1384, 2077, 3420, 5108, 6742, 8122, 9863, 11092, 12714, 13701 }; extern const Word16 dico1_lsf_5[DICO1_5_SIZE * 4] = { -451, -1065, -529, -1305, -450, -756, -497, -863, -384, -619, -413, -669, -317, -538, -331, -556, -414, -508, -424, -378, -274, -324, -434, -614, -226, -500, -232, -514, -263, -377, -298, -410, -151, -710, -174, -818, -149, -412, -156, -429, -288, -462, -186, -203, -170, -302, -191, -321, -131, -147, -297, -395, -228, -214, -245, -192, -67, -316, -71, -327, -104, -205, -94, -183, -143, -38, -193, -95, 16, -76, -124, -248, 23, -237, 24, -244, 18, -136, 44, -111, -33, -24, -25, 0, 149, 19, 23, -143, 158, -169, 174, -181, 133, -55, 165, -26, 111, 84, 98, 75, 87, 183, -115, -11, -8, 130, 11, 170, 254, 77, 205, 17, 183, 112, 262, 194, 202, 287, 95, 189, -42, -105, 234, 179, 39, 186, 163, 345, 332, 199, 299, 161, -54, 285, -78, 281, -133, 141, -182, 111, 249, 341, 271, 364, 93, 403, 75, 391, 92, 510, -138, 220, -185, -29, -34, 361, -115, 320, 3, 554, 99, 286, 218, 591, -245, 406, -268, 453, 0, 580, 25, 606, 275, 532, 148, 450, -73, 739, -285, 518, -288, 94, -203, 674, -140, -74, 205, 714, -114, 299, 176, 923, 182, 557, 240, 705, -16, 513, 485, 593, 293, 384, 451, 617, -38, 50, 563, 529, 303, 209, 459, 363, 433, 452, 450, 454, 367, 606, 477, 741, 432, 353, 368, 267, 361, 716, 273, 583, 453, 166, 510, 172, 201, 629, 274, 191, 568, 639, 302, 298, 634, 387, 643, 350, 587, 560, 612, 565, 600, 788, 487, 672, 512, 1015, 321, 333, 357, 854, -125, 413, 474, 712, 17, -151, 564, 285, 270, -241, 971, 889, 489, 220, 510, 896, 549, 924, 327, 825, 290, 911, 540, 1108, 158, 805, 199, 957, 511, 730, 100, 874, 13, 791, 435, 632, 676, 972, 249, 900, 467, 1218, 781, 1074, 585, 785, -23, 669, 267, 1043, 619, 1084, 615, 1145, 622, 905, 916, 1049, 80, 331, 584, 1075, 89, 639, 988, 961, 770, 720, 798, 699, 492, 447, 899, 627, 271, 1188, 725, 1333, 87, 603, 832, 1603, 616, 1127, 890, 1505, 1000, 1156, 866, 1009, 995, 827, 1149, 858, 817, 1450, 773, 1320, 500, 1389, 312, 1153, -20, 1084, 64, 1283, 2, 1172, 399, 1869, 514, 1706, 502, 1636, 886, 1522, 416, 600, 1131, 1350, 1275, 1390, 889, 1795, 914, 1766, 227, 1183, 1250, 1826, 505, 1854, 919, 2353, -199, 431, 152, 1735, -213, -28, 392, 1334, -153, -52, 978, 1151, -323, -400, 813, 1703, -136, 84, 1449, 2015, -331, -143, -137, 1192, -256, 534, -157, 1031, -307, -439, 542, 731, -329, -420, -97, 616, -362, -168, -322, 366, -247, -110, -211, 89, -196, -309, 20, 59, -364, -463, -286, 89, -336, 175, -432, 141, -379, -190, -434, -196, -79, 150, -278, -227, -280, 166, -555, -422, -155, 541, -366, 54, -29, -83, -301, -774, 186, 628, -397, -264, 242, 293, -197, -585, 124, 410, 53, -133, 10, 340, -570, -1065, 65, -446, 68, -493, 383, 937, -357, -711, -359, -250, -677, -1068, 292, -26, 363, 6, 607, 1313, -127, -10, 1513, 1886, 713, 972, 1469, 2181, 1443, 2016 }; extern const Word16 dico2_lsf_5[DICO2_5_SIZE * 4] = { -1631, -1600, -1796, -2290, -1027, -1770, -1100, -2025, -1277, -1388, -1367, -1534, -947, -1461, -972, -1524, -999, -1222, -1020, -1172, -815, -987, -992, -1371, -1216, -1006, -1289, -1094, -744, -1268, -755, -1293, -862, -923, -905, -984, -678, -1051, -685, -1050, -1087, -985, -1062, -679, -989, -641, -1127, -976, -762, -654, -890, -806, -833, -1091, -706, -629, -621, -806, -640, -812, -775, -634, -779, -543, -996, -565, -1075, -580, -546, -611, -572, -619, -760, -290, -879, -526, -823, -462, -795, -253, -553, -415, -589, -439, -533, -340, -692, -935, -505, -772, -702, -1131, -263, -306, -971, -483, -445, -74, -555, -548, -614, -129, -693, -234, -396, -246, -475, -250, -265, -404, -376, -514, -417, -510, -300, -313, -334, -664, -463, -814, -386, -704, -337, -615, -234, -201, -233, -239, -167, -567, -203, -619, -147, -415, -115, -352, -166, -750, -171, -761, -270, -879, -264, -903, -367, -744, 43, -475, 14, -653, 43, -670, 11, -448, -59, -521, -126, -119, -155, -613, -42, -863, -27, -931, 136, -483, 183, -468, 55, -298, 55, -304, 313, -609, 313, -720, 322, -167, 100, -541, -3, -119, -111, -187, 233, -236, 260, -234, 26, -165, 134, -45, -40, -549, 360, -203, 378, -388, 450, -383, 275, 20, 182, -103, 246, -111, 431, 37, 462, -146, 487, -157, -284, -59, 503, -184, 24, 53, -3, 54, 122, 259, 333, 66, 484, 104, 436, 68, 195, 116, 190, 206, 269, -9, 482, 352, 382, 285, 399, 277, 452, 256, 69, 186, 13, 297, -13, 259, -95, 30, 56, 394, 196, 425, 205, 456, 281, 577, 15, 191, 375, 290, 407, 576, -56, 227, 544, 405, 0, 549, -92, 528, -229, 351, -245, 338, -362, 435, 167, 527, -75, 302, 91, 824, 129, 599, 496, 679, 186, 749, 153, 737, -281, 600, -348, 615, -236, 769, 41, 881, 38, 890, -220, 841, -357, 883, -393, 903, -634, 474, -444, 850, -175, 678, -493, 242, -519, 785, -714, 582, -541, 366, -543, 434, -597, 500, -765, 222, -702, 917, -743, 962, -869, 501, -899, 548, -379, 200, -435, 157, -819, 214, -861, 157, -614, 40, -632, 94, -883, -54, -741, 516, -501, 298, -614, -171, -870, -161, -865, -23, -818, 93, -1015, -267, -662, -359, -549, 2, -442, -121, -377, 0, -227, 33, -414, -126, -129, 212, -934, 34, -1082, -282, -1119, -268, -710, -825, -420, -191, -1076, -928, -917, -93, -628, -358, 97, 7, -206, -393, -101, 24, -203, 38, -168, 83, -599, -423, -279, 426, -700, 118, -75, 206, -981, -673, -680, 417, -367, 37, -279, 474, -129, -318, 319, 296, -626, -39, 343, 602, -696, -39, -303, 940, 104, 233, -380, 137, -36, 269, -75, -214, 120, 43, -529, -477, 459, 164, -202, -229, -49, -167, 609, 792, 98, -220, 915, 148, 293, 283, 869, 91, 575, 394, 326, -78, 717, 67, 365, -323, 616, -36, 731, 27, 619, 238, 632, 273, 448, 99, 801, 476, 869, 273, 685, 64, 789, 72, 1021, 217, 793, 459, 734, 360, 646, 480, 360, 322, 429, 464, 638, 430, 756, 363, 1000, 404, 683, 528, 602, 615, 655, 413, 946, 687, 937, 602, 904, 604, 555, 737, 786, 662, 467, 654, 362, 589, 929, 710, 498, 478, 415, 420, 693, 883, 813, 683, 781, 925, 913, 939, 726, 732, 491, 853, 531, 948, 734, 963, 315, 808, 761, 755, 1144, 760, 655, 1076, 826, 1057, 1091, 838, 1003, 808, 1047, 1133, 659, 1101, 992, 1050, 1074, 1075,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -