📄 mp3dec_layer3_int.c
字号:
/* short bloks */ { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 6, 6, 8, 8, 8, 12, 12, 12, 16, 16, 16, 20, 20, 20, 26, 26, 26, 34, 34, 34, 42, 42, 42, 12, 12, 12 }, /* mixed bloks */ { 4, 4, 4, 4, 4, 4, 6, 6, 4, 4, 4, 6, 6, 6, 8, 8, 8, 12, 12, 12, 16, 16, 16, 20, 20, 20, 26, 26, 26, 34, 34, 34, 42, 42, 42, 12, 12, 12 } } }};static const int sfBandNum[2][3][2] ={ { /* MPEG 2 */ {22, 0}, {0, 13}, {6, 10} }, { /* MPEG 1 */ {22, 0}, {0, 13}, {8, 10} }};/* Q30 */static const int mpeg1_intensity[7] = { 0, 226908352, 393016800, 536870912, 680725056, 846833472, 1073741824,};/* Q30 */static const int mpeg2_intensity[2][16] ={ { 1073741824, 902905664, 759250112, 638450688, 536870912, 451452832, 379625056, 319225344, 268435456, 225726416, 189812528, 159612672, 134217728, 112863208, 94906264, 79806336, }, { 1073741824, 759250112, 536870912, 379625056, 268435456, 189812528, 134217728, 94906264, 67108864, 47453132, 33554432, 23726566, 16777216, 11863283, 8388608, 5931642, }};/* Table 3-B.6. Layer III Preemphasis (p.14 Annex_AB ISO/IEC 11172-3 )*/static short pretab[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 2, 0};/* Table 3-B.9 Layer III coefficients for aliasing reduction (p.36 Annex_AB ISO/IEC 11172-3)*//* Q31 */static int aa_cs[8] = { 1841452032, 1893526528, 2039312000, 2111651968, 2137858176, 2145681024, 2147267200, 2147468928,};/* Q31 */static int aa_ca[8] = { -1104871168, -1013036672, -672972928, -390655616, -203096528, -87972920, -30491194, -7945636,};#define _IMDCT32B_9P 2#define _IMDCT32B_CONST 2#define _IMDCT32B_WIN89 2static const Ipp32s _pIMDCT36CoeffStage3[8] ={ 538921664, /* Q30, max 1.9 */ 1539975680, /* Q28, max 5.73 */ 555809664, /* Q30, max 1.93 */ 2074309888, 592371520, 1270344832, 655398336, 936005888};static const Ipp32s _pIMDCT12x3Coeff[36]={ -280302863, 821806413, -1307305214, 1703713325, -1984016188, 2129111627, -821806413, 1984016188, -1984016188, 821806413, 821806413, -1984016188, -1307305214, 1984016188, 280302863, -2129111627, 821806413, 1703713325, -1703713325, 821806413, 2129111627, 280302863, -1984016188, -1307305214, -1984016188, -821806413, 821806413, 1984016188, 1984016188, 821806413, -2129111627, -1984016188, -1703713325, -1307305214, -821806413, -280302863};static const Ipp32s _pIMDCTWin[3][36]={ { 17331497, 57555973, 108133460, 174813955, 536870935, 412195909, 666376477, 1251956820, 1039402258, -1134308520, -1631581894, -1046001545, -791820975, -1296121091, -554439031, -487758516, -437181022, -396956545, -363743675, -335460810, -310736462, -288622674, -536870920, -249660198, -231892947, -214801826, -198099932, -181525144, -164823238, -147732101, -129964873, -222379216, -91002380, -68888615, -44164253, -15881392 },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -