AV1 IntraBC: Locating Repetitive UI Patterns

The AV1 video codec incorporates a specialized screen content coding feature known as Intra Block Copy (IntraBC) to dramatically improve compression efficiency for synthetic graphics, remote desktop feeds, and application interfaces. This article explains what the IntraBC tool is, its underlying operating principles, and how the search and block vector mechanisms detect and compress identical, repetitive user interface (UI) elements within a single frame.

What Is the IntraBC Tool in AV1?

Traditional intra-prediction predicts pixel values in a current block by extrapolating from the boundary pixels of immediately adjacent, already reconstructed blocks. While effective for natural video with smooth gradients and camera noise, this spatial extrapolation fails to compress screen content efficiently. Modern computer displays and software UIs consist of crisp text, geometric borders, solid colors, and identical icons placed at distant coordinates across the display.

IntraBC bridges this gap by applying the principles of inter-frame motion compensation inside a single frame. Instead of referencing an entirely different frame in time, IntraBC treats the current, partially decoded frame as a reference picture. It allows the encoder to copy matching blocks of pixels from previously decoded regions directly into the current block, bypassing the limitations of edge-based spatial prediction.

How IntraBC Locates Repetitive UI Patterns

To locate and reuse repeating UI components—such as recurring glyphs in text, toolbar buttons, list indicators, or window edges—the IntraBC process relies on a structured sequence of vector search, matching criteria, and vector prediction.

When evaluating a coding block, the AV1 encoder performs a search across the reconstructed areas of the current frame to identify identical or near-identical pixel arrangements.

2. Distortion Metrics and Pattern Matching

During the search stage, candidate blocks within the search window are evaluated using rate-distortion optimization (RDO) alongside distortion metrics such as:

3. Search Range Constraints

The search for matching UI patterns must strictly follow the decoding order:

4. Vector Prediction and Regular Spacing

UI elements often appear in grid-like, evenly spaced layouts (such as rows of menu items or lines of text). AV1 leverages this spatial regularity through block vector prediction: