VTCopyVideoDecoderExtensionProperties

Function VTCopyVideoDecoderExtensionProperties 

Source
pub unsafe extern "C-unwind" fn VTCopyVideoDecoderExtensionProperties(
    format_desc: &CMFormatDescription,
    media_extension_properties_out: NonNull<*const CFDictionary>,
) -> i32
Available on crate features VTUtilities and objc2-core-media only.
Expand description

Returns information about the Media Extension video decoder required to decode the specified format.

If a Media Extension video decoder will be used to decode the specified format, this function will return information about the Media Extension that will be used.

Parameter formatDesc: The format description for the video format for which information is being requested.

Parameter mediaExtensionPropertiesOut: If a Media Extension video decoder will be used to decode the specified format, this pointer will return a dictionary with a set of properties describing the extension video decoder. The dictionary keys are VTExtensionPropertiesKey values.

Returns: If the function succeeds and a Media Extension video decoder will be used to decode this format, the return value will be noErr. If the function succeeds but a Media Extension video decoder will not be used to decode this format, the return value will be kVTCouldNotFindExtensionErr. If a Media Extension video decoder for the format was found but is disabled, the function will return kVTExtensionDisabledErr. Otherwise, the return value will be an error code describing the failure.

ยงSafety

media_extension_properties_out must be a valid pointer.