CVPixelBufferLockBaseAddress

Function CVPixelBufferLockBaseAddress 

Source
pub unsafe extern "C-unwind" fn CVPixelBufferLockBaseAddress(
    pixel_buffer: &CVPixelBuffer,
    lock_flags: CVPixelBufferLockFlags,
) -> CVReturn
Available on crate features CVBase and CVBuffer and CVImageBuffer and CVPixelBuffer and CVReturn only.
Expand description

Description Locks the BaseAddress of the PixelBuffer to ensure that the memory is accessible.

This API ensures that the CVPixelBuffer is accessible in system memory. This should only be called if the base address is going to be used and the pixel data will be accessed by the CPU.

Parameter pixelBuffer: Target PixelBuffer.

Parameter lockFlags: See CVPixelBufferLockFlags.

Returns: kCVReturnSuccess if the lock succeeded, or error code on failure