Skip to main content

Crate zenavif_parse

Crate zenavif_parse 

Source
Expand description

AVIF container parser (ISOBMFF/MIAF demuxer).

Extracts AV1 payloads, alpha channels, grid tiles, animation frames, and container metadata from AVIF files. Written in safe Rust with fallible allocations throughout.

The primary API is AvifParser, which performs zero-copy parsing by recording byte offsets and resolving data on demand.

A legacy eager API (read_avif) is available behind the eager feature flag.

Modules§

c_api
This crate can be used from C.

Structs§

AV1Config
AV1 codec configuration from the av1C property box.
AV1LayeredImageIndexing
AV1 layered image indexing from the a1lx property box.
AV1Metadata
AV1 sequence header metadata parsed from an OBU bitstream.
AmbientViewingEnvironment
Ambient viewing environment from the amve property box.
AnimationConfigDeprecated
Animation configuration for animated AVIF (avis brand)
AnimationFrameDeprecated
Frame information for animated AVIF
AnimationInfo
Animation metadata from AvifParser
AvifDataDeprecated
AvifParser
Zero-copy AVIF parser backed by a borrowed or owned byte buffer.
CleanAperture
Clean aperture from the clap property box.
ContentColourVolume
Content colour volume from the cclv property box.
ContentLightLevel
Content light level info from the clli property box.
DecodeConfig
Configuration for parsing AVIF files with resource limits and validation options
FrameIterator
Iterator over animation frames.
FrameRef
A single frame from an animated AVIF, with zero-copy when possible.
GridConfig
Grid configuration for tiled/grid-based AVIF images Grid image configuration
ImageMirror
Image mirror from the imir property box.
ImageRotation
Image rotation from the irot property box.
LayerSelector
Layer selector from the lsel property box.
MasteringDisplayColourVolume
Mastering display colour volume from the mdcv property box.
OperatingPointSelector
Operating point selector from the a1op property box.
ParseOptions
Options for parsing AVIF files
PixelAspectRatio
Pixel aspect ratio from the pasp property box.
Unstoppable
A Stop implementation that never stops (no cooperative cancellation).

Enums§

ColorInformation
Colour information from the colr property box.
Error
Describes parser failures.
StopReason
Why an operation was stopped.

Traits§

Stop
Cooperative cancellation check.

Functions§

read_avifDeprecated
Read the contents of an AVIF file
read_avif_with_configDeprecated
Read the contents of an AVIF file with resource limits and cancellation support
read_avif_with_optionsDeprecated
Read the contents of an AVIF file with custom parsing options

Type Aliases§

Result
Result shorthand using our Error enum.