pub type VTCompressionOutputHandler = *mut DynBlock<dyn Fn(i32, VTEncodeInfoFlags, *mut CMSampleBuffer)>;Available on crate features
VTCompressionSession and VTErrors and block2 and objc2-core-media only.Expand description
Prototype for block invoked when frame compression is complete.
When you encode a frame, you pass in a callback block to be called for that compressed frame. This block will be called in decode order (which is not necessarily the same as display order).
Parameter status: noErr if compression was successful; an error code if compression was not successful.
Parameter infoFlags: Contains information about the encode operation.
The kVTEncodeInfo_Asynchronous bit may be set if the encode ran asynchronously.
The kVTEncodeInfo_FrameDropped bit may be set if the frame was dropped.
Parameter sampleBuffer: Contains the compressed frame, if compression was successful and the frame was not dropped;
otherwise, NULL.
See also Appleās documentation