2 ms·
That doesn't really make sense. MP3 takes inputs in signal-space, not frequency-space. You could run: 1. Divide image into blocks (as in JPEG), 2. Perform t
by cperciva 10y ago
That doesn't really make sense. MP3 takes inputs in signal-space, not frequency-space. You could run:
1. Divide image into blocks (as in JPEG),
2. Perform two-dimensional FFTs (as in JPEG),
3. Scan frequency components in zig-zag order (as in JPEG),
4. Run all of the steps of MP3 compression aside from the initial "split audio into blocks" and "perform FFTs" stages.
That would pretty much just give you a less efficient version of JPEG; both JPEG and MP3 take advantage of knowing how much each frequency component "matters" (i.e., how precisely it's necessary to encode the value to avoid artifacts noticed by humans), so using the MP3 quantization logic on frequency amplitudes from images would result in wasting bits by encoding certain amplitudes more precisely than is useful.