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§
- The newly-created image file + extra info FYI
- Encoder config builder
Enums§
- Handling of color channels in transparent images. For
Encoder::with_alpha_color_mode
- Failures enum
- Matrix coefficients