Contents

CVPixelBufferGetWidthOfPlane(_:_:)

Returns the width of the plane at a given index in the pixel buffer.

Declaration

func CVPixelBufferGetWidthOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> Int

Parameters

  • 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