pub struct YuvFrame {
pub y: Vec<u8>,
pub u: Vec<u8>,
pub v: Vec<u8>,
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub pts: f64,
}Expand description
YUV frame data structure
Fields§
§y: Vec<u8>Y plane data (luminance)
u: Vec<u8>U plane data (chrominance blue-difference)
v: Vec<u8>V plane data (chrominance red-difference)
width: u32Frame width
height: u32Frame height
format: PixelFormatPixel format
pts: f64Presentation timestamp
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YuvFrame
impl RefUnwindSafe for YuvFrame
impl Send for YuvFrame
impl Sync for YuvFrame
impl Unpin for YuvFrame
impl UnsafeUnpin for YuvFrame
impl UnwindSafe for YuvFrame
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