VTCopyRAWProcessorExtensionProperties

Function VTCopyRAWProcessorExtensionProperties 

Source
pub unsafe extern "C-unwind" fn VTCopyRAWProcessorExtensionProperties(
    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 RAW processor supporting the specified format.

If a Media Extension RAW processor will be used to process 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 RAW processor will be used to process the specified format, this pointer will return a dictionary with a set of properties describing the extension RAW processor. The dictionary keys VTExtensionPropertiesKey values.

Returns: If the function succeeds and a Media Extension RAW processor will be used to process this format, the return value will be noErr. If the function succeeds but a Media Extension RAW processor will not be used to process this format, the return value will be kVTCouldNotFindExtensionErr. If a Media Extension RAW processor 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.