API Differences in VideoToolbox in macOS 14.0

It's more difficult than it used to be to find what changed in Apple SDKs. This page is automatically generated and shows what is new in VideoToolbox in the macOS 14.0 SDK.

Table of Contents

Functions & Methods

public func VTCompressionSessionEncodeMultiImageFrame(_ session: VideoToolbox.VTCompressionSession, taggedBuffers: [CoreMedia.CMTaggedBuffer], presentationTimeStamp: CoreMedia.CMTime, duration: CoreMedia.CMTime, frameProperties: CoreFoundation.CFDictionary?, infoFlagsOut: Swift.UnsafeMutablePointer<VideoToolbox.VTEncodeInfoFlags>?, outputHandler: @escaping VideoToolbox.VTCompressionOutputHandler) -> Darwin.OSStatus
public func VTDecompressionSessionCreate(allocator: CoreFoundation.CFAllocator?, formatDescription videoFormatDescription: CoreMedia.CMVideoFormatDescription, decoderSpecification videoDecoderSpecification: CoreFoundation.CFDictionary?, imageBufferAttributes destinationImageBufferAttributes: CoreFoundation.CFDictionary?, decompressionSessionOut: Swift.UnsafeMutablePointer<VideoToolbox.VTDecompressionSession?>) -> Darwin.OSStatus
public func VTDecompressionSessionDecodeFrame(_ session: VideoToolbox.VTDecompressionSession, sampleBuffer: CoreMedia.CMSampleBuffer, flags decodeFlags: VideoToolbox.VTDecodeFrameFlags, infoFlagsOut: Swift.UnsafeMutablePointer<VideoToolbox.VTDecodeInfoFlags>?, completionHandler: @escaping @Sendable (_ status: Darwin.OSStatus, _ infoFlags: VideoToolbox.VTDecodeInfoFlags, _ imageBuffer: CoreVideo.CVImageBuffer?, _ taggedBuffers: [CoreMedia.CMTaggedBuffer]?, _ presentationTimeStamp: CoreMedia.CMTime, _ presentationDuration: CoreMedia.CMTime) -> Swift.Void) -> Darwin.OSStatus
extern Boolean VTIsStereoMVHEVCEncodeSupported(void)
extern OSStatus VTCompressionSessionEncodeMultiImageFrame(VTCompressionSessionRef _Nonnull session, CMTaggedBufferGroupRef _Nonnull taggedBufferGroup, CMTime presentationTimeStamp, CMTime duration, CFDictionaryRef _Nullable frameProperties, void * _Nullable sourceFrameRefcon, VTEncodeInfoFlags * _Nullable infoFlagsOut)
extern OSStatus VTCompressionSessionEncodeMultiImageFrameWithOutputHandler(VTCompressionSessionRef _Nonnull session, CMTaggedBufferGroupRef _Nonnull taggedBufferGroup, CMTime presentationTimeStamp, CMTime duration, CFDictionaryRef _Nullable frameProperties, VTEncodeInfoFlags * _Nullable infoFlagsOut, VTCompressionOutputHandler _Nonnull outputHandler)
extern Boolean VTIsStereoMVHEVCDecodeSupported(void)
extern OSStatus VTDecompressionSessionSetMultiImageCallback(VTDecompressionSessionRef _Nonnull decompressionSession, VTDecompressionOutputMultiImageCallback _Nonnull outputMultiImageCallback, void * _Nullable outputMultiImageRefcon)
extern OSStatus VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler(VTDecompressionSessionRef _Nonnull session, CMSampleBufferRef _Nonnull sampleBuffer, VTDecodeFrameFlags decodeFlags, VTDecodeInfoFlags * _Nullable infoFlagsOut, VTDecompressionMultiImageCapableOutputHandler _Nonnull multiImageCapableOutputHandler)

Typealiases

typedef void (*VTDecompressionOutputMultiImageCallback)(void * _Nullable, void * _Nullable, OSStatus, VTDecodeInfoFlags, CMTaggedBufferGroupRef _Nullable, CMTime, CMTime)
typedef void (^VTDecompressionMultiImageCapableOutputHandler)(OSStatus, VTDecodeInfoFlags, CVImageBufferRef _Nullable, CMTaggedBufferGroupRef _Nullable, CMTime, CMTime)

Properties & Constants

extern API_UNAVAILABLE(watchos) const CFStringRef kVTDecompressionPropertyKey_GeneratePerFrameHDRDisplayMetadata
extern const CFStringRef _Nonnull kVTDecompressionPropertyKey_RequestedMVHEVCVideoLayerIDs
extern ) const CFStringRef kVTCompressionPropertyKey_RecommendedParallelizationLimit
extern API_UNAVAILABLE(watchos) const CFStringRef kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumFrameCount
extern API_UNAVAILABLE(watchos) const CFStringRef kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumDuration
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_MVHEVCVideoLayerIDs
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_MVHEVCViewIDs
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_MVHEVCLeftAndRightViewIDs
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_HeroEye
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_StereoCameraBaseline
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_HorizontalDisparityAdjustment
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_HasLeftStereoEyeView
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_HasRightStereoEyeView