AV1 Block Partition Sizes for AVIF Images

The AVIF image format derives its high compression efficiency directly from the AV1 video codec, which relies on a flexible, hierarchical block-partitioning system to encode image data. This article outlines the complete range of block partition sizes available to the AV1 encoder when compressing AVIF images, detailing the initial superblock structures, the partition tree modes, and the full list of resulting rectangular and square dimensions from 128x128 down to 4x4 pixels.

Superblock Architecture

At the root of AV1 image encoding is the superblock (SB). An AVIF image canvas is first divided into uniform, non-overlapping superblocks. The AV1 specification defines two base superblock sizes:

Once the superblock size is established, the encoder recursively evaluates and partitions the block into smaller sub-blocks based on image complexity.

AV1 Partition Tree Modes

Unlike older codecs (such as VP9 or H.264) that rely strictly on standard quad-tree (four-way) splitting, the AV1 encoder supports a 10-way partition tree structure. This allows the encoder to adaptively match natural edges and textures in images:

  1. NONE: No split; the block remains a single unit.
  2. SPLIT: Standard quad-tree division into four equal sub-blocks (2x2 grid).
  3. HORZ: Horizontal split into two equal rectangles (1:2 aspect ratio).
  4. VERT: Vertical split into two equal rectangles (2:1 aspect ratio).
  5. HORZ_A: Top half is split vertically into two squares; bottom half remains an intact rectangle.
  6. HORZ_B: Top half remains an intact rectangle; bottom half is split vertically into two squares.
  7. VERT_A: Left half is split horizontally into two squares; right half remains an intact rectangle.
  8. VERT_B: Left half remains an intact rectangle; right half is split horizontally into two squares.
  9. HORZ_4: 1:4 aspect ratio split (divides a block horizontally into four thin stripes).
  10. VERT_4: 4:1 aspect ratio split (divides a block vertically into four tall stripes).

Complete List of Available Block Sizes

Through recursive division across these 10 partition modes, the AV1 encoder can produce 22 distinct block dimensions. The absolute smallest dimension supported is 4 pixels.

Square Blocks (1:1 Ratio)

2:1 and 1:2 Rectangular Blocks

4:1 and 1:4 Non-Square Blocks

(Note: 128x32 and 32x128 are not valid partition sizes under the 10-way tree rules, restricting 1:4 and 4:1 partitions to blocks sized 64x64 or smaller).

Application to AVIF Encoding

When encoding an AVIF file, the encoder’s rate-distortion optimization (RDO) algorithm evaluates these sizes dynamically: