pub struct AnimationOptions {
pub mode: AnimationMode,
pub multithreaded: bool,
}Expand description
The options of an AnimationDecoder (C: WebPAnimDecoderOptions).
§Examples
use webp::api::decode::{AnimationMode, AnimationOptions};
let options = AnimationOptions { mode: AnimationMode::PremultipliedBgra, multithreaded: true };
assert!(options.multithreaded);Fields§
§mode: AnimationModeThe color mode of the canvas, AnimationMode::Rgba by default.
multithreaded: boolDecodes lossy frames with a second thread (C: use_threads); the
canvases do not change.
Trait Implementations§
Source§impl Clone for AnimationOptions
impl Clone for AnimationOptions
impl Copy for AnimationOptions
Source§impl Debug for AnimationOptions
impl Debug for AnimationOptions
Source§impl Default for AnimationOptions
impl Default for AnimationOptions
impl Eq for AnimationOptions
Source§impl Hash for AnimationOptions
impl Hash for AnimationOptions
Source§impl PartialEq for AnimationOptions
impl PartialEq for AnimationOptions
impl StructuralPartialEq for AnimationOptions
Auto Trait Implementations§
impl Forget for AnimationOptions
impl Freeze for AnimationOptions
impl Move for AnimationOptions
impl RefUnwindSafe for AnimationOptions
impl Send for AnimationOptions
impl Sync for AnimationOptions
impl Unpin for AnimationOptions
impl UnsafeUnpin for AnimationOptions
impl UnwindSafe for AnimationOptions
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