Skip to main content

Crate avif_serialize

Crate avif_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ยง

boxes ๐Ÿ”’
constants
writer ๐Ÿ”’

Structsยง

Aviffy
Config for the serialization (allows setting advanced image properties).

Constantsยง

EXIF_TIFF_OFFSET_ZERO ๐Ÿ”’

Functionsยง

exif_extents ๐Ÿ”’
from_array ๐Ÿ”’
looks_like_heif_exif_item ๐Ÿ”’
looks_like_tiff_header ๐Ÿ”’
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.