📄 mp3enc_layer3.cpp
字号:
/*////////////////////////////////////////////////////////////////////////////////// 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) 2002-2005 Intel Corporation. All Rights Reserved.//*/#include "umc_mp3_enc_int.h"namespace UMC { int MP3EncoderInt::huffamInit() { int i; htables[0].linbits = 0; htables[1].linbits = 0; htables[2].linbits = 0; htables[3].linbits = 0; htables[4].linbits = 0; htables[5].linbits = 0; htables[6].linbits = 0; htables[7].linbits = 0; htables[8].linbits = 0; htables[9].linbits = 0; htables[10].linbits = 0; htables[11].linbits = 0; htables[12].linbits = 0; htables[13].linbits = 0; htables[14].linbits = 0; htables[15].linbits = 0; htables[16].linbits = 1; htables[17].linbits = 2; htables[18].linbits = 3; htables[19].linbits = 4; htables[20].linbits = 6; htables[21].linbits = 8; htables[22].linbits = 10; htables[23].linbits = 13; htables[24].linbits = 4; htables[25].linbits = 5; htables[26].linbits = 6; htables[27].linbits = 7; htables[28].linbits = 8; htables[29].linbits = 9; htables[30].linbits = 11; htables[31].linbits = 13; for (i = 0; i < 32; i++) { htables[i].phuftable = NULL; } for (i = 15; i < 32; i++) { htables[i].mav_value = 15 + ((1 << htables[i].linbits) - 1); } for (i = 1; i <= 16; i++) { if (mp3enc_VLCBooks[i]) { ippsVLCEncodeInitAlloc_32s(mp3enc_VLCBooks[i], mp3enc_VLCTableSizes[i], (IppsVLCEncodeSpec_32s**)(&htables[i].phuftable)); } } for (i = 17; i < 24; i++) { htables[i].phuftable = htables[16].phuftable; } ippsVLCEncodeInitAlloc_32s(mp3enc_VLCBooks[24], mp3enc_VLCTableSizes[24], (IppsVLCEncodeSpec_32s**)(&htables[24].phuftable)); for (i = 25; i < 32; i++) { htables[i].phuftable = htables[24].phuftable; } return 1; }}; // namespace UMC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -