One Logo Pool Ball
CoreVideo · IOS API REFERENCE

CVMutablePixelBuffer.Pool.AllocationAttributes

struct · iOS 26.0+ · SDK 27.1

struct AllocationAttributes

Controls how new pixel buffers are allocated when ``CVMutablePixelBuffer/Pool/mutablePixelBuffer(with:)`` is called.

Members (3)

init · iOS 26.0+

init

TypeScript
static init(allocationThreshold?: (number) | null): CVMutablePixelBuffer_Pool_AllocationAttributes
Swift declaration
init(allocationThreshold: Int? = nil)
get · iOS 26.0+

allocationThreshold

TypeScript
get allocationThreshold(): (number) | null
Swift declaration
var allocationThreshold: Int?

A new pixel buffer will not be allocated if the pool already has this many or more pixel buffers allocated. This does not prevent already-allocated buffers from being recycled. If this causes allocation failure, then ``CVMutablePixelBuffer/Pool/mutablePixelBuffer(allocationThreshold:)`` throws ``CVError/wouldExceedAllocationThreshold``.

set · iOS 26.0+

allocationThreshold

TypeScript
set allocationThreshold(value: (number) | null)
Swift declaration
var allocationThreshold: Int?

A new pixel buffer will not be allocated if the pool already has this many or more pixel buffers allocated. This does not prevent already-allocated buffers from being recycled. If this causes allocation failure, then ``CVMutablePixelBuffer/Pool/mutablePixelBuffer(allocationThreshold:)`` throws ``CVError/wouldExceedAllocationThreshold``.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreVideo types →