Topic: Quantization (Read 3490 times)previous topic - next topic

0 Members and 1 Guest are viewing this topic.
• Max A.K.
Quantization
25 November, 2003, 03:54:03 AM
How to calculate the number of bits required to ensure that the quantization error for the tone is within the minimum masking threshold if i know power of the tone and masking threshold?

• NumLOCK
• Developer
Quantization
Reply #1 – 25 November, 2003, 04:18:20 AM
Hi,

Seems simple.

Try Leeloo Chat at http://leeloo.webhop.net

• Max A.K.
Quantization
Quote
Hi,

Seems simple.

• NumLOCK
• Developer
Quantization
Reply #3 – 25 November, 2003, 05:29:26 AM
Quote
Quote
Hi,

Seems simple.

Yes.  This might depend on the codec, but in general if you don't take the minimum value, the quantization noise might get perceptible.
Try Leeloo Chat at http://leeloo.webhop.net

• Max A.K.
Quantization
Reply #4 – 26 November, 2003, 04:16:52 AM
Quote
Quote
Quote
Hi,

Seems simple.

Yes.  This might depend on the codec, but in general if you don't take the minimum value, the quantization noise might get perceptible.

Maybe you can give me some references where I can read more about it?

• NumLOCK
• Developer
Quantization
Reply #5 – 26 November, 2003, 04:35:38 AM
Quote
Maybe you can give me some references where I can read more about it?

My apologies, I can't..  because I won't be home until some time

Edit: Since your question was pretty essential, you can probably get away with any good book on psychoacoustics (but I don't know which ones by heart).
Try Leeloo Chat at http://leeloo.webhop.net

• Ivan Dimkovic
• Developer
Quantization
Reply #6 – 26 November, 2003, 05:59:51 AM
The measure we are talking about here is called "perceptual entropy",  and the basic paper where it was described is:

J. D. Johnston, "Estimation of perceptual entropy using noise-masking criteria," in Proc. ICASSP, 1988, pp. 2524--2527.

Basically, for plurality of frequency lines, amount of the bits required to code the bitstream can't be lower than:

PE = SUM (0<i<-numlines) log2(Energy / MaskThr)

PE is a theoretical minimum - and it can't be achieved in true codec (you need some side bits to represent the coding information, etc...)

So, for a real coding system, bits required to code a plurality of signals is most likely to be around:

BITS = p * PE + q

where  p and q are codec dependent parameters..  For example, for MPEG-4 AAC:

BITS = 0.6 * PE + 24 * sqrt (PE)

This is not exact measure, of course - since huffman codebooks are not perfect, and signal statistic might vary from frame to frame, etc..

• Max A.K.
Quantization
Reply #7 – 28 November, 2003, 03:51:17 AM
Quote
The measure we are talking about here is called "perceptual entropy",  and the basic paper where it was described is:

J. D. Johnston, "Estimation of perceptual entropy using noise-masking criteria," in Proc. ICASSP, 1988, pp. 2524--2527.

Basically, for plurality of frequency lines, amount of the bits required to code the bitstream can't be lower than:

PE = SUM (0<i<-numlines) log2(Energy / MaskThr)

PE is a theoretical minimum - and it can't be achieved in true codec (you need some side bits to represent the coding information, etc...)

So, for a real coding system, bits required to code a plurality of signals is most likely to be around:

BITS = p * PE + q

where  p and q are codec dependent parameters..  For example, for MPEG-4 AAC:

BITS = 0.6 * PE + 24 * sqrt (PE)

This is not exact measure, of course - since huffman codebooks are not perfect, and signal statistic might vary from frame to frame, etc..

So if i have one tone (TF) and i know minimum masking threshold (MinT) i need

log2(TF / MinT)  bits to quantize this tone?

• Ivan Dimkovic
• Developer
Quantization
Reply #8 – 28 November, 2003, 11:31:01 AM
Quote
log2(TF / MinT) bits to quantize this tone?

Yep.. actually, this should be the "theoretical minimum" - like with normal entropy.

You also have to add side data necessary to represent the compressed spectrum, like huffman table indexes or tables themselves - also, each huffman codebook has its own performance on different signal statistics, etc..

So, for a particular coding system (like MP3) the formula is little bit more complicated.