📄 mp12_tblnew.s
字号:
.include "mp3_def.h"
/////////////////////////////////////////////////////////////////////////////////
// layer2
/////////////////////////////////////////////////////////////////////////////////
//secL2_table section cdata,pm,abs YMEM_TBL_L12_1
secL2_table section idata,word3 ,overlay,abs YMEM_BASE_L12_1
secL2_table
//
primL2_tbl::
//t_nbal0[27+1]
tbl_nbal0::
dw3 4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,0
//t_nbal1[30]
tbl_nbal1::
dw3 4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,
//t_nbal2[8]
tbl_nbal2::
dw3 4,4,3,3,3,3,3,3,
//t_nbal3[12]
tbl_nbal3::
dw3 4,4,3,3,3,3,3,3,3,3,3,3,
//t_nbalMPG2[30]
tbl_nbalMPG2::
dw3 4,4,4,4,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
//int t_alloc0[27][16]
tbl_alloc0::
dw3 0,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17,
dw3 0,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17,
dw3 0,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,
dw3 0,1,2,3,4,5,6,17,0,0,0,0,0,0,0,0,
dw3 0,1,2,3,4,5,6,17,0,0,0,0,0,0,0,0,
dw3 0,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0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
dw3 0,1,2,4,0,0,0,0,0,0,0,0,0,0,0,0,
//double t_scalefactor[64]
tbl_scalefactor::
fix24 1.00000000000000, 0.79370052598410, 0.62996052494744,0.50000000000000,
fix24 0.39685026299205, 0.31498026247372, 0.25000000000000,0.19842513149602,
fix24 0.15749013123686, 0.12500000000000, 0.09921256574801,0.07874506561843,
fix24 0.06250000000000, 0.04960628287401, 0.03937253280921,0.03125000000000,
fix24 0.02480314143700, 0.01968626640461, 0.01562500000000,0.01240157071850,
fix24 0.00984313320230, 0.00781250000000, 0.00620078535925,0.00492156660115,
fix24 0.00390625000000, 0.00310039267963, 0.00246078330058,0.00195312500000,
fix24 0.00155019633981, 0.00123039165029, 0.00097656250000,0.00077509816991,
fix24 0.00061519582514, 0.00048828125000, 0.00038754908495,0.00030759791257,
fix24 0.00024414062500, 0.00019377454248, 0.00015379895629,0.00012207031250,
fix24 0.00009688727124, 0.00007689947814, 0.00006103515625,0.00004844363562,
fix24 0.00003844973907, 0.00003051757813, 0.00002422181781,0.00001922486954,
fix24 0.00001525878906, 0.00001211090890, 0.00000961243477,0.00000762939453,
fix24 0.00000605545445, 0.00000480621738, 0.00000381469727,0.00000302772723,
fix24 0.00000240310869, 0.00000190734863, 0.00000151386361,0.00000120155435,
fix24 0.00000095367432, 0.00000075693181, 0.00000060077718,0.00000000000000,
//double t_c[18] = { 0,
tbl_c::
fix24 0.00000000000,0.66666666667,0.80000000000,0.57142857143,0.88888888889,0.53333333333,
fix24 0.51612903226,0.50793650794,0.50393700788,0.50196078432,0.50097847358,0.50048875856,
fix24 0.50024425990,0.50012210012,0.50006104261,0.50003051944,0.50001525926,0.50000762951,
//double t_d[18] = {
tbl_d::
fix24 0.000000000,0.500000000,0.500000000,0.250000000,0.500000000,0.125000000,
fix24 0.062500000,0.031250000,0.015625000,0.007812500,0.003906250,0.001953125,
fix24 0.0009765625,0.00048828125,0.00024414063,0.00012207031,0.00006103516,0.00003051758,
//float t_dd[18]={
tbl_dd::
fix24 -1.0, -0.5, -0.5, -0.75, -0.5, -0.875,
fix24 -0.9375, -0.96875, -0.984375,-0.992188, -0.996094, -0.998047,
fix24 -0.999023, -0.999512, -0.999756,-0.999878, -0.999939,-0.999969,
//char t_grouping[18]={
tbl_grouping::
dw3 0,3,5,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,
//int t_nlevels[18] = {
tbl_nlevels::
dw3 0,3,7,7,15,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,
//float t_nli[18]={
tbl_nli::
fix24 0, 0.5,0.25,0.25,0.125,0.125,
fix24 0.0625,0.03125,0.015625,0.0078125,0.00390625,0.00195313,
fix24 0.000976563,0.000488281,0.000244141,0.00012207,0.0000610352,0.0000305176,
//int t_bpc[18] = {
tbl_bpc::
dw3 0,5,7,3,10,4,5,6,7,8,9,10,11,12,13,14,15,16
////////////////////////////////////////////////////////////////
//ancL2_table section cdata,pm,abs YMEM_TBL_L12_2
ancL2_table section idata,word3 ,overlay,abs YMEM_BASE_L12_2
ancL2_table
ancL2_tbl::
tbl_bitrateL2::
dw3 32,48,56,64,80,96,112,128,
dw3 160,192,224,256,320,384
//bitrateLSF(0x9b15) same layer3
tbl_FrameSizeL2::
dw3 0, 104, 156, 182, 208, 261, 313, 365, ;freq=44.1Khz
dw3 417,522, 626, 731, 835, 1044, 1253, 0,
dw3 0, 96, 144, 168, 192, 240, 288, 336, ;freq=48Khz
dw3 384,480, 576, 672, 768, 960, 1152, 0,
dw3 0, 144, 216, 252, 288, 360, 432, 504, ;freq=32Khz
dw3 576,720, 864, 1008, 1152, 1440, 1728, 0,
tbl_FrameSizeLSFL2::
dw3 0, 52, 104, 156, 208, 261, 313, 365, ;freq=22.05Khz
dw3 417,522, 626, 731, 835, 940, 1044, 0,
dw3 0, 48, 96, 144, 192, 240, 288, 336, ;freq=24Khz
dw3 384,480, 576, 672, 768, 864, 960, 0,
dw3 0, 72, 144, 216, 288, 360, 432, 504, ;freq=16Khz
dw3 576,720, 864, 1008, 1152, 1296, 1440, 0,
////////////////////////////////////////////////////////////////////////////////
// layer1
/////////////////////////////////////////////////////////////////////////////////
//ancL1_table section cdata,pm ,abs YMEM_BASE_L12_3
ancL1_table section idata,word3,overlay ,abs YMEM_BASE_L12_3
ancL1_table
ancL1_tbl::
tbl_bitrateL1::
dw3 32,64,96,128,160,192,224,256,
dw3 288,320,352,384,416,448
tbl_bitrateLSFL1::
dw3 32,48,56,64,80,96,112,128,
dw3 144,160,176,192,224,256
tbl_FrameSizeL1::
dw3 0, 32, 68, 104, 136, 172, 208, 240 //44.1khz
dw3 276,312, 348, 380, 416, 452, 484, 0
dw3 0, 32, 64, 96, 128, 160, 192, 224 //48khz
dw3 256,288, 320, 352, 384, 416, 448, 0
dw3 0, 48, 96, 144, 192, 240, 288, 336 //32khz
dw3 384,432, 480, 528, 576, 624, 672, 0
tbl_factor::
dw3 0x000000, 0x555555, 0x249249, 0x111111,
dw3 0x084210, 0x041041, 0x020408, 0x010101,
dw3 0x008040, 0x004010, 0x002004, 0x001001,
dw3 0x000800, 0x000400, 0x000200, 0x000000,
tbl_offset::
dw3 0x000000, 0xaaaaab, 0x924925, 0x888889,
dw3 0x842109, 0x820821, 0x810205, 0x808081,
dw3 0x804021, 0x802009, 0x801003, 0x800801,
dw3 0x800401, 0x800201, 0x800101, 0x000000,
tbl_FrameSizeLSFL1::
dw3 0, 68, 104, 120, 136, 172, 208, 240 //22.05khz
dw3 276,312, 348, 380, 416, 484, 556, 0
dw3 0, 64, 96, 112, 128, 160, 192, 224 //24khz
dw3 256,288, 320, 352, 384, 448, 512, 0
dw3 0, 96, 144, 168, 192, 240, 288, 336 //16khz
dw3 384,432, 480, 528, 576, 672, 768, 0
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -