JPEG Compression

Reference: Chapter 6 of Steinmetz and Nahrstedt

Motivations:

  1. Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for storage and network communications.

  2. The compression ratio of lossless methods (e.g., Huffman, Arithmetic, LZW) is not high enough for image and video compression, especially when distribution of pixel values is relatively flat.


1. What is JPEG?


2. JPEG overview


3. Major Steps


3a. Discrete Cosine Transform (DCT)


Further Exploration

Try the Interactive FFT examples and the Interactive DCT examples.
Note: You must download the MathCad browser in order to use these examples.

3b. Quantization

Uniform quantization

Quantization Tables


3c. Zig-zag Scan


3d. Differential Pulse Code Modulation (DPCM) on DC component


3e. Run Length Encode (RLE) on AC components


3f. Entropy Coding


4. Overview of the JPEG bitstream


5. Various JPEG Modes