Contents

CVPixelBufferGetPlaneCount(_:)

Returns number of planes of the pixel buffer.

Declaration

func CVPixelBufferGetPlaneCount(_ pixelBuffer: CVPixelBuffer) -> Int

Parameters

  • 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