Supported Bit Depths in libavif Image Encoding

This article provides a clear overview of the color bit depths supported by libavif, the official reference library for encoding and decoding AVIF (AV1 Image File Format) images. It explains the capabilities of 8-bit, 10-bit, and 12-bit color depths, helping developers and creators choose the right configuration for their imaging needs.

Supported Bit Depths

The libavif library fully supports three specific bit depths for image encoding:

These options allow libavif to cater to everything from standard web graphics to professional-grade high-dynamic-range (HDR) photography.


8-Bit Encoding

10-Bit Encoding

12-Bit Encoding


Chroma Subsampling and Color Spaces

The supported bit depths (8, 10, and 12-bit) can be paired with various chroma subsampling configurations and color spaces within libavif: