pub struct VideoFrame {
pub pts: i64,
pub duration: u64,
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub storage: VideoFrameStorage,
}Expand description
One video frame — CPU planes or a GPU handle (Zero-Copy).
Fields§
§pts: i64Presentation timestamp in the stream timebase.
duration: u64Duration in timebase units (0 if unknown).
width: u32Width in pixels.
height: u32Height in pixels.
format: PixelFormatPixel layout.
storage: VideoFrameStorageBacking store.
Trait Implementations§
Source§impl Clone for VideoFrame
impl Clone for VideoFrame
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
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 moreSource§impl Debug for VideoFrame
impl Debug for VideoFrame
impl Eq for VideoFrame
Source§impl PartialEq for VideoFrame
impl PartialEq for VideoFrame
impl StructuralPartialEq for VideoFrame
Auto Trait Implementations§
impl !Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFrame
impl UnwindSafe for VideoFrame
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