Skip to main content

Crate zenrav1e

Crate zenrav1e 

Source
Expand description

zenrav1e is an AV1 encoder optimized for still and animated AVIF images.

This is Imazen’s fork of rav1e, focused on compression efficiency for photographic content. Key improvements over upstream:

  • Quantization matrices — frequency-dependent quantization weights (~10% BD-rate gain)
  • Filter intra prediction — 5 recursive filter modes for smooth gradients
  • Lossless mode — mathematically lossless encoding via quantizer: 0
  • Still picture mode — single-frame encoding without video overhead

Also supports full video encoding (intra, inter, switch frames) inherited from upstream rav1e.

§Usage

Encoding is done through the Context struct. Examples on Context::receive_packet show how to create a Context, send frames into it and receive packets of encoded data.

Modules§

color
Color model information
config
Encoder configuration and settings
data
Basic data structures
prelude
Commonly used types and traits.
version
Version information

Structs§

Config
Contains the encoder configuration.
Context
The encoder context.
EncoderConfig
Encoder settings which impact the produced bitstream.
Frame
Represents a raw video frame
Packet
Represents a packet.

Enums§

EncoderStatus
Status that can be returned by Context functions.
InvalidConfig
Enumeration of possible invalid configuration errors.
PixelType
Types that can be used as pixel types.

Traits§

CastFromPrimitive
Trait for casting between primitive types.
Pixel
A type that can be used as a pixel type.