VTDecompressionSession.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new VTDecompressionSession instance.
public static VideoToolbox.VTDecompressionSession? Create(VideoToolbox.VTDecompressionSession.VTDecompressionOutputCallback? outputCallback, CoreMedia.CMVideoFormatDescription formatDescription, VideoToolbox.VTVideoDecoderSpecification? decoderSpecification = default, CoreVideo.CVPixelBufferAttributes? destinationImageBufferAttributes = default);
static member Create : VideoToolbox.VTDecompressionSession.VTDecompressionOutputCallback * CoreMedia.CMVideoFormatDescription * VideoToolbox.VTVideoDecoderSpecification * CoreVideo.CVPixelBufferAttributes -> VideoToolbox.VTDecompressionSession
Parameters
- outputCallback
- VTDecompressionSession.VTDecompressionOutputCallback
- formatDescription
- CMVideoFormatDescription
A format description for the source video frames.
- decoderSpecification
- VTVideoDecoderSpecification
Optionally specify which decoder to use
- destinationImageBufferAttributes
- CVPixelBufferAttributes
Optionally specify any requirements for the decoded frames.
Returns
A new VTDecompressionSession instance if successful, null otherwise.