pub struct Yuv420Frame<'a> {
pub y: &'a [u8],
pub u: &'a [u8],
pub v: &'a [u8],
pub y_stride: u32,
pub chroma_stride: u32,
pub size: RenderSize,
pub alpha: f32,
pub color: Option<ColorMetadata>,
}Expand description
Borrowed 8-bit planar 4:2:0 source.
Fields§
§y: &'a [u8]Luma bytes including row padding.
u: &'a [u8]Blue-difference chroma bytes including row padding.
v: &'a [u8]Red-difference chroma bytes including row padding.
y_stride: u32Luma row stride.
chroma_stride: u32Chroma row stride shared by U and V.
size: RenderSizeCoded dimensions.
alpha: f32Straight source alpha.
color: Option<ColorMetadata>Optional stream color metadata.
Trait Implementations§
Source§impl<'a> Clone for Yuv420Frame<'a>
impl<'a> Clone for Yuv420Frame<'a>
impl<'a> Copy for Yuv420Frame<'a>
Source§impl<'a> Debug for Yuv420Frame<'a>
impl<'a> Debug for Yuv420Frame<'a>
Source§impl<'a> From<Yuv420Frame<'a>> for YuvFrame<'a>
impl<'a> From<Yuv420Frame<'a>> for YuvFrame<'a>
Source§fn from(frame: Yuv420Frame<'a>) -> Self
fn from(frame: Yuv420Frame<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Yuv420Frame<'a>
impl<'a> RefUnwindSafe for Yuv420Frame<'a>
impl<'a> Send for Yuv420Frame<'a>
impl<'a> Sync for Yuv420Frame<'a>
impl<'a> Unpin for Yuv420Frame<'a>
impl<'a> UnsafeUnpin for Yuv420Frame<'a>
impl<'a> UnwindSafe for Yuv420Frame<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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