Skip to main content

Frame

Trait Frame 

Source
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§

Source

fn pixel_format(&self) -> PixelFormat

Source

fn size(&self) -> Size

Source

fn planes(&self) -> &[Plane<'_>]

Source

fn timestamp(&self) -> Self::Timestamp

Implementors§

Source§

impl<'a> Frame for MacosFrame<'a>

Available on macOS and crate feature std only.