Ch. 3 · Anatomy of a Hybrid Codec

한국어日本語
6 min

What Is Hybrid Video Coding? The Blueprint Behind Every Modern Codec

Since 1974, nearly every video codec has shared one blueprint: prediction plus transform. See the six-step pipeline and why every encoder hides a decoder.

AVC, HEVC, VP9, AV1, VVC, AV2 — the names look completely different, but open them up and they share a remarkably similar skeleton. This structure is called hybrid coding, meaning it combines 'prediction-based coding' with 'transform-based coding'.

① Partitioning ② Prediction ③ Transform ④ Quantization ⑤ Entropy coding → bitstream ⑥ In-loop filter Decoding loop: the picture reconstructed through inverse quantization passes through the filters and becomes the "material for the next prediction" (the reference frame)
The standard pipeline of a hybrid encoder — these six steps are the table of contents for Chapter 3
The most important insight

Inside every encoder is a small decoder. Prediction (②) refers to 'pixels that have already been reconstructed', and what it refers to must be not the original, but the lossy reconstruction the decoder will actually see. That is the feedback loop running ④→⑥→prediction.

What happens if the encoder breaks this rule and predicts from the original? Its view of the video and the decoder's view drift apart. The error accumulates frame after frame until the picture falls apart. This is called drift.

An analogy

A teacher tells a student, 'Memorize this drawing and redraw it exactly next class.' If the teacher assigns the next task based on the student's 'perfect memory of the original', it will keep diverging from the (slightly wrong) drawing the student actually made, and the errors pile up. The right way is for the teacher to look at what the student actually drew when setting the next task. That is why the encoder works from the decoder's point of view.

The redundancy each step handles

StepRedundancy removedLink to Chapter 1 concepts
① Block partitioning-Splits the picture into manageable units (adapting to content)
② Prediction (intra/inter)Spatial and temporal redundancyThe core of Chapter 1's 'why is compression possible?'
③ Transform (DCT, etc.)What remains of spatial redundancyRearranges the residual into frequencies to compact its energy
④ QuantizationPsychovisual redundancyThrows away high-frequency detail people can't see — the source of loss
⑤ Entropy codingStatistical redundancyCABAC and friends from Chapter 2
⑥ In-loop filter-Softens compression artifacts at block edges to improve reference quality
In practice

From AVC (2003) to AV2 (2026), the framework of these six steps itself hasn't changed in over 20 years. What changed are the 'tools inside' each step. Block sizes went from a fixed 16×16 to variable sizes up to 128×128; intra prediction modes grew from 9 to more than 60; the transform grew from a single integer DCT to a choice of several transform kernels. Each time you learn a new generation, organize it by asking "which of these six boxes evolved?" and you won't lose the big picture.

Hybrid codingHybrid coding

The common design of modern video codecs, combining prediction-based coding with transform-based coding.

Decoded Picture Buffer (DPB)Decoded Picture Buffer

The storage that holds reconstructed frames so they can be used as references for prediction.

DriftDrift

The accumulation of error when the encoder's and decoder's reference states diverge.

Reconstruction loopReconstruction loop

The feedback path inside the encoder that mimics the decoder exactly.

Check yourself

Why must the encoder predict from 'pixels reconstructed after quantization' instead of the original?