Skip to main content

Crate zenavif_serialize

Crate zenavif_serialize 

Source
Expand description

§AVIF image serializer (muxer)

§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 cavif for a complete implementation.

Modules§

animated
Animated AVIF container serialization.
constants
grid
Grid (tiled) AVIF image serialization.

Structs§

Av1CBox
Aviffy
Config for the serialization (allows setting advanced image properties).
ChromaSubsampling
Chroma subsampling configuration for AV1 encoding.
ClapBox
Clean Aperture box (clap).
ClliBox
Content Light Level Information box (clli), per ISOBMFF § 12.1.5 / CEA-861.3.
ColrBox
ColourInformationBox
ColrIccBox
ColourInformationBox with ICC profile (colour_type = ‘prof’ or ‘rICC’).
ImirBox
Image Mirror box (imir). NOT a FullBox.
IrotBox
Image Rotation box (irot). NOT a FullBox.
MdcvBox
Mastering Display Colour Volume box (mdcv), per ISOBMFF § 12.1.5 / SMPTE ST 2086.
PaspBox
Pixel Aspect Ratio box (pasp).

Functions§

serialize
Makes an AVIF file given encoded AV1 data (create the data with rav1e)
serialize_to_vec
See serialize for description. This one makes a Vec instead of using io::Write.