pub unsafe extern "C-unwind" fn VTDecompressionSessionCreate(
allocator: Option<&CFAllocator>,
video_format_description: &CMVideoFormatDescription,
video_decoder_specification: Option<&CFDictionary>,
destination_image_buffer_attributes: Option<&CFDictionary>,
output_callback: *const VTDecompressionOutputCallbackRecord,
decompression_session_out: NonNull<*mut VTDecompressionSession>,
) -> i32VTErrors and objc2-core-media and objc2-core-video and VTDecompressionSession only.Expand description
Creates a session for decompressing video frames.
Decompressed frames will be emitted through calls to outputCallback.
Parameter allocator: An allocator for the session. Pass NULL to use the default allocator.
Parameter videoFormatDescription: Describes the source video frames.
Parameter videoDecoderSpecification: Specifies a particular video decoder that must be used.
Pass NULL to let the video toolbox choose a decoder.
Parameter destinationImageBufferAttributes: Describes requirements for emitted pixel buffers.
Pass NULL to set no requirements.
Parameter outputCallback: The callback to be called with decompressed frames.
Pass NULL if and only if you will be calling VTDecompressionSessionDecodeFrameWithOutputHandler for decoding frames.
Parameter decompressionSessionOut: Points to a variable to receive the new decompression session.