Function

CVPixelBufferGetHeightOfPlane

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

Declaration

size_t CVPixelBufferGetHeightOfPlane(CVPixelBufferRef pixelBuffer, size_t planeIndex);

Parameters

pixelBuffer

The pixel buffer whose plane height you want to obtain.

planeIndex

The index of the plane.

Return Value

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

See Also

Inspecting Pixel Buffers

CVPixelBufferGetBaseAddress

Returns the base address of the pixel buffer.

CVPixelBufferGetBaseAddressOfPlane

Returns the base address of the plane at the specified plane index.

CVPixelBufferGetBytesPerRow

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

CVPixelBufferGetBytesPerRowOfPlane

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

CVPixelBufferGetHeight

Returns the height of the pixel buffer.

CVPixelBufferGetWidth

Returns the width of the pixel buffer.

CVPixelBufferGetWidthOfPlane

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

CVPixelBufferIsPlanar

Determines whether the pixel buffer is planar.

CVPixelBufferGetPlaneCount

Returns number of planes of the pixel buffer.

CVPixelBufferGetDataSize

Returns the data size for contiguous planes of the pixel buffer.

CVPixelBufferGetPixelFormatType

Returns the pixel format type of the pixel buffer.

CVPixelBufferGetExtendedPixels

Returns the amount of extended pixel padding in the pixel buffer.

CVPixelBufferGetIOSurface

Returns the IOSurface backing the pixel buffer, or NULL if it is not backed by an IOSurface.

CVPixelBufferCreateResolvedAttributesDictionary

Resolves an array of CFDictionary objects describing various pixel buffer attributes into a single dictionary.

CVPixelBufferGetTypeID

Returns the Core Foundation type identifier of the pixel buffer type.