Static kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount

Source
pub unsafe static kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount: &'static CFString
Available on crate feature VTDecompressionProperties only.
Expand description

Requests that the VTDecompressionSession use the value provided as a minimum buffer count for its output CVPixelBufferPool, not releasing buffers while the number in use is below this level.

This property effectively requests that the kCVPixelBufferPoolMinimumBufferCountKey key be used for the creation of the output CVPixelBufferPool.

For general playback cases, standard CVPixelBufferPool age-out behaviour should be sufficient and this property should not be needed. This property should only be used in unusual playback scenarios where a peak pool level is known, and the potential memory overhead is an acceptable tradeoff for avoiding possible buffer reallocation.

Setting this property to NULL or passing in the value 0 will clear this setting and remove the minimum buffer count.

Setting this property while a VTDecompressionSession is in use will result in the creation of a new CVPixelBufferPool. This will cause new buffers to be allocated, and existing buffers to be deallocated when they are released.

See also Apple’s documentation