Contents

VTDecompressionSession

An object that decompresses video data.

Overview

A decompression session supports the decompression of a sequence of video frames. Here’s the basic workflow:

  1. Create a decompression session by calling VTDecompressionSessionCreate(allocator:formatDescription:decoderSpecification:imageBufferAttributes:outputCallback:decompressionSessionOut:).

  2. Optionally, configure the session with your desired Decompression Properties by calling VTSessionSetProperty(_:key:value:) or VTSessionSetProperties(_:propertyDictionary:).

  3. Decode video frames using VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameRefcon:infoFlagsOut:).

  4. When you finish with the decompression session, call VTDecompressionSessionInvalidate(_:) to tear it down, and call CFRelease to free its memory.

Topics

Creating a Session

Configuring a Session

Decoding Frames

Decoding Multi-Image Frames

Invalidating a Session

Accessing the Type Identifier

Data Types

See Also

Compression