VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)
Indicates whether the session can decode frames with the given format description.
Declaration
func VTDecompressionSessionCanAcceptFormatDescription(_ session: VTDecompressionSession, formatDescription newFormatDesc: CMFormatDescription) -> BoolParameters
- session:
The decompression session.
- newFormatDesc:
The Cmformatdescription to test.
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
VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameRefcon:infoFlagsOut:)VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:frameRefcon:infoFlagsOut:)VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:outputHandler:)VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:infoFlagsOut:outputHandler:)VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:completionHandler:)VTDecompressionSessionFinishDelayedFrames(_:)VTDecompressionSessionWaitForAsynchronousFrames(_:)VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)