pub struct AnimationMuxOverrides {
pub minimize_size: Option<bool>,
pub allow_mixed: Option<bool>,
pub kmin: Option<i32>,
pub kmax: Option<i32>,
}Expand description
Optional animation-mux configuration passed to libwebp.
kmin and kmax form one setting: provide both to choose a key-frame
policy, or neither to retain libwebp’s initialized behavior. The canonical
(0, 0) disables inserted key frames and (0, 1) makes every frame a key
frame. For kmax >= 2, libwebp requires kmin < kmax,
kmin >= kmax / 2 + 1, and a range no wider than 30 frames.
Fields§
§minimize_size: Option<bool>Let libwebp favor a smaller animation over encoding speed.
allow_mixed: Option<bool>Allow libwebp to choose lossless or lossy encoding for each frame.
kmin: Option<i32>Minimum and maximum distance between animation key frames.
kmax: Option<i32>Maximum distance between animation key frames.
Trait Implementations§
Source§impl Clone for AnimationMuxOverrides
impl Clone for AnimationMuxOverrides
Source§fn clone(&self) -> AnimationMuxOverrides
fn clone(&self) -> AnimationMuxOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnimationMuxOverrides
Source§impl Debug for AnimationMuxOverrides
impl Debug for AnimationMuxOverrides
Source§impl Default for AnimationMuxOverrides
impl Default for AnimationMuxOverrides
Source§fn default() -> AnimationMuxOverrides
fn default() -> AnimationMuxOverrides
Returns the “default value” for a type. Read more
impl Eq for AnimationMuxOverrides
Source§impl PartialEq for AnimationMuxOverrides
impl PartialEq for AnimationMuxOverrides
impl StructuralPartialEq for AnimationMuxOverrides
Auto Trait Implementations§
impl Freeze for AnimationMuxOverrides
impl RefUnwindSafe for AnimationMuxOverrides
impl Send for AnimationMuxOverrides
impl Sync for AnimationMuxOverrides
impl Unpin for AnimationMuxOverrides
impl UnsafeUnpin for AnimationMuxOverrides
impl UnwindSafe for AnimationMuxOverrides
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more