Intra modes, quarter-pixel motion, up to 16 reference frames and weighted prediction: the concrete numbers behind Chapter 3's prediction theory.
Let's see what the intra/inter prediction from Chapter 3 actually looks like in H.264. These numbers become the 'baseline' when we compare against HEVC and AV1 later.
The previous standard (MPEG-2) fixed references at exactly one frame (P) or two (B: past + future). H.264 lets a block pick any of up to 16 past frames as its reference. For example, with flickering lights or a repeating background (say, poles passing by a window), a frame from several frames back can be more similar than the immediately preceding one, and the encoder can find and use it directly.
In fade-in/fade-out scenes, it is more accurate to fetch the reference with its brightness scaled by a fixed ratio than to copy it as-is. H.264 supports weight and offset parameters for exactly this, so the codec itself accommodates a common scene-transition technique in film and broadcast content.
Multiple reference frames help quality, but they multiply the encoder's motion estimation cost by the number of frames. Production encoders (x264) often limit the default to around 2–4 reference frames — using all 16 makes encoding time grow sharply relative to the quality gain. The gap between 'the maximum the standard allows' and 'the value actually used in practice' is a pattern that repeats throughout codec work.
A feature introduced in H.264 that picks the best match among several past frames.
A technique that applies a brightness weight to the reference frame, for fades and similar scenes.
Context-Adaptive Variable-Length Coding. H.264's Huffman-family entropy coding.
In which situation is H.264's multiple-reference-frame feature typically useful?