CVPixelBufferPoolFlush(_:_:)
Frees pixel buffers from the pool based on the options that you specify.
Declaration
func CVPixelBufferPoolFlush(_ pool: CVPixelBufferPool, _ options: CVPixelBufferPoolFlushFlags)Parameters
- pool:
The pixel buffer pool to free.
- options:
Set to Excessbuffers to free all unused buffers regardless of their age. Pass an empty set to free only all aged-out buffers, or set it to Excessbuffers to free all unused buffers regardless of age.