Chroma from Luma: Reducing AVIF Color Payload

This article examines the Chroma from Luma (CfL) prediction tool, an intra-prediction mechanism within the AV1 video codec and AVIF image format. You will learn how CfL exploits the correlation between brightness and color components, the mechanics behind cross-component modeling, and how this technique drastically minimizes color channel payload to yield smaller, high-fidelity AVIF files.

Understanding Chroma from Luma (CfL)

The AVIF image format stores image data using color spaces like YUV (or YCbCr), separating an image into one luminance (Y, or luma) channel representing brightness, and two chrominance (U and V, or chroma) channels representing color. Human visual perception is substantially more sensitive to brightness variations and fine edges than to subtle color shifts.

Traditional intra-frame prediction models each channel independently, predicting pixel values based on adjacent reconstructed pixels in the same plane. Chroma from Luma (CfL) is an intra-prediction tool that breaks this independence. Instead of guessing chroma values solely from neighboring chroma pixels, CfL predicts the chroma planes directly from the reconstructed luma pixels of the same block.

The Mechanics of CfL Prediction

CfL relies on the physical reality of image capture: sharp edges, textures, and gradients present in the brightness channel almost always correspond directly to the boundaries and transitions in the color channels.

The tool functions through a streamlined linear model:

  1. Downsampling the Luma Signal: When an image uses chroma subsampling (such as 4:2:0, where chroma resolution is half that of luma), the reconstructed luma pixels are first downsampled to match the chroma block's dimensions.
  2. AC Residual Extraction: The average DC value of the downsampled luma block is calculated and subtracted from each pixel, leaving only the AC variation (the structural details and textures).
  3. Linear Scaling: The prediction for a chroma pixel is formed by multiplying this AC luma variation by a scaling factor (\(\alpha\)) and adding the DC prediction derived from neighboring chroma pixels.
  4. Parameter Signaling: The encoder only needs to determine and transmit the optimal scaling parameter (\(\alpha\)) for the Cb and Cr planes to the bitstream, rather than calculating and transmitting complex directional intra-modes.

How CfL Reduces AVIF Color Payload

By sharing structural data between planes, CfL dramatically slashes the data footprint of the chroma channels:

Through this cross-component modeling, CfL eliminates structural redundancy across color channels, allowing AVIF to achieve sharper color fidelity at a fraction of the data overhead required by legacy formats.