CVPixelBuffer

An image buffer that holds pixels in main memory.

Overview

A Core Video pixel buffer is an image buffer that holds pixels in main memory. Applications generating frames, compressing or decompressing video, or using Core Image can all make use of Core Video pixel buffers.

Symbols

Inspecting Pixel Buffers

func CVPixelBufferGetBaseAddress(CVPixelBuffer)

Returns the base address of the pixel buffer.

func CVPixelBufferGetBaseAddressOfPlane(CVPixelBuffer, Int)

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

func CVPixelBufferGetBytesPerRow(CVPixelBuffer)

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

func CVPixelBufferGetBytesPerRowOfPlane(CVPixelBuffer, Int)

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

func CVPixelBufferGetHeight(CVPixelBuffer)

Returns the height of the pixel buffer.

func CVPixelBufferGetHeightOfPlane(CVPixelBuffer, Int)

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

func CVPixelBufferGetWidth(CVPixelBuffer)

Returns the width of the pixel buffer.

func CVPixelBufferGetWidthOfPlane(CVPixelBuffer, Int)

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

func CVPixelBufferIsPlanar(CVPixelBuffer)

Determines whether the pixel buffer is planar.

func CVPixelBufferGetPlaneCount(CVPixelBuffer)

Returns number of planes of the pixel buffer.

func CVPixelBufferGetDataSize(CVPixelBuffer)

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

func CVPixelBufferGetPixelFormatType(CVPixelBuffer)

Returns the pixel format type of the pixel buffer.

func CVPixelBufferGetIOSurface(CVPixelBuffer?)

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

func CVPixelBufferCreateResolvedAttributesDictionary(CFAllocator?, CFArray?, UnsafeMutablePointer<CFDictionary?>)

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

func CVPixelBufferGetTypeID()

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

Modifying Pixel Buffers

func CVPixelBufferFillExtendedPixels(CVPixelBuffer)

Fills the extended pixels of the pixel buffer.

Data Types

CVPixelBuffer

A reference to a Core Video pixel buffer object.

CVPlanarComponentInfo

A structure for describing planar components.

CVPlanarPixelBufferInfo

A structure for describing planar buffers.

CVPlanarPixelBufferInfo_YCbCrPlanar

A structure for describing YCbCr planar buffers.

CVPlanarPixelBufferInfo_YCbCrBiPlanar

A structure for describing YCbCr biplanar buffers.

Callbacks

CVPixelBufferReleaseBytesCallback

Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by CVPixelBufferCreateWithBytes(_:_:_:_:_:_:_:_:_:_:) is released.

CVPixelBufferReleasePlanarBytesCallback

Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by CVPixelBufferCreateWithPlanarBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:) is released.

Constants

Pixel Buffer Attribute Keys

The attributes associated with a pixel buffer.

See Also

Related Documentation