How does JPEG compress an image? It is the video codec pipeline from Chapter 3 with prediction removed: 8×8 DCT, quantization and Huffman coding, step by step.
JPEG (Joint Photographic Experts Group), standardized in 1992, has survived for more than 30 years and is the most widely used image format in history. Surprisingly, it has almost the same skeleton as the video codec pipeline from Chapter 3. In a sense, video codecs extend JPEG's ideas along the time axis.
JPEG is the 'simplest version' of a video codec. The key difference is that it has no prediction.
If you understand JPEG, you have effectively understood intra-frame (keyframe) coding in video codecs. The intra frames of HEVC and AV1 are close to 'JPEG plus dozens of prediction modes and variable block partitioning'.
Of the 64 coefficients produced by the 8×8 DCT, the one in the top-left corner is the DC coefficient (the average brightness of the block), and the other 63 are AC coefficients (detail). JPEG codes only the DC coefficients differentially between neighboring blocks (DPCM) — this is the only trace of 'prediction' left in JPEG.
JPEG has no in-loop filter like the one you learned about in Chapter 3. That is why the 8×8 grid pattern (blocking artifacts) is so conspicuous in low-quality JPEGs. The deblocking filters introduced by later video codecs were, in part, a correction of this weakness from the JPEG era.
Standardized in 1992, the original block-based DCT lossy image compression format.
The transform coefficient that represents the average brightness of a block. It is coded as a difference from the neighboring block.
The 63 frequency coefficients other than DC. They carry the detail information.
Lossless entropy coding that assigns a whole number of bits to each symbol according to its probability. Used in JPEG's final stage.
What is the most fundamental structural difference between JPEG and the intra frames of modern video codecs?