Returns the height of the plane at planeIndex in the pixel buffer.
SDKs
- iOS 4.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Video
Declaration
func CVPixelBufferGetHeightOfPlane(_ pixelBuffer: CVPixel Buffer, _ planeIndex: Int) -> Int
Parameters
pixelBuffer
The pixel buffer whose plane height you want to obtain.
planeIndex
The index of the plane.
Return Value
The height of the buffer, in pixels, or 0
for nonplanar pixel buffers.