Contents

CVPixelBufferGetBytesPerRowOfPlane(_:_:)

Returns the number of bytes per row for a plane at the specified index in the pixel buffer.

Declaration

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

Parameters

  • pixelBuffer:

    The pixel buffer containing the plane.

  • planeIndex:

    The index of the plane whose bytes-per-row value you want to obtain.

Return Value

The number of bytes per row for the plane, or NULL for nonplanar pixel buffers.

See Also

Inspecting Pixel Buffers