---
title: "CVPixelBufferGetBytesPerRowOfPlane(_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvpixelbuffergetbytesperrowofplane(_:_:)"
---

# CVPixelBufferGetBytesPerRowOfPlane(_:_:)

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

## Declaration

```swift
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

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

## See Also

### Inspecting Pixel Buffers

- [CVPixelBufferGetBaseAddress(_:)](corevideo/cvpixelbuffergetbaseaddress(_:).md)
- [CVPixelBufferGetBaseAddressOfPlane(_:_:)](corevideo/cvpixelbuffergetbaseaddressofplane(_:_:).md)
- [CVPixelBufferGetBytesPerRow(_:)](corevideo/cvpixelbuffergetbytesperrow(_:).md)
- [CVPixelBufferGetHeight(_:)](corevideo/cvpixelbuffergetheight(_:).md)
- [CVPixelBufferGetHeightOfPlane(_:_:)](corevideo/cvpixelbuffergetheightofplane(_:_:).md)
- [CVPixelBufferGetWidth(_:)](corevideo/cvpixelbuffergetwidth(_:).md)
- [CVPixelBufferGetWidthOfPlane(_:_:)](corevideo/cvpixelbuffergetwidthofplane(_:_:).md)
- [CVPixelBufferIsPlanar(_:)](corevideo/cvpixelbufferisplanar(_:).md)
- [CVPixelBufferGetPlaneCount(_:)](corevideo/cvpixelbuffergetplanecount(_:).md)
- [CVPixelBufferGetDataSize(_:)](corevideo/cvpixelbuffergetdatasize(_:).md)
- [CVPixelBufferGetPixelFormatType(_:)](corevideo/cvpixelbuffergetpixelformattype(_:).md)
- [CVPixelBufferGetExtendedPixels(_:_:_:_:_:)](corevideo/cvpixelbuffergetextendedpixels(_:_:_:_:_:).md)
- [CVPixelBufferGetIOSurface(_:)](corevideo/cvpixelbuffergetiosurface(_:).md)
- [CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)](corevideo/cvpixelbuffercreateresolvedattributesdictionary(_:_:_:).md)
- [CVPixelBufferIsCompatibleWithAttributes(_:_:)](corevideo/cvpixelbufferiscompatiblewithattributes(_:_:).md)
