Skip to main content

gamut_avif/
lib.rs

1//! AVIF (AV1 Image File Format) encoder — AV1 intra-frame bitstreams wrapped in an ISOBMFF/MIAF
2//! container.
3//!
4//! Encodes a single still image: 8-bit RGB in, mapped to AV1 identity-matrix 4:4:4 planes and
5//! wrapped as one `av01` item. **Lossless** by default (decoded output is bit-exact to the input);
6//! a lossy quantizer is selected with [`AvifEncoder::with_qindex`]. See [`AvifEncoder`]. The
7//! roadmap (more pixel formats, alpha, HDR, sequences, …) lives in `STATUS.md`.
8//!
9//! This crate is orchestration only: [`gamut_color`] maps pixels to planes, [`gamut_av1`] encodes
10//! the AV1 temporal unit, and [`gamut_isobmff`] writes the container.
11#![forbid(unsafe_code)]
12
13mod encoder;
14
15pub use encoder::AvifEncoder;