CVPixelBufferGetPlaneCount(_:)
Returns number of planes of the pixel buffer.
Declaration
func CVPixelBufferGetPlaneCount(_ pixelBuffer: CVPixelBuffer) -> IntParameters
- pixelBuffer:
The pixel buffer whose plane count you want to obtain.
Return Value
The number of planes. Returns 0 for nonplanar pixel buffers.
See Also
Inspecting Pixel Buffers
CVPixelBufferGetBaseAddress(_:)CVPixelBufferGetBaseAddressOfPlane(_:_:)CVPixelBufferGetBytesPerRow(_:)CVPixelBufferGetBytesPerRowOfPlane(_:_:)CVPixelBufferGetHeight(_:)CVPixelBufferGetHeightOfPlane(_:_:)CVPixelBufferGetWidth(_:)CVPixelBufferGetWidthOfPlane(_:_:)CVPixelBufferIsPlanar(_:)CVPixelBufferGetDataSize(_:)CVPixelBufferGetPixelFormatType(_:)CVPixelBufferGetExtendedPixels(_:_:_:_:_:)CVPixelBufferGetIOSurface(_:)CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)CVPixelBufferGetTypeID()