AVIF Chroma Subsampling: 4:2:0, 4:2:2, and 4:4:4

The AVIF (AV1 Image File Format) standard offers versatile support for various chroma subsampling formats, primarily 4:2:0, 4:2:2, and 4:4:4, directly derived from the underlying AV1 video codec. Chroma subsampling reduces color information (chrominance) relative to brightness information (luminance) to decrease overall file size without noticeably degrading perceived visual quality. This article breaks down how AVIF implements these subsampling schemes, how each format affects compression and visual fidelity, and when to use each configuration.

Understanding Chroma Subsampling in AVIF

AVIF encodes images using the YCbCr color space, which separates an image into luminance (Y, brightness) and two chrominance channels (Cb and Cr, color). Because human vision is far more sensitive to variations in brightness than in color, AVIF allows encoders to discard color resolution across horizontal and vertical axes to save bandwidth.

How AVIF manages this depends on the AV1 profile used during encoding:


4:2:0 Chroma Subsampling in AVIF

In a 4:2:0 configuration, chroma resolution is halved both horizontally and vertically. For every 2x2 grid of luma samples (four pixels), there is only one Cb sample and one Cr sample, effectively reducing color data to one-quarter of the original resolution.

Implementation and Behavior


4:2:2 Chroma Subsampling in AVIF

In 4:2:2 subsampling, chroma resolution is halved horizontally, but preserved at full resolution vertically. For every four horizontal luma pixels, there are two chroma samples per row.

Implementation and Behavior


4:4:4 Chroma Subsampling in AVIF

The 4:4:4 scheme disables subsampling entirely. Every pixel retains its full, discrete luma and chroma data, maintaining 1:1 color resolution matching the original image.

Implementation and Behavior


Chroma Sample Positioning

Beyond sampling density, AVIF allows explicit signaling of chroma sample locations within the bitstream metadata. AV1 defines whether subsampled chroma points are:

Proper signaling prevents horizontal or vertical color shift (chroma phasing issues) when decoding 4:2:0 and 4:2:2 images, ensuring that colors align accurately with image contours during reconstruction.


Choosing the Right Format