img_heif#
HEIF container (HEIC) -- crate root lib/img_heif/lib.rs
img_heif -- HEIF: the ISO BMFF reader, the HEIF reader (HEIC + AVIF items, grids, alpha,
transformations, colour, metadata) and the HEIC writer
[src/img/isobmff.s, heic.s, heic_enc.s]
CODEC the IMGCODEC descriptor (heic_codec)
probe(data, meta) heic_probe (also avif_probe: the AVIF codec reads
through this reader)
decode(data, sf, dec, meta) heic_decode (also avif_decode)
encode(sf, opt, out) heic_encode
Modules: bmff (isobmff.s: boxes, items, extents, properties, references), dec (heic.s: the
reader; HEVC items through img_hevc, AV1 items through img_av1), enc (heic_enc.s: the
writer; HEVC through img_hevc::encode).
img_heif API#
/// the encoder options the HEIC writer honours
HEIC_IOM: u32 = IOM_QUALITY | IOM_LOSSLESS | IOM_CHROMA | IOM_ICC | IOM_E ...
static CODEC: Codecthe codec descriptor [heic_codec]
From lib/img_heif/dec.rs:
fn probe(data: &[u8], meta: &mut ImgMeta) -> boolheic_probe: container walk and image properties into metafn decode(data: &[u8], sf: &mut Surface, dec: &ImgDec, meta: &mut ImgMeta) -> i32heic_decode: decode the primary image (see the file header) into sf
From lib/img_heif/enc.rs:
fn encode<'m>(sf: &Surface, opt: &ImgOpt<'m>, out: &mut Vec<u8>) -> i32heic_encode: the HEIC file of sf (see the file header)