pub struct WebpAnimFrame {
pub pixels: Vec<u8>,
pub width: u32,
pub height: u32,
pub timestamp_ms: u32,
pub x_offset: u32,
pub y_offset: u32,
pub blend: bool,
pub dispose: bool,
}Expand description
A single frame within an animated WebP.
Fields§
§pixels: Vec<u8>Raw RGBA pixel data (4 bytes per pixel, row-major).
width: u32Frame width in pixels.
height: u32Frame height in pixels.
timestamp_ms: u32Frame display timestamp in milliseconds.
x_offset: u32X offset on the canvas (must be divisible by 2).
y_offset: u32Y offset on the canvas (must be divisible by 2).
blend: boolWhether to alpha-blend this frame over the previous one.
dispose: boolWhether to dispose (clear to background) the frame area after display.
Trait Implementations§
Source§impl Clone for WebpAnimFrame
impl Clone for WebpAnimFrame
Source§fn clone(&self) -> WebpAnimFrame
fn clone(&self) -> WebpAnimFrame
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WebpAnimFrame
impl RefUnwindSafe for WebpAnimFrame
impl Send for WebpAnimFrame
impl Sync for WebpAnimFrame
impl Unpin for WebpAnimFrame
impl UnsafeUnpin for WebpAnimFrame
impl UnwindSafe for WebpAnimFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more