Contents

VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)

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

Declaration

func VTDecompressionSessionCanAcceptFormatDescription(_ session: VTDecompressionSession, formatDescription newFormatDesc: CMFormatDescription) -> Bool

Parameters

Return Value

true if the decompression session accepts the format description; otherwise, false.

Discussion

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

See Also

Decoding Frames