pub struct CpuVideoFrame {
pub width: u32,
pub height: u32,
pub stride: usize,
pub pixel_format: PixelFormat,
pub pts: Option<i64>,
pub data: Vec<u8>,
}Fields§
§width: u32§height: u32§stride: usize§pixel_format: PixelFormat§pts: Option<i64>§data: Vec<u8>Trait Implementations§
Source§impl Clone for CpuVideoFrame
impl Clone for CpuVideoFrame
Source§fn clone(&self) -> CpuVideoFrame
fn clone(&self) -> CpuVideoFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CpuVideoFrame
impl RefUnwindSafe for CpuVideoFrame
impl Send for CpuVideoFrame
impl Sync for CpuVideoFrame
impl Unpin for CpuVideoFrame
impl UnsafeUnpin for CpuVideoFrame
impl UnwindSafe for CpuVideoFrame
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