CoreVideo Changes for Swift
CoreVideo
Removed CVAttachmentMode
Removed CVPixelBufferLockFlags
Removed CVPixelBufferPoolFlushFlags
Removed kCVPixelBufferLock_ReadOnly
Removed kCVSMPTETimeRunning
Removed kCVSMPTETimeType24
Removed kCVSMPTETimeType25
Removed kCVSMPTETimeType2997
Removed kCVSMPTETimeType2997Drop
Removed kCVSMPTETimeType30
Removed kCVSMPTETimeType30Drop
Removed kCVSMPTETimeType5994
Removed kCVSMPTETimeType60
Removed kCVSMPTETimeValid
Removed kCVTimeIsIndefinite
Removed kCVTimeStampBottomField
Removed kCVTimeStampHostTimeValid
Removed kCVTimeStampIsInterlaced
Removed kCVTimeStampRateScalarValid
Removed kCVTimeStampSMPTETimeValid
Removed kCVTimeStampTopField
Removed kCVTimeStampVideoHostTimeValid
Removed kCVTimeStampVideoTimeValid
Added CVAttachmentMode [enum]
Added CVSMPTETimeFlags.running
Added CVSMPTETimeFlags.valid
Added CVSMPTETimeType [enum]
Added CVSMPTETimeType.type24
Added CVSMPTETimeType.type25
Added CVSMPTETimeType.type2997
Added CVSMPTETimeType.type30
Added CVSMPTETimeType.type5994
Added CVSMPTETimeType.type60
Added CVTimeFlags [struct]
Added CVTimeFlags.isIndefinite
Added kCVReturnRetry
Declaration | |
---|---|
From | struct CVFillExtendedPixelsCallBackData { var version: CFIndex var fillCallBack: CVFillExtendedPixelsCallBack? var refCon: UnsafeMutablePointer<Void> init() init(version version: CFIndex, fillCallBack fillCallBack: CVFillExtendedPixelsCallBack?, refCon refCon: UnsafeMutablePointer<Void>) } |
To | struct CVFillExtendedPixelsCallBackData { var version: CFIndex var fillCallBack: CoreVideo.CVFillExtendedPixelsCallBack? var refCon: UnsafeMutableRawPointer? init() init(version version: CFIndex, fillCallBack fillCallBack: CoreVideo.CVFillExtendedPixelsCallBack?, refCon refCon: UnsafeMutableRawPointer?) } |
Declaration | |
---|---|
From | var fillCallBack: CVFillExtendedPixelsCallBack? |
To | var fillCallBack: CoreVideo.CVFillExtendedPixelsCallBack? |
Declaration | |
---|---|
From | var refCon: UnsafeMutablePointer<Void> |
To | var refCon: UnsafeMutableRawPointer? |
Declaration | |
---|---|
From | func CVBufferGetAttachment(_ buffer: CVBuffer, _ key: CFString, _ attachmentMode: UnsafeMutablePointer<CVAttachmentMode>) -> Unmanaged<AnyObject>? |
To | func CVBufferGetAttachment(_ buffer: CVBuffer, _ key: CFString, _ attachmentMode: UnsafeMutablePointer<CVAttachmentMode>?) -> Unmanaged<CFTypeRef>? |
Declaration | |
---|---|
From | func CVBufferGetAttachments(_ buffer: CVBuffer, _ attachmentMode: CVAttachmentMode) -> Unmanaged<CFDictionary>? |
To | func CVBufferGetAttachments(_ buffer: CVBuffer, _ attachmentMode: CVAttachmentMode) -> CFDictionary? |
Declaration | |
---|---|
From | func CVBufferSetAttachment(_ buffer: CVBuffer, _ key: CFString, _ value: AnyObject, _ attachmentMode: CVAttachmentMode) |
To | func CVBufferSetAttachment(_ buffer: CVBuffer, _ key: CFString, _ value: CFTypeRef, _ attachmentMode: CVAttachmentMode) |
Modified CVFillExtendedPixelsCallBack
Declaration | |
---|---|
From | typealias CVFillExtendedPixelsCallBack = (CVPixelBuffer, UnsafeMutablePointer<Void>) -> DarwinBoolean |
To | typealias CVFillExtendedPixelsCallBack = (CVPixelBuffer, UnsafeMutableRawPointer?) -> DarwinBoolean |
Modified CVImageBuffer
Declaration | |
---|---|
From | typealias CVImageBufferRef = CVImageBuffer |
To | typealias CVImageBuffer = CVBuffer |
Declaration | |
---|---|
From | func CVMetalTextureCacheCreate(_ allocator: CFAllocator?, _ cacheAttributes: CFDictionary?, _ metalDevice: MTLDevice, _ textureAttributes: CFDictionary?, _ cacheOut: UnsafeMutablePointer<Unmanaged<CVMetalTextureCache>?>) -> CVReturn |
To | func CVMetalTextureCacheCreate(_ allocator: CFAllocator?, _ cacheAttributes: CFDictionary?, _ metalDevice: MTLDevice, _ textureAttributes: CFDictionary?, _ cacheOut: UnsafeMutablePointer<CVMetalTextureCache?>) -> CVReturn |
Declaration | |
---|---|
From | func CVMetalTextureCacheCreateTextureFromImage(_ allocator: CFAllocator?, _ textureCache: CVMetalTextureCache, _ sourceImage: CVImageBuffer, _ textureAttributes: CFDictionary?, _ pixelFormat: MTLPixelFormat, _ width: Int, _ height: Int, _ planeIndex: Int, _ textureOut: UnsafeMutablePointer<Unmanaged<CVMetalTexture>?>) -> CVReturn |
To | func CVMetalTextureCacheCreateTextureFromImage(_ allocator: CFAllocator?, _ textureCache: CVMetalTextureCache, _ sourceImage: CVImageBuffer, _ textureAttributes: CFDictionary?, _ pixelFormat: MTLPixelFormat, _ width: Int, _ height: Int, _ planeIndex: Int, _ textureOut: UnsafeMutablePointer<CVMetalTexture?>) -> CVReturn |
Declaration | |
---|---|
From | func CVMetalTextureGetCleanTexCoords(_ image: CVMetalTexture, _ lowerLeft: UnsafeMutablePointer<Float>, _ lowerRight: UnsafeMutablePointer<Float>, _ upperRight: UnsafeMutablePointer<Float>, _ upperLeft: UnsafeMutablePointer<Float>) |
To | func CVMetalTextureGetCleanTexCoords(_ image: CVMetalTexture, _ lowerLeft: UnsafeMutablePointer<Float>!, _ lowerRight: UnsafeMutablePointer<Float>!, _ upperRight: UnsafeMutablePointer<Float>!, _ upperLeft: UnsafeMutablePointer<Float>!) |
Declaration | |
---|---|
From | func CVOpenGLESTextureGetCleanTexCoords(_ image: CVOpenGLESTexture, _ lowerLeft: UnsafeMutablePointer<GLfloat>, _ lowerRight: UnsafeMutablePointer<GLfloat>, _ upperRight: UnsafeMutablePointer<GLfloat>, _ upperLeft: UnsafeMutablePointer<GLfloat>) |
To | func CVOpenGLESTextureGetCleanTexCoords(_ image: CVOpenGLESTexture, _ lowerLeft: UnsafeMutablePointer<GLfloat>!, _ lowerRight: UnsafeMutablePointer<GLfloat>!, _ upperRight: UnsafeMutablePointer<GLfloat>!, _ upperLeft: UnsafeMutablePointer<GLfloat>!) |
Declaration | |
---|---|
From | func CVPixelBufferCreateWithBytes(_ allocator: CFAllocator?, _ width: Int, _ height: Int, _ pixelFormatType: OSType, _ baseAddress: UnsafeMutablePointer<Void>, _ bytesPerRow: Int, _ releaseCallback: CVPixelBufferReleaseBytesCallback?, _ releaseRefCon: UnsafeMutablePointer<Void>, _ pixelBufferAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn |
To | func CVPixelBufferCreateWithBytes(_ allocator: CFAllocator?, _ width: Int, _ height: Int, _ pixelFormatType: OSType, _ baseAddress: UnsafeMutableRawPointer, _ bytesPerRow: Int, _ releaseCallback: CoreVideo.CVPixelBufferReleaseBytesCallback?, _ releaseRefCon: UnsafeMutableRawPointer?, _ pixelBufferAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn |
Declaration | |
---|---|
From | func CVPixelBufferCreateWithPlanarBytes(_ allocator: CFAllocator?, _ width: Int, _ height: Int, _ pixelFormatType: OSType, _ dataPtr: UnsafeMutablePointer<Void>, _ dataSize: Int, _ numberOfPlanes: Int, _ planeBaseAddress: UnsafeMutablePointer<UnsafeMutablePointer<Void>>, _ planeWidth: UnsafeMutablePointer<Int>, _ planeHeight: UnsafeMutablePointer<Int>, _ planeBytesPerRow: UnsafeMutablePointer<Int>, _ releaseCallback: CVPixelBufferReleasePlanarBytesCallback?, _ releaseRefCon: UnsafeMutablePointer<Void>, _ pixelBufferAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn |
To | func CVPixelBufferCreateWithPlanarBytes(_ allocator: CFAllocator?, _ width: Int, _ height: Int, _ pixelFormatType: OSType, _ dataPtr: UnsafeMutableRawPointer?, _ dataSize: Int, _ numberOfPlanes: Int, _ planeBaseAddress: UnsafeMutablePointer<UnsafeMutableRawPointer?>!, _ planeWidth: UnsafeMutablePointer<Int>!, _ planeHeight: UnsafeMutablePointer<Int>!, _ planeBytesPerRow: UnsafeMutablePointer<Int>!, _ releaseCallback: CoreVideo.CVPixelBufferReleasePlanarBytesCallback?, _ releaseRefCon: UnsafeMutableRawPointer?, _ pixelBufferAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn |
Declaration | |
---|---|
From | func CVPixelBufferGetBaseAddress(_ pixelBuffer: CVPixelBuffer) -> UnsafeMutablePointer<Void> |
To | func CVPixelBufferGetBaseAddress(_ pixelBuffer: CVPixelBuffer) -> UnsafeMutableRawPointer? |
Declaration | |
---|---|
From | func CVPixelBufferGetBaseAddressOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> UnsafeMutablePointer<Void> |
To | func CVPixelBufferGetBaseAddressOfPlane(_ pixelBuffer: CVPixelBuffer, _ planeIndex: Int) -> UnsafeMutableRawPointer? |
Declaration | |
---|---|
From | func CVPixelBufferGetExtendedPixels(_ pixelBuffer: CVPixelBuffer, _ extraColumnsOnLeft: UnsafeMutablePointer<Int>, _ extraColumnsOnRight: UnsafeMutablePointer<Int>, _ extraRowsOnTop: UnsafeMutablePointer<Int>, _ extraRowsOnBottom: UnsafeMutablePointer<Int>) |
To | func CVPixelBufferGetExtendedPixels(_ pixelBuffer: CVPixelBuffer, _ extraColumnsOnLeft: UnsafeMutablePointer<Int>?, _ extraColumnsOnRight: UnsafeMutablePointer<Int>?, _ extraRowsOnTop: UnsafeMutablePointer<Int>?, _ extraRowsOnBottom: UnsafeMutablePointer<Int>?) |
Declaration | |
---|---|
From | func CVPixelBufferPoolGetAttributes(_ pool: CVPixelBufferPool) -> Unmanaged<CFDictionary>? |
To | func CVPixelBufferPoolGetAttributes(_ pool: CVPixelBufferPool) -> CFDictionary? |
Declaration | |
---|---|
From | func CVPixelBufferPoolGetPixelBufferAttributes(_ pool: CVPixelBufferPool) -> Unmanaged<CFDictionary>? |
To | func CVPixelBufferPoolGetPixelBufferAttributes(_ pool: CVPixelBufferPool) -> CFDictionary? |
Modified CVPixelBufferReleaseBytesCallback
Declaration | |
---|---|
From | typealias CVPixelBufferReleaseBytesCallback = (UnsafeMutablePointer<Void>, UnsafePointer<Void>) -> Void |
To | typealias CVPixelBufferReleaseBytesCallback = (UnsafeMutableRawPointer?, UnsafeRawPointer?) -> Swift.Void |
Declaration | |
---|---|
From | typealias CVPixelBufferReleasePlanarBytesCallback = (UnsafeMutablePointer<Void>, UnsafePointer<Void>, Int, Int, UnsafeMutablePointer<UnsafePointer<Void>>) -> Void |
To | typealias CVPixelBufferReleasePlanarBytesCallback = (UnsafeMutableRawPointer?, UnsafeRawPointer?, Int, Int, UnsafeMutablePointer<UnsafeRawPointer?>?) -> Swift.Void |
Declaration | |
---|---|
From | func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(_ allocator: CFAllocator?) -> Unmanaged<CFArray>? |
To | func CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(_ allocator: CFAllocator?) -> CFArray? |
Modified CVPixelFormatDescriptionCreateWithPixelFormatType(_: CFAllocator?, _: OSType) -> CFDictionary?
Declaration | |
---|---|
From | func CVPixelFormatDescriptionCreateWithPixelFormatType(_ allocator: CFAllocator?, _ pixelFormat: OSType) -> Unmanaged<CFDictionary>? |
To | func CVPixelFormatDescriptionCreateWithPixelFormatType(_ allocator: CFAllocator?, _ pixelFormat: OSType) -> CFDictionary? |