pub struct MacosFrame<'a> { /* private fields */ }Available on crate feature
std and macOS only.Expand description
A video frame backed by a CVPixelBuffer.
Only valid within the callback scope.
Implementations§
Source§impl<'a> MacosFrame<'a>
impl<'a> MacosFrame<'a>
Sourcepub fn pixel_buffer_ptr(&self) -> *const c_void
pub fn pixel_buffer_ptr(&self) -> *const c_void
Raw pointer to the backing CVPixelBuffer (escape hatch).
Trait Implementations§
Source§impl<'a> Frame for MacosFrame<'a>
impl<'a> Frame for MacosFrame<'a>
type Timestamp = MacosTimestamp
fn pixel_format(&self) -> PixelFormat
fn size(&self) -> Size
fn planes(&self) -> &[Plane<'_>]
fn timestamp(&self) -> MacosTimestamp
Source§impl MacosFrameExt for MacosFrame<'_>
impl MacosFrameExt for MacosFrame<'_>
fn sample_buffer_ptr(&self) -> *const c_void
Auto Trait Implementations§
impl<'a> Freeze for MacosFrame<'a>
impl<'a> !RefUnwindSafe for MacosFrame<'a>
impl<'a> !Send for MacosFrame<'a>
impl<'a> !Sync for MacosFrame<'a>
impl<'a> Unpin for MacosFrame<'a>
impl<'a> !UnwindSafe for MacosFrame<'a>
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