---
title: "VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtdecompressionsessioncanacceptformatdescription(_:formatdescription:)"
---

# VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)

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

## Declaration

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

## Parameters

- `session`: The decompression session.
- `newFormatDesc`: The doc://com.apple.documentation/documentation/CoreMedia/CMFormatDescription to test.

## Return Value

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

## Discussion

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:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:frameRefcon:infoFlagsOut:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:completionHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:completionhandler:).md)
- [VTDecompressionSessionFinishDelayedFrames(_:)](videotoolbox/vtdecompressionsessionfinishdelayedframes(_:).md)
- [VTDecompressionSessionWaitForAsynchronousFrames(_:)](videotoolbox/vtdecompressionsessionwaitforasynchronousframes(_:).md)
- [VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)](videotoolbox/vtdecompressionsessioncopyblackpixelbuffer(_:pixelbufferout:).md)
