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
CVPixelBufferGetBaseAddress(_:)CVPixelBufferGetBytesPerRow(_:)CVPixelBufferGetBytesPerRowOfPlane(_:_:)CVPixelBufferGetHeight(_:)CVPixelBufferGetHeightOfPlane(_:_:)CVPixelBufferGetWidth(_:)CVPixelBufferGetWidthOfPlane(_:_:)CVPixelBufferIsPlanar(_:)CVPixelBufferGetPlaneCount(_:)CVPixelBufferGetDataSize(_:)CVPixelBufferGetPixelFormatType(_:)CVPixelBufferGetExtendedPixels(_:_:_:_:_:)CVPixelBufferGetIOSurface(_:)CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)CVPixelBufferGetTypeID()