pub trait MacosFrameExt {
// Required method
fn pixel_buffer(&self) -> &CVPixelBuffer;
}Available on crate feature
std and macOS only.Expand description
macOS-specific frame data.
Required Methods§
Sourcefn pixel_buffer(&self) -> &CVPixelBuffer
fn pixel_buffer(&self) -> &CVPixelBuffer
Access the underlying CVPixelBuffer.
The buffer is valid for the lifetime of the frame (i.e. the callback
scope). To keep it alive longer, retain it with
CFRetained::retain(pixel_buffer).