Function

CVPixelBufferPoolFlush(_:_:)

Frees as many buffers from the pool as possible.

Declaration

func CVPixelBufferPoolFlush(_ pool: CVPixelBufferPool, _ options: CVPixelBufferPoolFlushFlags)

Parameters

pool

The CVPixelBufferPool to be flushed.

options

Set to excessBuffers to free all unused buffers regardless of their age.

Discussion

By default, this function will free all aged out buffers. Setting the kCVPixelBufferPoolFlushExcessBuffers flag will cause this call to free all unused buffers regardless of age.