CVPixelBufferIOSurface

Trait CVPixelBufferIOSurface 

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

Source

fn iosurface(&self) -> Option<IOSurface>

Get the underlying IOSurface if the pixel buffer is backed by one

Source

fn is_backed_by_iosurface(&self) -> bool

Check if this pixel buffer is backed by an IOSurface

Implementors§