pub struct YuvGrayAlphaImage<'a, T>{
pub y_plane: &'a [T],
pub y_stride: u32,
pub a_plane: &'a [T],
pub a_stride: u32,
pub width: u32,
pub height: u32,
}
Expand description
Represents YUV gray with alpha non-mutable image
Fields§
§y_plane: &'a [T]
§y_stride: u32
Stride here always means components per row.
a_plane: &'a [T]
§a_stride: u32
Stride here always means components per row.
width: u32
§height: u32
Implementations§
Source§impl<T> YuvGrayAlphaImage<'_, T>
impl<T> YuvGrayAlphaImage<'_, T>
pub fn check_constraints(&self) -> Result<(), YuvError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for YuvGrayAlphaImage<'a, T>
impl<'a, T> RefUnwindSafe for YuvGrayAlphaImage<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for YuvGrayAlphaImage<'a, T>where
T: Sync,
impl<'a, T> Sync for YuvGrayAlphaImage<'a, T>where
T: Sync,
impl<'a, T> Unpin for YuvGrayAlphaImage<'a, T>
impl<'a, T> UnwindSafe for YuvGrayAlphaImage<'a, T>where
T: RefUnwindSafe,
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> 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