Contents

VTDecompressionMultiImageCapableOutputHandler

A type alias for callback that the system invokes when it finishes decompressing a frame.

Declaration

typealias VTDecompressionMultiImageCapableOutputHandler = @Sendable (OSStatus, VTDecodeInfoFlags, CVImageBuffer?, __CMTaggedBufferGroup?, CMTime, CMTime) -> Void

Parameters

  • status:

    A value of noErr if decompression succeeds; otherwise, an error code if decompression fails.

  • infoFlags:

    A Vtencodeinfoflags pointer to receive information about the decode operation.

    The Asynchronous bit may be set if the decode is (or was) running asynchronously.

    The Framedropped bit may be set if the frame was dropped (synchronously).

    Pass NULL if you don’t want to receive this information.

  • imageBuffer:

    The decompressed pixel buffer.

  • taggedBufferGroup:

    A Cmtaggedbuffergroupref that contains the multiple images for the decompressed frame, if the decompression succeeds; otherwise, NULL.

  • presentationTimeStamp:

    The frame’s presentation timestamp; otherwise, Invalid if the value isn’t available.

  • presentationDuration:

    The frame’s presentation duration; otherwise, Invalid if the value isn’t available.

Discussion

Pass a callback of this type to VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler to handle the decompressed frame output. The system doesn’t necessarily invoke the callback in display order. If the multi-image decompression call returns an error, the system doesn’t call this block.

See Also

Decoding Multi-Image Frames