pub trait Frame {
type Timestamp: Timestamp;
// Required methods
fn pixel_format(&self) -> PixelFormat;
fn size(&self) -> Size;
fn planes(&self) -> &[Plane<'_>];
fn timestamp(&self) -> Self::Timestamp;
}Expand description
A borrowed video frame. Lifetime tied to callback scope (zero-copy).
Required Associated Types§
Required Methods§
fn pixel_format(&self) -> PixelFormat
fn size(&self) -> Size
fn planes(&self) -> &[Plane<'_>]
fn timestamp(&self) -> Self::Timestamp
Implementors§
Source§impl<'a> Frame for MacosFrame<'a>
Available on macOS and crate feature std only.
impl<'a> Frame for MacosFrame<'a>
Available on macOS and crate feature
std only.