CVPixelBufferGetWidthOfPlane(_:_:)
Returns the width of the plane at a given index in the pixel buffer.
Declaration
func CVPixelBufferGetWidthOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> IntParameters
- pixelBuffer:
The pixel buffer whose plane width you want to obtain.
- planeIndex:
The plane index that contains the plane’s width value.
Return Value
The width of the plane, in pixels, or 0 for nonplanar pixel buffers.
See Also
Inspecting Pixel Buffers
CVPixelBufferGetBaseAddress(_:)CVPixelBufferGetBaseAddressOfPlane(_:_:)CVPixelBufferGetBytesPerRow(_:)CVPixelBufferGetBytesPerRowOfPlane(_:_:)CVPixelBufferGetHeight(_:)CVPixelBufferGetHeightOfPlane(_:_:)CVPixelBufferGetWidth(_:)CVPixelBufferIsPlanar(_:)CVPixelBufferGetPlaneCount(_:)CVPixelBufferGetDataSize(_:)CVPixelBufferGetPixelFormatType(_:)CVPixelBufferGetExtendedPixels(_:_:_:_:_:)CVPixelBufferGetIOSurface(_:)CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)CVPixelBufferGetTypeID()