Contents

VTCompressionOutputCallback

A callback for the system to invoke when it’s finished compressing a frame.

Declaration

typealias VTCompressionOutputCallback = (UnsafeMutableRawPointer?, UnsafeMutableRawPointer?, OSStatus, VTEncodeInfoFlags, CMSampleBuffer?) -> Void

Parameters

Discussion

When you create a compression session, you pass in a callback function to be called for compressed frames. This function is called in decode order (which is not necessarily the same as display order).

See Also

Callbacks