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: f320-100 scale
alpha_quality: f320-100 scale
speed: u8rav1e preset 1 (slow) 10 (fast but crappy)
premultiplied_alpha: boolTrue if RGBA input has already been premultiplied. It inserts appropriate metadata.
color_space: ColorSpaceWhich pixel format to use in AVIF file. RGB tends to give larger files.
threads: usizeHow many threads should be used (0 = match core count)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EncConfig
impl Send for EncConfig
impl Sync for EncConfig
impl Unpin for EncConfig
impl UnwindSafe for EncConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more