Contents

CVPixelBufferGetBaseAddressOfPlane(_:_:)

Returns the base address of the plane at the specified plane index.

Declaration

func CVPixelBufferGetBaseAddressOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> UnsafeMutableRawPointer?

Parameters

  • pixelBuffer:

    The pixel buffer containing the plane whose base address you want to obtain.

  • planeIndex:

    The index of the plane.

Return Value

The base address of the plane, or NULL for nonplanar pixel buffers.

Discussion

Retrieving the base address for a pixel buffer requires that the buffer base address be locked using the CVPixelBufferLockBaseAddress(_:_:) function.

See Also

Inspecting Pixel Buffers