pub struct CapturedFrame {
pub width: u32,
pub height: u32,
pub pixel_format: PixelFormat,
pub data: Arc<[u8]>,
}Expand description
A single frame returned by a VideoStream.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
pixel_format: PixelFormatPixel layout of Self::data.
data: Arc<[u8]>Shared-ownership pixel buffer.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Source§fn clone(&self) -> CapturedFrame
fn clone(&self) -> CapturedFrame
Returns a duplicate of the value. Read more
1.0.0 · 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 CapturedFrame
impl Debug for CapturedFrame
Source§impl MatView for CapturedFrame
impl MatView for CapturedFrame
Source§fn pixel_format(&self) -> PixelFormat
fn pixel_format(&self) -> PixelFormat
The pixel format describing the interleaved byte layout.
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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