hacking

来自「MP3编码程序和资料」· 代码 · 共 55 行

TXT
55
字号
************************************************************************LAME APIFor a general outline of the code, see the file API.  Also, main.c is a simple front end to libmp3lame.aThe guts of the code are called from lame_encode_buffer().lame_encode_buffer() handles buffering, resampling, filtering, andthen calls lame_encode_frame() for each frame:lame_encode_frame():   l3psycho_anal()        compute masking thresholds   mdct_sub()             compute MDCT coefficients   iteration_loop()       choose scalefactors (via iteration)                          which determine noise shapping, and                           choose best huffman tables for lossless compression   format_bitstream       format the bitstream.  when data+headers are complete,                          output to internal bit buffer.   copy_buffer()          copy internal bit buffer into user's mp3 buffer************************************************************************Avoid using float or double, and instead use: (defined in machine.h).  FLOAT    default: 4 byte floating point.  FLOAT8   default: 8 byte floating point.On some machines, FLOAT8 is actually faster than FLOAT. On some machines, the math routines require FLOAT8, so using FLOATresults in a lot of conversions.   

⌨️ 快捷键说明

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