Ch. 3 · Anatomy of a Hybrid Codec

한국어日本語
5 min

Hybrid Codec Pipeline Recap: The Six Steps in One Pass

A one-pass recap of the six-step hybrid encoder pipeline, plus the question that makes every codec generation easier to compare: which box changed?

Here are the six steps from Chapter 3 again, in the order an actual encoder runs them. This picture becomes the 'common coordinate system' when we study each codec in Chapters 5–8.

Source block Predictionintra / inter Residual= source − prediction TransformDCT/DST Quantizationthe only lossy step Entropy codingCABAC, etc. bitstream Inverse quant. +inverse transform→ recon. residual In-loop filter → DPB (cycles back as prediction material)
The full flow of a hybrid encoder — the solid arrow going out is the path to the bitstream, the dashed lines are the reference loop
  • ① Block partitioning — Chooses the processing unit to match content complexity. With each generation, from squares to freer shapes.
  • ② Prediction — Intra (spatial) and inter (temporal). Most of a codec's efficiency comes from here.
  • ③ Transform — Converts the residual to frequency, concentrating the energy in a few coefficients.
  • ④ Quantization — The only lossy step. A single QP adjusts your position on the R-D curve.
  • ⑤ Entropy coding — Removes the remaining statistical redundancy with CABAC and friends from Chapter 2.
  • ⑥ In-loop filter — Polishes the reconstructed quality, raising the reference for predicting the next frames.
How to learn each generation

Each time you meet a new codec from Chapter 5 on, ask yourself, "Which of these six boxes changed?" For example, HEVC differs greatly from AVC in ① (quadtree), ③ (variable transforms), and ⑥ (added SAO), but the overall structure is the same. Seen this way, you can absorb a new standard much faster, as a 'tool upgrade on a familiar skeleton' rather than something entirely new.

Next chapter preview

In Chapter 4 we step away from video for a moment to look at image codecs. JPEG is really a simplified version that uses only half of these six steps (transform, quantization, and entropy coding, with no intra prediction). Understand JPEG well and the video codec's handling of still pictures (intra frames) will make sense almost automatically.

Check yourself

Which of the following 'barely changes from one generation to the next'?