How a codec cuts each frame into blocks, from AVC macroblocks to HEVC quadtrees and VVC's binary and ternary splits, and why finer isn't always better.
A codec doesn't handle a whole frame at once. It splits the frame into small blocks and applies different tools (prediction direction, transform size) to each. Why split? A flat region like sky is fine with one large block, but complex regions like a human face or leaves have to be cut finely to preserve detail.
HEVC starts from a 64×64 CTU (Coding Tree Unit) and, where needed, recursively repeats four-way splits: 64→32→16→8. Each leaf node is a CU (Coding Unit), and a CU can be further divided into a PU (Prediction Unit) for prediction and a TU (Transform Unit) for the transform.
A quadtree that only produces squares has limits. A thin, long railing or a horizon line, for example, is cut more efficiently with rectangles than with squares. VVC mixes three kinds of splits.
Thanks to QTBT+T, the CU/PU/TU distinction in VVC all but disappears and a single CU takes on most of the roles — the structure actually became simpler.
From a 128×128 superblock, AV1 supports up to 10 split types, including squares, rectangles, and even T-shaped (4-way partial) splits. The approach differs from HEVC/VVC, but the goal is the same — find the shape that fits the content boundaries as closely as possible.
The finer you split, the better the detail is represented, but signaling the partitioning itself costs bits. Each block also needs its own mode information (prediction direction, reference frame, and so on). So deciding 'how finely to split' is also a job for the RDO from Chapter 2 — each time, the encoder computes whether the quality gained by splitting outweighs the cost (R) of splitting. This is one of the most compute-heavy parts of an encoder.
The fixed-size (16×16) top-level partitioning unit of H.264 and earlier generations. The predecessor of the CTU.
The top-level partitioning unit (CTU) since HEVC and its leaf node (CU).
VVC's partitioning scheme. A mix of quad, binary, and ternary trees.
Subdivisions of a CU in HEVC, for prediction and for the transform respectively.
The top-level partitioning unit of VP9/AV1 (64×64 / 128×128).
What is the fundamental reason VVC added binary (BT) and ternary (TT) splits to HEVC's quadtree?
What is the cost of splitting blocks more finely?