Ch. 6 · HEVC / H.265

한국어日本語
6 min

What Are CTUs and Quadtrees? How HEVC Splits Video for 4K

HEVC replaces H.264's fixed 16×16 macroblock with 64×64 CTUs and a recursive quadtree. See how CU, PU, and TU split a frame, and why VVC later merged them.

HEVC/H.265 was standardized in 2013. Its first goal was to fix the limitation of H.264 we saw at the end of Chapter 5: macroblocks that are too small for 4K.

The biggest difference from H.264 (Chapter 3 review)

Instead of H.264's fixed 16×16 macroblock, HEVC starts from a CTU (Coding Tree Unit) of up to 64×64 and splits it only as much as needed using a recursive quadtree (see c03l02 in Chapter 3). A flat sky can be a single 64×64 block, while a complex face can be split down to 8×8.

H.264HEVC
Largest block16×16 macroblock64×64 CTU
PartitioningLimited sub-partitioningRecursive quadtree (separate CU/PU/TU)
Smallest block4×48×8 (transforms go down to 4×4)
Intra modes935 (33 directional + DC + Planar)

CU / PU / TU — a division of labor among three units

HEVC uses separate units for partitioning, prediction, and transform. This lets the encoder optimize prediction and transform independently, even within the same partition.

CU (partition unit) PU (prediction: 2N×N split) Object above Background below TU (transform: quad split)
CU → PU / TU split — the prediction shape and the transform shape can differ
  • CU (Coding Unit) — a leaf node of the quadtree split. The top-level unit that decides whether a region is intra or inter.
  • PU (Prediction Unit) — a CU divided for prediction. It can be split into rectangles (2N×N and so on) to follow object boundaries.
  • TU (Transform Unit) — a CU divided for transform. It has its own quadtree (RQT), independent of the PU.
In practice — this structure gets simplified again later

Separating CU, PU, and TU is flexible, but it adds considerable signaling overhead and implementation complexity. As mentioned in Chapter 3, VVC introduced QTBT+T and effectively merged the three back into one (the CU). Technology doesn't only get more complicated; sometimes a new generation cleans up the excess complexity of the previous one.

CTUCoding Tree Unit

HEVC's top-level processing unit. Up to 64×64.

CU / PU / TUCoding / Prediction / Transform Unit

Three units that are split independently for partitioning, prediction, and transform, respectively.

RQTResidual Quad-Tree

Residual Quad-Tree. The TU's own quadtree partitioning inside a CU.

Check yourself

Why did HEVC separate the CU, PU, and TU?