Function

CVPixelBufferPoolCreate(_:_:_:_:)

Creates a pixel buffer pool.

Declaration

func CVPixelBufferPoolCreate(_ allocator: CFAllocator?, _ poolAttributes: CFDictionary?, _ pixelBufferAttributes: CFDictionary?, _ poolOut: UnsafeMutablePointer<CVPixelBufferPool?>) -> CVReturn

Parameters

allocator

The allocator to use for allocating this buffer pool. Pass NULL to specify the default allocator.

poolAttributes

A Core Foundation dictionary containing the attributes for this pixel buffer pool. (See Pixel Buffer Pool Attribute Keys.)

pixelBufferAttributes

A Core Foundation dictionary containing the attributes to be used for creating new pixel buffers within the pool. (See Pixel Buffer Attribute Keys.)

poolOut

On output, the newly created pixel buffer pool. Ownership follows the The Create Rule.

Return Value

A Core Video result code. See Core Video Constants for possible values.