Skip to main content

cm_sample_buffer_create_cg_image

Function cm_sample_buffer_create_cg_image 

Source
pub unsafe extern "C" fn cm_sample_buffer_create_cg_image(
    sample_buffer: *mut c_void,
    out_status: *mut i32,
) -> *const c_void
Expand description

Build a retained CGImage from the sample buffer’s image buffer via VTCreateCGImageFromCVPixelBuffer. Returns null on failure with out_status set to the underlying OSStatus (0 = noErr on success).