---
title: "CVPixelBufferGetHeightOfPlane(_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvpixelbuffergetheightofplane(_:_:)"
---

# CVPixelBufferGetHeightOfPlane(_:_:)

Returns the height of the plane at planeIndex in the pixel buffer.

## Declaration

```swift
func CVPixelBufferGetHeightOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> Int
```

## Parameters

- `pixelBuffer`: The pixel buffer whose plane height you want to obtain.
- `planeIndex`: The index of the plane.

## Return Value

Return Value The height of the buffer, in pixels, or 0 for nonplanar pixel buffers.

## See Also

### Inspecting Pixel Buffers

- [CVPixelBufferGetBaseAddress(_:)](corevideo/cvpixelbuffergetbaseaddress(_:).md)
- [CVPixelBufferGetBaseAddressOfPlane(_:_:)](corevideo/cvpixelbuffergetbaseaddressofplane(_:_:).md)
- [CVPixelBufferGetBytesPerRow(_:)](corevideo/cvpixelbuffergetbytesperrow(_:).md)
- [CVPixelBufferGetBytesPerRowOfPlane(_:_:)](corevideo/cvpixelbuffergetbytesperrowofplane(_:_:).md)
- [CVPixelBufferGetHeight(_:)](corevideo/cvpixelbuffergetheight(_:).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)
