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§
Structs§
- Encoded
Image - The newly-created image file + extra info FYI
- Encoder
- Encoder config builder
Enums§
- Alpha
Color Mode - Handling of color channels in transparent images. For
Encoder::with_alpha_color_mode
- Color
Space - For
Encoder::with_internal_color_space
- Error
- Failures enum
- Matrix
Coefficients - Matrix coefficients