pub struct WebpFrame {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
pub duration_ms: u32,
}Expand description
A single decoded WebP frame: a flat RGBA pixel buffer plus its size and (for animations) its display duration.
Fields§
§rgba: Vec<u8>width * height * 4 interleaved [R, G, B, A] bytes in scan-line
(top-to-bottom, left-to-right) order, no stride padding.
width: u32Frame width in pixels.
height: u32Frame height in pixels.
duration_ms: u32Per-frame display duration in milliseconds (the §2.7.1.1 ANMF
frame delay). 0 for a still image.
Trait Implementations§
impl Eq for WebpFrame
impl StructuralPartialEq for WebpFrame
Auto Trait Implementations§
impl Freeze for WebpFrame
impl RefUnwindSafe for WebpFrame
impl Send for WebpFrame
impl Sync for WebpFrame
impl Unpin for WebpFrame
impl UnsafeUnpin for WebpFrame
impl UnwindSafe for WebpFrame
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