Progressive Resolution Refinement in AVIF Explained
This article explores how the AV1 Image File Format (AVIF) handles progressive resolution refinement through layered bitstreams. By leveraging the native spatial scalability features of the underlying AV1 video compression standard alongside the structural encapsulation of the ISO Base Media File Format (ISOBMFF), AVIF enables decoders to display a low-resolution base layer immediately and progressively upscale the image fidelity as subsequent enhancement layers are received and decoded.
AV1 Layered Coding Architecture
At the codec level, AVIF inherits its layering capabilities from the AV1 bitstream specifications. AV1 achieves progressive resolution refinement primarily through spatial scalability.
An AV1 bitstream can be divided into distinct Operating Points (OPs), which represent subsets of the overall bitstream composed of different spatial and temporal layers. For progressive still images, spatial layers are configured such that:
- Base Layer (Spatial Layer 0): Encodes a structurally complete representation of the image at a reduced resolution (e.g., 25% or 50% of the target dimensions).
- Enhancement Layers (Spatial Layer 1+): Encode the residual high-frequency data and differential pixels needed to step the image up to higher intermediate or final native resolutions.
These layers are encapsulated within Open Bitstream Units (OBUs), specifically utilizing sequence headers, frame headers, and tile groups that signal scalability ratios, reference frame assignments, and upscaling parameters.
Encapsulation and ISOBMFF Integration
AVIF integrates this codec-level scalability into the file format container using standard ISOBMFF boxes. Progressive refinement can be specified in two main structural ways:
- Single Layered Item: The primary image item
contains an AV1 bitstream with multiple spatial layers. The AV1
configuration property (
av1C) identifies the number of operating points, indicating whether spatial scalability is active and which operating point delivers the complete, maximum-resolution target. - Item References and Derived Images: Individual
layers can be represented as distinct items linked via an item reference
box (
iref) using reference types such asscal(scalable layer). This explicitly declares the dependency graph between the base image item and the enhancement items, allowing parsers to easily prioritize retrieval.
Decoding and Progressive Rendering Workflow
When an AVIF-compliant parser encounters a progressive image, the refinement workflow operates as follows:
- Header Parsing: The parser reads the
av1Cproperty to discover the available operating points and spatial layer flags. - Base Layer Execution: The decoder extracts and reconstructs Spatial Layer 0. The application immediately displays this base image, either at native dimensions or smoothly interpolated across the viewport to eliminate layout shifts.
- Reference-Based Reconstruction: As additional enhancement OBUs arrive over the network, the decoder uses the already decoded lower-resolution layer as a reference frame. It applies inter-layer prediction, decoding only the residual spatial details.
- Resolution Upgrades: The target surface is updated iteratively with higher-resolution passes until the final spatial layer reaches native visual fidelity.
Through this tight integration of AV1 spatial scalability and ISOBMFF structural signaling, AVIF enables clean, low-latency progressive rendering that reduces perceived loading times over constrained network connections.