pub trait CVPixelBufferIOSurface {
// Required methods
fn iosurface(&self) -> Option<IOSurface>;
fn is_backed_by_iosurface(&self) -> bool;
}Expand description
Extension trait for CVPixelBuffer to access IOSurface
Required Methods§
Sourcefn iosurface(&self) -> Option<IOSurface>
fn iosurface(&self) -> Option<IOSurface>
Get the underlying IOSurface if the pixel buffer is backed by one
Sourcefn is_backed_by_iosurface(&self) -> bool
fn is_backed_by_iosurface(&self) -> bool
Check if this pixel buffer is backed by an IOSurface