Function VTDecompressionSessionSetMultiImageCallback

Source
pub unsafe extern "C-unwind" fn VTDecompressionSessionSetMultiImageCallback(
    decompression_session: &VTDecompressionSession,
    output_multi_image_callback: VTDecompressionOutputMultiImageCallback,
    output_multi_image_refcon: *mut c_void,
) -> i32
Available on crate features VTErrors and objc2-core-media and VTDecompressionSession only.
Expand description

Provides a callback capable of receiving multiple images for individual DecodeFrame requests.

The outputMultiImageCallback will be used when the video decoder outputs CMTaggedBufferGroups. When installed, outputMultiImageCallback will also be used when DecodeFrame operations fail and return a nonzero status. The original single-image callback will only be used in the case where the video decoder outputs a CVImageBuffer instead of a CMTaggedBufferGroup. Terminology note: in multi-image decompression, a single video sample (from one CMSampleBuffer) contains a single frame (with one PTS) that is decoded to produce multiple images.