Contents

CVPixelBufferGetBytesPerRow(_:)

Returns the number of bytes per row of the pixel buffer.

Declaration

func CVPixelBufferGetBytesPerRow(_ pixelBuffer: CVPixelBuffer) -> Int

Parameters

  • pixelBuffer:

    The pixel buffer whose bytes-per-row value you want to obtain.

Return Value

The number of bytes per row of the image data. For planar buffers, this function returns a rowBytes value such that bytesPerRow * height covers the entire image, including all planes.

See Also

Inspecting Pixel Buffers