Discussion about this post

User's avatar
Alex's avatar
Jan 10Edited

> Also note that the loss of fidelity is far more rapid for audio than for quantized images!

Interestingly, the image is cheating! The numbers in an image file don't linearly correspond to pixel brightness. The darker values are given way more bins then they should be to reduce the effects of quantization. Without gamma encoding an 8-bit image would have noticeable quantization artifacts in the darker areas. (try setting an image editor to "linear light" and 8-bits)

You can do a similar trick with audio: A-law/Mu-law coding. It was used as an early form of compression for phone systems. It's much simpler then doing anything to the digital bitstream: Instead of needing a computer, it's just a few opamps on either end.

(The same trick also works for other kinds of limited-dynamic range, high-noise channels like analog radio links and tape recorders.)

Raj Vengalil's avatar

When I grow up (I am 45 now), I want to be lcamtuf.

8 more comments...

No posts

Ready for more?