Contents

VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler

Decompresses a multi-image frame and calls the specified output handler upon completion.

Declaration

extern OSStatus VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler(VTDecompressionSessionRef session, CMSampleBufferRef sampleBuffer, VTDecodeFrameFlags decodeFlags, VTDecodeInfoFlags *infoFlagsOut, VTDecompressionMultiImageCapableOutputHandler multiImageCapableOutputHandler);

Parameters

  • session:

    The decompression session.

  • sampleBuffer:

    A CMSampleBuffer containing one or more video frames.

  • decodeFlags:

    A bitfield of directives to the decompression session and decoder. The kVTDecodeFrame_EnableAsynchronousDecompression bit indicates whether the video decoder may decompress the frame asynchronously. The kVTDecodeFrame_EnableTemporalProcessing bit indicates whether the decoder may delay calls to the output callback so as to enable processing in temporal (display) order. If both flags are clear, the decompression shall complete and your output callback function will be called before VTDecompressionSessionDecodeFrame returns. If either flag is set, VTDecompressionSessionDecodeFrame may return before the output callback function is called.

  • infoFlagsOut:

    Points to a VTDecodeInfoFlags to receive information about the decode operation. The kVTDecodeInfo_Asynchronous bit may be set if the decode is (or was) running asynchronously. The kVTDecodeInfo_FrameDropped bit may be set if the frame was dropped (synchronously). Pass NULL if you do not want to receive this information.

  • multiImageCapableOutputHandler:

    A block for the system to call when it finished decoding the frame. If the Vtdecompressionsessiondecodeframewithmultiimagecapableoutputhandler call returns an error, the block isn’t called.

Topics

Output Handler

See Also

Decoding Multi-Image Frames