VTDecompressionOutputMultiImageCallback
A callback that the system invokes when multi-image frame decompression completes.
Declaration
typealias VTDecompressionOutputMultiImageCallback = (UnsafeMutableRawPointer?, UnsafeMutableRawPointer?, OSStatus, VTDecodeInfoFlags, __CMTaggedBufferGroup?, CMTime, CMTime) -> VoidParameters
- decompressionOutputMultiImageRefCon:
The callback’s reference value, copied from the
outputMultiImageRefconargument passed to Vtdecompressionsessionsetmultiimagecallback. - sourceFrameRefCon:
The frame’s reference value, copied from the
sourceFrameRefConargument passed to Vtdecompressionsessiondecodeframe(_:samplebuffer:flags:framerefcon:infoflagsout:). - status:
A value of
noErrif decompression succeeds or an error code if decompression fails. - infoFlags:
Contains information about the decode operation:
An Asynchronous flag indicates the decode ran asynchronously.
A Framedropped flag indicates the session dropped a frame.
An Imagebuffermodifiable flag indicates that you can safely modify the image buffer.
- taggedBufferGroup:
Contains the decompressed frame’s multiple images, if decompression was successful; otherwise,
NULL. - presentationTimeStamp:
The frame’s presentation timestamp, which the system determines by calling Cmsamplebuffergetoutputpresentationtimestamp(_:); otherwise, Invalid if the timestamp isn’t available.
- presentationDuration:
The frame’s presentation duration, which the system determines by calling Cmsamplebuffergetoutputduration(_:); otherwise, Invalid if the duration isn’t available.
Discussion
The system doesn’t guarantee that it calls this function in display order.