Struct webp_animation::EncodingConfig
source · [−]pub struct EncodingConfig {
pub encoding_type: EncodingType,
pub quality: f32,
pub method: usize,
}Expand description
Encoding configuration. Can be set for Encoder globally or per frame
Set globally as part of EncoderOptions when using Encoder::new_with_options,
or per frame through Encoder::add_frame_with_config
Fields
encoding_type: EncodingTypeEncoding Type (lossless or lossy). Defaults to lossless
quality: f32Between 0 and 100. For lossy, 0 gives the smallest size and 100 the largest. For lossless, this parameter is the amount of effort put into the compression: 0 is the fastest but gives larger files compared to the slowest, but best, 100.
method: usizeQuality/speed trade-off (0=fast, 6=slower-better)
Implementations
sourceimpl EncodingConfig
impl EncodingConfig
Trait Implementations
sourceimpl Clone for EncodingConfig
impl Clone for EncodingConfig
sourcefn clone(&self) -> EncodingConfig
fn clone(&self) -> EncodingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EncodingConfig
impl Debug for EncodingConfig
Auto Trait Implementations
impl RefUnwindSafe for EncodingConfig
impl Send for EncodingConfig
impl Sync for EncodingConfig
impl Unpin for EncodingConfig
impl UnwindSafe for EncodingConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more