Struct webp_animation::EncodingConfig [−][src]
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: EncodingType
Encoding Type (lossless or lossy). Defaults to lossless
quality: f32
Between 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: usize
Quality/speed trade-off (0=fast, 6=slower-better)
Implementations
Trait Implementations
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
Mutably borrows from an owned value. Read more