pub struct DecodedWebp {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
A fully decoded still WebP image: 8-bit RGBA pixels plus dimensions.
rgba is width * height * 4 bytes in scan-line (top-to-bottom,
left-to-right) order, each pixel laid out [R, G, B, A]. This is the
canonical interleaved-RGBA surface
(oxideav_core::PixelFormat::Rgba) the workspace’s image crates
emit, so a VideoFrame wrapper is a single 1-plane copy away.
Fields§
§width: u32Image width in pixels (the §2.7.1 VP8X canvas width, or the
§3.4 VP8L image width for a simple-lossless file).
height: u32Image height in pixels.
rgba: Vec<u8>width * height * 4 interleaved [R, G, B, A] bytes, scan order.
Trait Implementations§
Source§impl Clone for DecodedWebp
impl Clone for DecodedWebp
Source§fn clone(&self) -> DecodedWebp
fn clone(&self) -> DecodedWebp
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 moreSource§impl Debug for DecodedWebp
impl Debug for DecodedWebp
impl Eq for DecodedWebp
Source§impl PartialEq for DecodedWebp
impl PartialEq for DecodedWebp
Source§fn eq(&self, other: &DecodedWebp) -> bool
fn eq(&self, other: &DecodedWebp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodedWebp
Auto Trait Implementations§
impl Freeze for DecodedWebp
impl RefUnwindSafe for DecodedWebp
impl Send for DecodedWebp
impl Sync for DecodedWebp
impl Unpin for DecodedWebp
impl UnsafeUnpin for DecodedWebp
impl UnwindSafe for DecodedWebp
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