avif-serialize

Crates.ioavif-serialize
lib.rsavif-serialize
version0.8.2
sourcesrc
created_at2020-08-25 22:56:06.533596
updated_at2024-10-16 01:58:51.851298
descriptionMinimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF)
homepagehttps://lib.rs/avif-serialize
repositoryhttps://github.com/kornelski/avif-serialize
max_upload_size
id280770
size46,466
Kornel (kornelski)

documentation

README

AVIF image serializer (muxer)

Minimal writer for AVIF header structure. This is lean, safe-Rust alternative to libavif. It creates the jungle of MPEG/HEIF/MIAF/ISO-BMFF "boxes" as appropriate for AVIF files. Supports alpha channel embedding.

Compatible with decoders in Chrome 85+, libavif v0.8.1, and Firefox 92. It's used in cavif and other encoders.

Together with rav1e, it allows pure-Rust AVIF image encoding.

Requirements

Usage

  1. Compress pixels using an AV1 encoder, such as rav1e. libaom works too.

  2. Call avif_serialize::serialize_to_vec(av1_data, None, width, height, 8)

See ravif crate sources for example usage.

Commit count: 44

cargo fmt