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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software