Struct libwebp_sys::WebPYUVABuffer
source · [−]#[repr(C)]pub struct WebPYUVABuffer {
pub y: *mut u8,
pub u: *mut u8,
pub v: *mut u8,
pub a: *mut u8,
pub y_stride: c_int,
pub u_stride: c_int,
pub v_stride: c_int,
pub a_stride: c_int,
pub y_size: usize,
pub u_size: usize,
pub v_size: usize,
pub a_size: usize,
}Expand description
view as YUVA
Fields
y: *mut u8pointer to luma samples
u: *mut u8pointer to chroma U samples
v: *mut u8pointer to chroma V samples
a: *mut u8pointer to alpha samples
y_stride: c_intluma stride
u_stride: c_intchroma U stride
v_stride: c_intchroma V stride
a_stride: c_intalpha stride
y_size: usizeluma plane size
u_size: usizechroma U plane size
v_size: usizechroma V planes size
a_size: usizealpha-plane size
Trait Implementations
sourceimpl Clone for WebPYUVABuffer
impl Clone for WebPYUVABuffer
sourcefn clone(&self) -> WebPYUVABuffer
fn clone(&self) -> WebPYUVABuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WebPYUVABuffer
impl Debug for WebPYUVABuffer
impl Copy for WebPYUVABuffer
Auto Trait Implementations
impl RefUnwindSafe for WebPYUVABuffer
impl !Send for WebPYUVABuffer
impl !Sync for WebPYUVABuffer
impl Unpin for WebPYUVABuffer
impl UnwindSafe for WebPYUVABuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more