Returns the base address of the plane at the specified plane index.
SDKs
- iOS 4.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Video
Declaration
func CVPixelBufferGetBaseAddressOfPlane(_ pixelBuffer: CVPixel Buffer, _ planeIndex: Int) -> Unsafe Mutable Raw Pointer?
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 CVPixel
function.