摘要 |
A method for encoding digital audio is provided to reduce the number of repetition of quantization loop in which non-linear quantization and Huffman encoding are performed. A quantization loop performing process in a method for encoding digital audio includes the steps of: receiving the number of used bits and the size of early quant(300); non-linear quantizing an MDCT coefficient for the size of input quant, and encoding the quantized coefficients and calculating the number of used bits(310); and judging whether the number of bits calculated at the previous step is smaller than the number of usable bits at this step and larger than the number of bits subtracting an offset value calculated in a predetermined linear function from the number of usable bits(320).
|