Struct ravif::Config [−][src]
pub struct Config { pub quality: f32, pub alpha_quality: f32, pub speed: u8, pub premultiplied_alpha: bool, pub color_space: ColorSpace, pub threads: usize, }
Expand description
Encoder configuration struct
See encode_rgba
Fields
quality: f32
0-100 scale
alpha_quality: f32
0-100 scale
speed: u8
rav1e preset 1 (slow) 10 (fast but crappy)
premultiplied_alpha: bool
True if RGBA input has already been premultiplied. It inserts appropriate metadata.
color_space: ColorSpace
Which pixel format to use in AVIF file. RGB tends to give larger files.
threads: usize
How many threads should be used (0 = match core count)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EncConfig
impl UnwindSafe for EncConfig
Blanket Implementations
Mutably borrows from an owned value. Read more