pub struct AvifImage {
pub width: u32,
pub height: u32,
pub depth: u8,
pub yuv_format: YuvFormat,
pub y_plane: Vec<u8>,
pub u_plane: Vec<u8>,
pub v_plane: Vec<u8>,
pub alpha_plane: Option<Vec<u8>>,
}Expand description
In-memory AVIF image, in planar YCbCr form.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
depth: u8Bit depth: 8, 10, or 12.
yuv_format: YuvFormatChroma subsampling format.
y_plane: Vec<u8>Luma (Y) plane samples. Each row is stride_y bytes wide.
u_plane: Vec<u8>Cb (U) plane samples.
v_plane: Vec<u8>Cr (V) plane samples.
alpha_plane: Option<Vec<u8>>Optional alpha plane samples (same dimensions as luma).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AvifImage
impl RefUnwindSafe for AvifImage
impl Send for AvifImage
impl Sync for AvifImage
impl Unpin for AvifImage
impl UnsafeUnpin for AvifImage
impl UnwindSafe for AvifImage
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