img_avif#
AVIF -- crate root lib/img_avif/lib.rs
img_avif -- AVIF (AV1 still images in HEIF): the codec entry points and the writer
[src/img/avif.s, avif_enc.s]
probe(data, meta) -> recognised avif_probe = heic_probe
decode(data, sf, dec, meta) -> 0 / ERR_* avif_decode = heic_decode
enc::encode(sf, opt, out) -> 0 / ERR_* avif_encode (the AV1 encoder img_av1::encode)
CODEC avif_codec
Reading is the HEIF reader of img_heif (it handles av01 items, grids, alpha,
transformations, colour and metadata the same way as for HEIC; the AV1 decoder is img_av1).
The dispatcher picks this codec for files with an AVIF brand (img_core::io bmff kind).
Writing: enc (avif_enc.s).
img_avif API#
Re-exports: img_heif::{decode, probe}
/// the encoder options the AVIF writer honours (AVIF_IOM)
AVIF_IOM: u32 = IOM_QUALITY | IOM_LOSSLESS | IOM_CHROMA | IOM_ICC | IOM_E ...
static CODEC: Codecthe codec descriptor [avif_codec: probe, decode, encode (avif_enc.s), IFC_DECODE | IFC_ENCODE, AVIF_IOM]
img_avif modules#
The codec's building blocks (public for the codec test app codectest; see their source headers):
| Module | Content |
|---|---|
img_avif::enc | AVIF writer (AV1 still image in HEIF: one coded colour item, optional alpha) |