Function VTDecompressionSessionCanAcceptFormatDescription

Source
pub unsafe extern "C-unwind" fn VTDecompressionSessionCanAcceptFormatDescription(
    session: &VTDecompressionSession,
    new_format_desc: &CMFormatDescription,
) -> bool
Available on crate features VTDecompressionSession and objc2-core-media only.
Expand description

Indicates whether the session can decode frames with the given format description.

Some video decoders are able to accommodate minor changes in format without needing to be completely reset in a new session. This function can be used to test whether a format change is sufficiently minor.