#[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 u8

pointer to luma samples

u: *mut u8

pointer to chroma U samples

v: *mut u8

pointer to chroma V samples

a: *mut u8

pointer to alpha samples

y_stride: c_int

luma stride

u_stride: c_int

chroma U stride

v_stride: c_int

chroma V stride

a_stride: c_int

alpha stride

y_size: usize

luma plane size

u_size: usize

chroma U plane size

v_size: usize

chroma V planes size

a_size: usize

alpha-plane size

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.