Struct webp_animation::prelude::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§
Trait Implementations§
source§impl Clone for EncodingConfig
impl Clone for EncodingConfig
source§fn clone(&self) -> EncodingConfig
fn clone(&self) -> EncodingConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more