Crate ravif

Source
Expand description
use ravif::*;
let res = Encoder::new()
    .with_quality(70.)
    .with_speed(4)
    .encode_rgba(Img::new(pixels, width, height))?;
std::fs::write("hello.avif", res.avif_file);

Re-exports§

pub use imgref::Img;
pub use rgb::RGB8;
pub use rgb::RGBA8;

Structs§

EncodedImage
The newly-created image file + extra info FYI
Encoder
Encoder config builder

Enums§

AlphaColorMode
Handling of color channels in transparent images. For Encoder::with_alpha_color_mode
ColorSpace
For Encoder::with_internal_color_space
Error
Failures enum
MatrixCoefficients
Matrix coefficients