Documentation Archive Developer
Search

VideoToolbox Changes for Swift

VideoToolbox

DeclarationProtocols
From
struct VTCompressionSessionOptionFlags : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var BeginFinalPass: VTCompressionSessionOptionFlags { get }
}
OptionSetType
To
struct VTCompressionSessionOptionFlags : OptionSet {
    init(rawValue rawValue: UInt32)
    static var beginFinalPass: VTCompressionSessionOptionFlags { get }
    func intersect(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
    func exclusiveOr(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
    mutating func unionInPlace(_ other: VTCompressionSessionOptionFlags)
    mutating func intersectInPlace(_ other: VTCompressionSessionOptionFlags)
    mutating func exclusiveOrInPlace(_ other: VTCompressionSessionOptionFlags)
    func isSubsetOf(_ other: VTCompressionSessionOptionFlags) -> Bool
    func isDisjointWith(_ other: VTCompressionSessionOptionFlags) -> Bool
    func isSupersetOf(_ other: VTCompressionSessionOptionFlags) -> Bool
    mutating func subtractInPlace(_ other: VTCompressionSessionOptionFlags)
    func isStrictSupersetOf(_ other: VTCompressionSessionOptionFlags) -> Bool
    func isStrictSubsetOf(_ other: VTCompressionSessionOptionFlags) -> Bool
}
extension VTCompressionSessionOptionFlags {
    func union(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
    func intersection(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
    func symmetricDifference(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
}
extension VTCompressionSessionOptionFlags {
    func contains(_ member: VTCompressionSessionOptionFlags) -> Bool
    mutating func insert(_ newMember: VTCompressionSessionOptionFlags) -> (inserted: Bool, memberAfterInsert: VTCompressionSessionOptionFlags)
    mutating func remove(_ member: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags?
    mutating func update(with newMember: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags?
}
extension VTCompressionSessionOptionFlags {
    convenience init()
    mutating func formUnion(_ other: VTCompressionSessionOptionFlags)
    mutating func formIntersection(_ other: VTCompressionSessionOptionFlags)
    mutating func formSymmetricDifference(_ other: VTCompressionSessionOptionFlags)
}
extension VTCompressionSessionOptionFlags {
    convenience init<S : Sequence where S.Iterator.Element == VTCompressionSessionOptionFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: VTCompressionSessionOptionFlags...)
    mutating func subtract(_ other: VTCompressionSessionOptionFlags)
    func isSubset(of other: VTCompressionSessionOptionFlags) -> Bool
    func isSuperset(of other: VTCompressionSessionOptionFlags) -> Bool
    func isDisjoint(with other: VTCompressionSessionOptionFlags) -> Bool
    func subtracting(_ other: VTCompressionSessionOptionFlags) -> VTCompressionSessionOptionFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: VTCompressionSessionOptionFlags) -> Bool
    func isStrictSubset(of other: VTCompressionSessionOptionFlags) -> Bool
}
OptionSet

Declaration
From
static var BeginFinalPass: VTCompressionSessionOptionFlags { get }
To
static var beginFinalPass: VTCompressionSessionOptionFlags { get }

DeclarationProtocols
From
struct VTDecodeFrameFlags : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var _EnableAsynchronousDecompression: VTDecodeFrameFlags { get }
    static var _DoNotOutputFrame: VTDecodeFrameFlags { get }
    static var _1xRealTimePlayback: VTDecodeFrameFlags { get }
    static var _EnableTemporalProcessing: VTDecodeFrameFlags { get }
}
OptionSetType
To
struct VTDecodeFrameFlags : OptionSet {
    init(rawValue rawValue: UInt32)
    static var _EnableAsynchronousDecompression: VTDecodeFrameFlags { get }
    static var _DoNotOutputFrame: VTDecodeFrameFlags { get }
    static var _1xRealTimePlayback: VTDecodeFrameFlags { get }
    static var _EnableTemporalProcessing: VTDecodeFrameFlags { get }
    func intersect(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
    func exclusiveOr(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
    mutating func unionInPlace(_ other: VTDecodeFrameFlags)
    mutating func intersectInPlace(_ other: VTDecodeFrameFlags)
    mutating func exclusiveOrInPlace(_ other: VTDecodeFrameFlags)
    func isSubsetOf(_ other: VTDecodeFrameFlags) -> Bool
    func isDisjointWith(_ other: VTDecodeFrameFlags) -> Bool
    func isSupersetOf(_ other: VTDecodeFrameFlags) -> Bool
    mutating func subtractInPlace(_ other: VTDecodeFrameFlags)
    func isStrictSupersetOf(_ other: VTDecodeFrameFlags) -> Bool
    func isStrictSubsetOf(_ other: VTDecodeFrameFlags) -> Bool
}
extension VTDecodeFrameFlags {
    func union(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
    func intersection(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
    func symmetricDifference(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
}
extension VTDecodeFrameFlags {
    func contains(_ member: VTDecodeFrameFlags) -> Bool
    mutating func insert(_ newMember: VTDecodeFrameFlags) -> (inserted: Bool, memberAfterInsert: VTDecodeFrameFlags)
    mutating func remove(_ member: VTDecodeFrameFlags) -> VTDecodeFrameFlags?
    mutating func update(with newMember: VTDecodeFrameFlags) -> VTDecodeFrameFlags?
}
extension VTDecodeFrameFlags {
    convenience init()
    mutating func formUnion(_ other: VTDecodeFrameFlags)
    mutating func formIntersection(_ other: VTDecodeFrameFlags)
    mutating func formSymmetricDifference(_ other: VTDecodeFrameFlags)
}
extension VTDecodeFrameFlags {
    convenience init<S : Sequence where S.Iterator.Element == VTDecodeFrameFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: VTDecodeFrameFlags...)
    mutating func subtract(_ other: VTDecodeFrameFlags)
    func isSubset(of other: VTDecodeFrameFlags) -> Bool
    func isSuperset(of other: VTDecodeFrameFlags) -> Bool
    func isDisjoint(with other: VTDecodeFrameFlags) -> Bool
    func subtracting(_ other: VTDecodeFrameFlags) -> VTDecodeFrameFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: VTDecodeFrameFlags) -> Bool
    func isStrictSubset(of other: VTDecodeFrameFlags) -> Bool
}
OptionSet

DeclarationProtocols
From
struct VTDecodeInfoFlags : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var Asynchronous: VTDecodeInfoFlags { get }
    static var FrameDropped: VTDecodeInfoFlags { get }
    static var ImageBufferModifiable: VTDecodeInfoFlags { get }
}
OptionSetType
To
struct VTDecodeInfoFlags : OptionSet {
    init(rawValue rawValue: UInt32)
    static var asynchronous: VTDecodeInfoFlags { get }
    static var frameDropped: VTDecodeInfoFlags { get }
    static var imageBufferModifiable: VTDecodeInfoFlags { get }
    func intersect(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
    func exclusiveOr(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
    mutating func unionInPlace(_ other: VTDecodeInfoFlags)
    mutating func intersectInPlace(_ other: VTDecodeInfoFlags)
    mutating func exclusiveOrInPlace(_ other: VTDecodeInfoFlags)
    func isSubsetOf(_ other: VTDecodeInfoFlags) -> Bool
    func isDisjointWith(_ other: VTDecodeInfoFlags) -> Bool
    func isSupersetOf(_ other: VTDecodeInfoFlags) -> Bool
    mutating func subtractInPlace(_ other: VTDecodeInfoFlags)
    func isStrictSupersetOf(_ other: VTDecodeInfoFlags) -> Bool
    func isStrictSubsetOf(_ other: VTDecodeInfoFlags) -> Bool
}
extension VTDecodeInfoFlags {
    func union(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
    func intersection(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
    func symmetricDifference(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
}
extension VTDecodeInfoFlags {
    func contains(_ member: VTDecodeInfoFlags) -> Bool
    mutating func insert(_ newMember: VTDecodeInfoFlags) -> (inserted: Bool, memberAfterInsert: VTDecodeInfoFlags)
    mutating func remove(_ member: VTDecodeInfoFlags) -> VTDecodeInfoFlags?
    mutating func update(with newMember: VTDecodeInfoFlags) -> VTDecodeInfoFlags?
}
extension VTDecodeInfoFlags {
    convenience init()
    mutating func formUnion(_ other: VTDecodeInfoFlags)
    mutating func formIntersection(_ other: VTDecodeInfoFlags)
    mutating func formSymmetricDifference(_ other: VTDecodeInfoFlags)
}
extension VTDecodeInfoFlags {
    convenience init<S : Sequence where S.Iterator.Element == VTDecodeInfoFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: VTDecodeInfoFlags...)
    mutating func subtract(_ other: VTDecodeInfoFlags)
    func isSubset(of other: VTDecodeInfoFlags) -> Bool
    func isSuperset(of other: VTDecodeInfoFlags) -> Bool
    func isDisjoint(with other: VTDecodeInfoFlags) -> Bool
    func subtracting(_ other: VTDecodeInfoFlags) -> VTDecodeInfoFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: VTDecodeInfoFlags) -> Bool
    func isStrictSubset(of other: VTDecodeInfoFlags) -> Bool
}
OptionSet

Declaration
From
static var Asynchronous: VTDecodeInfoFlags { get }
To
static var asynchronous: VTDecodeInfoFlags { get }

Declaration
From
static var FrameDropped: VTDecodeInfoFlags { get }
To
static var frameDropped: VTDecodeInfoFlags { get }

Declaration
From
static var ImageBufferModifiable: VTDecodeInfoFlags { get }
To
static var imageBufferModifiable: VTDecodeInfoFlags { get }

Declaration
From
struct VTDecompressionOutputCallbackRecord {
    var decompressionOutputCallback: VTDecompressionOutputCallback?
    var decompressionOutputRefCon: UnsafeMutablePointer<Void>
    init()
    init(decompressionOutputCallback decompressionOutputCallback: VTDecompressionOutputCallback?, decompressionOutputRefCon decompressionOutputRefCon: UnsafeMutablePointer<Void>)
}
To
struct VTDecompressionOutputCallbackRecord {
    var decompressionOutputCallback: VideoToolbox.VTDecompressionOutputCallback?
    var decompressionOutputRefCon: UnsafeMutableRawPointer?
    init()
    init(decompressionOutputCallback decompressionOutputCallback: VideoToolbox.VTDecompressionOutputCallback?, decompressionOutputRefCon decompressionOutputRefCon: UnsafeMutableRawPointer?)
}

Declaration
From
var decompressionOutputCallback: VTDecompressionOutputCallback?
To
var decompressionOutputCallback: VideoToolbox.VTDecompressionOutputCallback?

Declaration
From
var decompressionOutputRefCon: UnsafeMutablePointer<Void>
To
var decompressionOutputRefCon: UnsafeMutableRawPointer?

DeclarationProtocols
From
struct VTEncodeInfoFlags : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var Asynchronous: VTEncodeInfoFlags { get }
    static var FrameDropped: VTEncodeInfoFlags { get }
}
OptionSetType
To
struct VTEncodeInfoFlags : OptionSet {
    init(rawValue rawValue: UInt32)
    static var asynchronous: VTEncodeInfoFlags { get }
    static var frameDropped: VTEncodeInfoFlags { get }
    func intersect(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
    func exclusiveOr(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
    mutating func unionInPlace(_ other: VTEncodeInfoFlags)
    mutating func intersectInPlace(_ other: VTEncodeInfoFlags)
    mutating func exclusiveOrInPlace(_ other: VTEncodeInfoFlags)
    func isSubsetOf(_ other: VTEncodeInfoFlags) -> Bool
    func isDisjointWith(_ other: VTEncodeInfoFlags) -> Bool
    func isSupersetOf(_ other: VTEncodeInfoFlags) -> Bool
    mutating func subtractInPlace(_ other: VTEncodeInfoFlags)
    func isStrictSupersetOf(_ other: VTEncodeInfoFlags) -> Bool
    func isStrictSubsetOf(_ other: VTEncodeInfoFlags) -> Bool
}
extension VTEncodeInfoFlags {
    func union(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
    func intersection(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
    func symmetricDifference(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
}
extension VTEncodeInfoFlags {
    func contains(_ member: VTEncodeInfoFlags) -> Bool
    mutating func insert(_ newMember: VTEncodeInfoFlags) -> (inserted: Bool, memberAfterInsert: VTEncodeInfoFlags)
    mutating func remove(_ member: VTEncodeInfoFlags) -> VTEncodeInfoFlags?
    mutating func update(with newMember: VTEncodeInfoFlags) -> VTEncodeInfoFlags?
}
extension VTEncodeInfoFlags {
    convenience init()
    mutating func formUnion(_ other: VTEncodeInfoFlags)
    mutating func formIntersection(_ other: VTEncodeInfoFlags)
    mutating func formSymmetricDifference(_ other: VTEncodeInfoFlags)
}
extension VTEncodeInfoFlags {
    convenience init<S : Sequence where S.Iterator.Element == VTEncodeInfoFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: VTEncodeInfoFlags...)
    mutating func subtract(_ other: VTEncodeInfoFlags)
    func isSubset(of other: VTEncodeInfoFlags) -> Bool
    func isSuperset(of other: VTEncodeInfoFlags) -> Bool
    func isDisjoint(with other: VTEncodeInfoFlags) -> Bool
    func subtracting(_ other: VTEncodeInfoFlags) -> VTEncodeInfoFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: VTEncodeInfoFlags) -> Bool
    func isStrictSubset(of other: VTEncodeInfoFlags) -> Bool
}
OptionSet

Declaration
From
static var Asynchronous: VTEncodeInfoFlags { get }
To
static var asynchronous: VTEncodeInfoFlags { get }

Declaration
From
static var FrameDropped: VTEncodeInfoFlags { get }
To
static var frameDropped: VTEncodeInfoFlags { get }

Declaration
From
typealias VTCompressionOutputCallback = (UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>, OSStatus, VTEncodeInfoFlags, CMSampleBuffer?) -> Void
To
typealias VTCompressionOutputCallback = (UnsafeMutableRawPointer?, UnsafeMutableRawPointer?, OSStatus, VTEncodeInfoFlags, CMSampleBuffer?) -> Swift.Void

Declaration
From
typealias VTCompressionOutputHandler = (OSStatus, VTEncodeInfoFlags, CMSampleBuffer?) -> Void
To
typealias VTCompressionOutputHandler = (OSStatus, VTEncodeInfoFlags, CMSampleBuffer?) -> Swift.Void

Declaration
From
func VTCompressionSessionBeginPass(_ session: VTCompressionSession, _ beginPassFlags: VTCompressionSessionOptionFlags, _ reserved: UnsafeMutablePointer<UInt32>) -> OSStatus
To
func VTCompressionSessionBeginPass(_ session: VTCompressionSession, _ beginPassFlags: VTCompressionSessionOptionFlags, _ reserved: UnsafeMutablePointer<UInt32>?) -> OSStatus

Declaration
From
func VTCompressionSessionCreate(_ allocator: CFAllocator?, _ width: Int32, _ height: Int32, _ codecType: CMVideoCodecType, _ encoderSpecification: CFDictionary?, _ sourceImageBufferAttributes: CFDictionary?, _ compressedDataAllocator: CFAllocator?, _ outputCallback: VTCompressionOutputCallback?, _ outputCallbackRefCon: UnsafeMutablePointer<Void>, _ compressionSessionOut: UnsafeMutablePointer<VTCompressionSession?>) -> OSStatus
To
func VTCompressionSessionCreate(_ allocator: CFAllocator?, _ width: Int32, _ height: Int32, _ codecType: CMVideoCodecType, _ encoderSpecification: CFDictionary?, _ sourceImageBufferAttributes: CFDictionary?, _ compressedDataAllocator: CFAllocator?, _ outputCallback: VideoToolbox.VTCompressionOutputCallback?, _ outputCallbackRefCon: UnsafeMutableRawPointer?, _ compressionSessionOut: UnsafeMutablePointer<VTCompressionSession?>) -> OSStatus

Declaration
From
func VTCompressionSessionEncodeFrame(_ session: VTCompressionSession, _ imageBuffer: CVImageBuffer, _ presentationTimeStamp: CMTime, _ duration: CMTime, _ frameProperties: CFDictionary?, _ sourceFrameRefCon: UnsafeMutablePointer<Void>, _ infoFlagsOut: UnsafeMutablePointer<VTEncodeInfoFlags>) -> OSStatus
To
func VTCompressionSessionEncodeFrame(_ session: VTCompressionSession, _ imageBuffer: CVImageBuffer, _ presentationTimeStamp: CMTime, _ duration: CMTime, _ frameProperties: CFDictionary?, _ sourceFrameRefCon: UnsafeMutableRawPointer?, _ infoFlagsOut: UnsafeMutablePointer<VTEncodeInfoFlags>?) -> OSStatus

Declaration
From
func VTCompressionSessionEncodeFrameWithOutputHandler(_ session: VTCompressionSession, _ imageBuffer: CVImageBuffer, _ presentationTimeStamp: CMTime, _ duration: CMTime, _ frameProperties: CFDictionary?, _ infoFlagsOut: UnsafeMutablePointer<VTEncodeInfoFlags>, _ outputHandler: VTCompressionOutputHandler) -> OSStatus
To
func VTCompressionSessionEncodeFrameWithOutputHandler(_ session: VTCompressionSession, _ imageBuffer: CVImageBuffer, _ presentationTimeStamp: CMTime, _ duration: CMTime, _ frameProperties: CFDictionary?, _ infoFlagsOut: UnsafeMutablePointer<VTEncodeInfoFlags>?, _ outputHandler: VideoToolbox.VTCompressionOutputHandler) -> OSStatus

Declaration
From
func VTCompressionSessionEndPass(_ session: VTCompressionSession, _ furtherPassesRequestedOut: UnsafeMutablePointer<DarwinBoolean>, _ reserved: UnsafeMutablePointer<UInt32>) -> OSStatus
To
func VTCompressionSessionEndPass(_ session: VTCompressionSession, _ furtherPassesRequestedOut: UnsafeMutablePointer<DarwinBoolean>?, _ reserved: UnsafeMutablePointer<UInt32>?) -> OSStatus

Declaration
From
func VTCompressionSessionGetTimeRangesForNextPass(_ session: VTCompressionSession, _ timeRangeCountOut: UnsafeMutablePointer<CMItemCount>, _ timeRangeArrayOut: UnsafeMutablePointer<UnsafePointer<CMTimeRange>>) -> OSStatus
To
func VTCompressionSessionGetTimeRangesForNextPass(_ session: VTCompressionSession, _ timeRangeCountOut: UnsafeMutablePointer<CMItemCount>, _ timeRangeArrayOut: UnsafeMutablePointer<UnsafePointer<CMTimeRange>?>) -> OSStatus

Declaration
From
typealias VTDecompressionOutputCallback = (UnsafeMutablePointer<Void>, UnsafeMutablePointer<Void>, OSStatus, VTDecodeInfoFlags, CVImageBuffer?, CMTime, CMTime) -> Void
To
typealias VTDecompressionOutputCallback = (UnsafeMutableRawPointer?, UnsafeMutableRawPointer?, OSStatus, VTDecodeInfoFlags, CVImageBuffer?, CMTime, CMTime) -> Swift.Void

Declaration
From
typealias VTDecompressionOutputHandler = (OSStatus, VTDecodeInfoFlags, CVImageBuffer?, CMTime, CMTime) -> Void
To
typealias VTDecompressionOutputHandler = (OSStatus, VTDecodeInfoFlags, CVImageBuffer?, CMTime, CMTime) -> Swift.Void

Declaration
From
func VTDecompressionSessionCreate(_ allocator: CFAllocator?, _ videoFormatDescription: CMVideoFormatDescription, _ videoDecoderSpecification: CFDictionary?, _ destinationImageBufferAttributes: CFDictionary?, _ outputCallback: UnsafePointer<VTDecompressionOutputCallbackRecord>, _ decompressionSessionOut: UnsafeMutablePointer<VTDecompressionSession?>) -> OSStatus
To
func VTDecompressionSessionCreate(_ allocator: CFAllocator?, _ videoFormatDescription: CMVideoFormatDescription, _ videoDecoderSpecification: CFDictionary?, _ destinationImageBufferAttributes: CFDictionary?, _ outputCallback: UnsafePointer<VTDecompressionOutputCallbackRecord>?, _ decompressionSessionOut: UnsafeMutablePointer<VTDecompressionSession?>) -> OSStatus

Declaration
From
func VTDecompressionSessionDecodeFrame(_ session: VTDecompressionSession, _ sampleBuffer: CMSampleBuffer, _ decodeFlags: VTDecodeFrameFlags, _ sourceFrameRefCon: UnsafeMutablePointer<Void>, _ infoFlagsOut: UnsafeMutablePointer<VTDecodeInfoFlags>) -> OSStatus
To
func VTDecompressionSessionDecodeFrame(_ session: VTDecompressionSession, _ sampleBuffer: CMSampleBuffer, _ decodeFlags: VTDecodeFrameFlags, _ sourceFrameRefCon: UnsafeMutableRawPointer?, _ infoFlagsOut: UnsafeMutablePointer<VTDecodeInfoFlags>?) -> OSStatus

Declaration
From
func VTDecompressionSessionDecodeFrameWithOutputHandler(_ session: VTDecompressionSession, _ sampleBuffer: CMSampleBuffer, _ decodeFlags: VTDecodeFrameFlags, _ infoFlagsOut: UnsafeMutablePointer<VTDecodeInfoFlags>, _ outputHandler: VTDecompressionOutputHandler) -> OSStatus
To
func VTDecompressionSessionDecodeFrameWithOutputHandler(_ session: VTDecompressionSession, _ sampleBuffer: CMSampleBuffer, _ decodeFlags: VTDecodeFrameFlags, _ infoFlagsOut: UnsafeMutablePointer<VTDecodeInfoFlags>?, _ outputHandler: VideoToolbox.VTDecompressionOutputHandler) -> OSStatus

Declaration
From
func VTFrameSiloCallBlockForEachSampleBuffer(_ silo: VTFrameSilo, _ timeRange: CMTimeRange, _ handler: (CMSampleBuffer) -> OSStatus) -> OSStatus
To
func VTFrameSiloCallBlockForEachSampleBuffer(_ silo: VTFrameSilo, _ timeRange: CMTimeRange, _ handler: @escaping (CMSampleBuffer) -> OSStatus) -> OSStatus

Declaration
From
func VTFrameSiloCallFunctionForEachSampleBuffer(_ silo: VTFrameSilo, _ timeRange: CMTimeRange, _ callbackInfo: UnsafeMutablePointer<Void>, _ callback: (UnsafeMutablePointer<Void>, CMSampleBuffer) -> OSStatus) -> OSStatus
To
func VTFrameSiloCallFunctionForEachSampleBuffer(_ silo: VTFrameSilo, _ timeRange: CMTimeRange, _ callbackInfo: UnsafeMutableRawPointer?, _ callback: @escaping (UnsafeMutableRawPointer?, CMSampleBuffer) -> OSStatus) -> OSStatus

Declaration
From
func VTSessionCopyProperty(_ session: VTSession, _ propertyKey: CFString, _ allocator: CFAllocator?, _ propertyValueOut: UnsafeMutablePointer<Void>) -> OSStatus
To
func VTSessionCopyProperty(_ session: VTSession, _ propertyKey: CFString, _ allocator: CFAllocator?, _ propertyValueOut: UnsafeMutableRawPointer?) -> OSStatus

Declaration
From
func VTSessionSetProperty(_ session: VTSession, _ propertyKey: CFString, _ propertyValue: AnyObject) -> OSStatus
To
func VTSessionSetProperty(_ session: VTSession, _ propertyKey: CFString, _ propertyValue: CFTypeRef) -> OSStatus