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