Documentation Archive Developer
Search

CoreVideo Changes for Objective-C

CoreVideo

CVBase.h

Added #def COREVIDEO_DECLARE_NULLABILITY
Added #def COREVIDEO_SUPPORTS_IOSURFACE_PREFETCH
Added #def COREVIDEO_USE_DERIVED_ENUMS_FOR_CONSTANTS
Added #def CV_BRIDGED_TYPE
Added #def CV_NONNULL
Added #def CV_NULLABLE
Added #def CV_RELEASES_ARGUMENT
Added #def CV_RETURNS_RETAINED_PARAMETER

CVBuffer.h

Declaration
From
CFTypeRef CVBufferGetAttachment (
    CVBufferRef buffer,
    CFStringRef key,
    CVAttachmentMode *attachmentMode
);
To
CFTypeRef _Nullable CVBufferGetAttachment (
    CVBufferRef _Nonnull buffer,
    CFStringRef _Nonnull key,
    CVAttachmentMode * _Nullable attachmentMode
);

Declaration
From
CFDictionaryRef CVBufferGetAttachments (
    CVBufferRef buffer,
    CVAttachmentMode attachmentMode
);
To
CFDictionaryRef _Nullable CVBufferGetAttachments (
    CVBufferRef _Nonnull buffer,
    CVAttachmentMode attachmentMode
);

Declaration
From
void CVBufferPropagateAttachments (
    CVBufferRef sourceBuffer,
    CVBufferRef destinationBuffer
);
To
void CVBufferPropagateAttachments (
    CVBufferRef _Nonnull sourceBuffer,
    CVBufferRef _Nonnull destinationBuffer
);

Declaration
From
void CVBufferRelease (
    CVBufferRef buffer
);
To
void CVBufferRelease (
    CVBufferRef _Nullable buffer
);

Declaration
From
void CVBufferRemoveAllAttachments (
    CVBufferRef buffer
);
To
void CVBufferRemoveAllAttachments (
    CVBufferRef _Nonnull buffer
);

Declaration
From
void CVBufferRemoveAttachment (
    CVBufferRef buffer,
    CFStringRef key
);
To
void CVBufferRemoveAttachment (
    CVBufferRef _Nonnull buffer,
    CFStringRef _Nonnull key
);

Declaration
From
CVBufferRef CVBufferRetain (
    CVBufferRef buffer
);
To
CVBufferRef _Nullable CVBufferRetain (
    CVBufferRef _Nullable buffer
);

Declaration
From
void CVBufferSetAttachment (
    CVBufferRef buffer,
    CFStringRef key,
    CFTypeRef value,
    CVAttachmentMode attachmentMode
);
To
void CVBufferSetAttachment (
    CVBufferRef _Nonnull buffer,
    CFStringRef _Nonnull key,
    CFTypeRef _Nonnull value,
    CVAttachmentMode attachmentMode
);

Declaration
From
void CVBufferSetAttachments (
    CVBufferRef buffer,
    CFDictionaryRef theAttachments,
    CVAttachmentMode attachmentMode
);
To
void CVBufferSetAttachments (
    CVBufferRef _Nonnull buffer,
    CFDictionaryRef _Nonnull theAttachments,
    CVAttachmentMode attachmentMode
);

CVDisplayLink.h

Declaration
From
CVReturn CVDisplayLinkCreateWithActiveCGDisplays (
    CVDisplayLinkRef *displayLinkOut
);
To
CVReturn CVDisplayLinkCreateWithActiveCGDisplays (
    CVDisplayLinkRef  _Nullable * _Nonnull displayLinkOut
);

Declaration
From
CVReturn CVDisplayLinkCreateWithCGDisplay (
    CGDirectDisplayID displayID,
    CVDisplayLinkRef *displayLinkOut
);
To
CVReturn CVDisplayLinkCreateWithCGDisplay (
    CGDirectDisplayID displayID,
    CVDisplayLinkRef  _Nullable * _Nonnull displayLinkOut
);

Declaration
From
CVReturn CVDisplayLinkCreateWithCGDisplays (
    CGDirectDisplayID *displayArray,
    CFIndex count,
    CVDisplayLinkRef *displayLinkOut
);
To
CVReturn CVDisplayLinkCreateWithCGDisplays (
    CGDirectDisplayID * _Nonnull displayArray,
    CFIndex count,
    CVDisplayLinkRef  _Nullable * _Nonnull displayLinkOut
);

Declaration
From
CVReturn CVDisplayLinkCreateWithOpenGLDisplayMask (
    CGOpenGLDisplayMask mask,
    CVDisplayLinkRef *displayLinkOut
);
To
CVReturn CVDisplayLinkCreateWithOpenGLDisplayMask (
    CGOpenGLDisplayMask mask,
    CVDisplayLinkRef  _Nullable * _Nonnull displayLinkOut
);

Declaration
From
double CVDisplayLinkGetActualOutputVideoRefreshPeriod (
    CVDisplayLinkRef displayLink
);
To
double CVDisplayLinkGetActualOutputVideoRefreshPeriod (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
CGDirectDisplayID CVDisplayLinkGetCurrentCGDisplay (
    CVDisplayLinkRef displayLink
);
To
CGDirectDisplayID CVDisplayLinkGetCurrentCGDisplay (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
CVReturn CVDisplayLinkGetCurrentTime (
    CVDisplayLinkRef displayLink,
    CVTimeStamp *outTime
);
To
CVReturn CVDisplayLinkGetCurrentTime (
    CVDisplayLinkRef _Nonnull displayLink,
    CVTimeStamp * _Nonnull outTime
);

Declaration
From
CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod (
    CVDisplayLinkRef displayLink
);
To
CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
CVTime CVDisplayLinkGetOutputVideoLatency (
    CVDisplayLinkRef displayLink
);
To
CVTime CVDisplayLinkGetOutputVideoLatency (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
Boolean CVDisplayLinkIsRunning (
    CVDisplayLinkRef displayLink
);
To
Boolean CVDisplayLinkIsRunning (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
void CVDisplayLinkRelease (
    CVDisplayLinkRef displayLink
);
To
void CVDisplayLinkRelease (
    CVDisplayLinkRef _Nullable displayLink
);

Declaration
From
CVDisplayLinkRef CVDisplayLinkRetain (
    CVDisplayLinkRef displayLink
);
To
CVDisplayLinkRef _Nullable CVDisplayLinkRetain (
    CVDisplayLinkRef _Nullable displayLink
);

Declaration
From
CVReturn CVDisplayLinkSetCurrentCGDisplay (
    CVDisplayLinkRef displayLink,
    CGDirectDisplayID displayID
);
To
CVReturn CVDisplayLinkSetCurrentCGDisplay (
    CVDisplayLinkRef _Nonnull displayLink,
    CGDirectDisplayID displayID
);

Declaration
From
CVReturn CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext (
    CVDisplayLinkRef displayLink,
    CGLContextObj cglContext,
    CGLPixelFormatObj cglPixelFormat
);
To
CVReturn CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext (
    CVDisplayLinkRef _Nonnull displayLink,
    CGLContextObj _Nonnull cglContext,
    CGLPixelFormatObj _Nonnull cglPixelFormat
);

Declaration
From
CVReturn CVDisplayLinkSetOutputCallback (
    CVDisplayLinkRef displayLink,
    CVDisplayLinkOutputCallback callback,
    void *userInfo
);
To
CVReturn CVDisplayLinkSetOutputCallback (
    CVDisplayLinkRef _Nonnull displayLink,
    CVDisplayLinkOutputCallback _Nonnull callback,
    void * _Nullable userInfo
);

Declaration
From
CVReturn CVDisplayLinkStart (
    CVDisplayLinkRef displayLink
);
To
CVReturn CVDisplayLinkStart (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
CVReturn CVDisplayLinkStop (
    CVDisplayLinkRef displayLink
);
To
CVReturn CVDisplayLinkStop (
    CVDisplayLinkRef _Nonnull displayLink
);

Declaration
From
CVReturn CVDisplayLinkTranslateTime (
    CVDisplayLinkRef displayLink,
    const CVTimeStamp *inTime,
    CVTimeStamp *outTime
);
To
CVReturn CVDisplayLinkTranslateTime (
    CVDisplayLinkRef _Nonnull displayLink,
    const CVTimeStamp * _Nonnull inTime,
    CVTimeStamp * _Nonnull outTime
);

CVImageBuffer.h

Declaration
From
CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments (
    CFDictionaryRef attachments
);
To
CGColorSpaceRef _Nullable CVImageBufferCreateColorSpaceFromAttachments (
    CFDictionaryRef _Nonnull attachments
);

Declaration
From
CGRect CVImageBufferGetCleanRect (
    CVImageBufferRef imageBuffer
);
To
CGRect CVImageBufferGetCleanRect (
    CVImageBufferRef _Nonnull imageBuffer
);

Declaration
From
CGColorSpaceRef CVImageBufferGetColorSpace (
    CVImageBufferRef imageBuffer
);
To
CGColorSpaceRef _Nullable CVImageBufferGetColorSpace (
    CVImageBufferRef _Nonnull imageBuffer
);

Declaration
From
CGSize CVImageBufferGetDisplaySize (
    CVImageBufferRef imageBuffer
);
To
CGSize CVImageBufferGetDisplaySize (
    CVImageBufferRef _Nonnull imageBuffer
);

Declaration
From
CGSize CVImageBufferGetEncodedSize (
    CVImageBufferRef imageBuffer
);
To
CGSize CVImageBufferGetEncodedSize (
    CVImageBufferRef _Nonnull imageBuffer
);

Declaration
From
Boolean CVImageBufferIsFlipped (
    CVImageBufferRef imageBuffer
);
To
Boolean CVImageBufferIsFlipped (
    CVImageBufferRef _Nonnull imageBuffer
);

CVMetalTexture.h (Added)

CVMetalTextureCache.h (Added)

CVOpenGLBuffer.h

Declaration
From
CVReturn CVOpenGLBufferAttach (
    CVOpenGLBufferRef openGLBuffer,
    CGLContextObj cglContext,
    GLenum face,
    GLint level,
    GLint screen
);
To
CVReturn CVOpenGLBufferAttach (
    CVOpenGLBufferRef _Nonnull openGLBuffer,
    CGLContextObj _Nonnull cglContext,
    GLenum face,
    GLint level,
    GLint screen
);

Declaration
From
CVReturn CVOpenGLBufferCreate (
    CFAllocatorRef allocator,
    size_t width,
    size_t height,
    CFDictionaryRef attributes,
    CVOpenGLBufferRef *bufferOut
);
To
CVReturn CVOpenGLBufferCreate (
    CFAllocatorRef _Nullable allocator,
    size_t width,
    size_t height,
    CFDictionaryRef _Nullable attributes,
    CVOpenGLBufferRef  _Nullable * _Nonnull bufferOut
);

Declaration
From
CFDictionaryRef CVOpenGLBufferGetAttributes (
    CVOpenGLBufferRef openGLBuffer
);
To
CFDictionaryRef _Nullable CVOpenGLBufferGetAttributes (
    CVOpenGLBufferRef _Nonnull openGLBuffer
);

Declaration
From
void CVOpenGLBufferRelease (
    CVOpenGLBufferRef buffer
);
To
void CVOpenGLBufferRelease (
    CVOpenGLBufferRef _Nullable buffer
);

Declaration
From
CVOpenGLBufferRef CVOpenGLBufferRetain (
    CVOpenGLBufferRef buffer
);
To
CVOpenGLBufferRef _Nullable CVOpenGLBufferRetain (
    CVOpenGLBufferRef _Nullable buffer
);

CVOpenGLBufferPool.h

Declaration
From
CVReturn CVOpenGLBufferPoolCreate (
    CFAllocatorRef allocator,
    CFDictionaryRef poolAttributes,
    CFDictionaryRef openGLBufferAttributes,
    CVOpenGLBufferPoolRef *poolOut
);
To
CVReturn CVOpenGLBufferPoolCreate (
    CFAllocatorRef _Nullable allocator,
    CFDictionaryRef _Nullable poolAttributes,
    CFDictionaryRef _Nullable openGLBufferAttributes,
    CVOpenGLBufferPoolRef  _Nullable * _Nonnull poolOut
);

Declaration
From
CVReturn CVOpenGLBufferPoolCreateOpenGLBuffer (
    CFAllocatorRef allocator,
    CVOpenGLBufferPoolRef openGLBufferPool,
    CVOpenGLBufferRef *openGLBufferOut
);
To
CVReturn CVOpenGLBufferPoolCreateOpenGLBuffer (
    CFAllocatorRef _Nullable allocator,
    CVOpenGLBufferPoolRef _Nonnull openGLBufferPool,
    CVOpenGLBufferRef  _Nullable * _Nonnull openGLBufferOut
);

Declaration
From
CFDictionaryRef CVOpenGLBufferPoolGetAttributes (
    CVOpenGLBufferPoolRef pool
);
To
CFDictionaryRef _Nullable CVOpenGLBufferPoolGetAttributes (
    CVOpenGLBufferPoolRef _Nonnull pool
);

Declaration
From
CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes (
    CVOpenGLBufferPoolRef pool
);
To
CFDictionaryRef _Nullable CVOpenGLBufferPoolGetOpenGLBufferAttributes (
    CVOpenGLBufferPoolRef _Nonnull pool
);

Declaration
From
void CVOpenGLBufferPoolRelease (
    CVOpenGLBufferPoolRef openGLBufferPool
);
To
void CVOpenGLBufferPoolRelease (
    CVOpenGLBufferPoolRef _Nullable openGLBufferPool
);

Declaration
From
CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain (
    CVOpenGLBufferPoolRef openGLBufferPool
);
To
CVOpenGLBufferPoolRef _Nullable CVOpenGLBufferPoolRetain (
    CVOpenGLBufferPoolRef _Nullable openGLBufferPool
);

CVOpenGLTexture.h

Declaration
From
void CVOpenGLTextureGetCleanTexCoords (
    CVOpenGLTextureRef image,
    GLfloat lowerLeft[2],
    GLfloat lowerRight[2],
    GLfloat upperRight[2],
    GLfloat upperLeft[2]
);
To
void CVOpenGLTextureGetCleanTexCoords (
    CVOpenGLTextureRef _Nonnull image,
    GLfloat lowerLeft[2],
    GLfloat lowerRight[2],
    GLfloat upperRight[2],
    GLfloat upperLeft[2]
);

Declaration
From
GLuint CVOpenGLTextureGetName (
    CVOpenGLTextureRef image
);
To
GLuint CVOpenGLTextureGetName (
    CVOpenGLTextureRef _Nonnull image
);

Declaration
From
GLenum CVOpenGLTextureGetTarget (
    CVOpenGLTextureRef image
);
To
GLenum CVOpenGLTextureGetTarget (
    CVOpenGLTextureRef _Nonnull image
);

Declaration
From
Boolean CVOpenGLTextureIsFlipped (
    CVOpenGLTextureRef image
);
To
Boolean CVOpenGLTextureIsFlipped (
    CVOpenGLTextureRef _Nonnull image
);

Declaration
From
void CVOpenGLTextureRelease (
    CVOpenGLTextureRef texture
);
To
void CVOpenGLTextureRelease (
    CVOpenGLTextureRef _Nullable texture
);

Declaration
From
CVOpenGLTextureRef CVOpenGLTextureRetain (
    CVOpenGLTextureRef texture
);
To
CVOpenGLTextureRef _Nullable CVOpenGLTextureRetain (
    CVOpenGLTextureRef _Nullable texture
);

CVOpenGLTextureCache.h

Declaration
From
CVReturn CVOpenGLTextureCacheCreate (
    CFAllocatorRef allocator,
    CFDictionaryRef cacheAttributes,
    CGLContextObj cglContext,
    CGLPixelFormatObj cglPixelFormat,
    CFDictionaryRef textureAttributes,
    CVOpenGLTextureCacheRef *cacheOut
);
To
CVReturn CVOpenGLTextureCacheCreate (
    CFAllocatorRef _Nullable allocator,
    CFDictionaryRef _Nullable cacheAttributes,
    CGLContextObj _Nonnull cglContext,
    CGLPixelFormatObj _Nonnull cglPixelFormat,
    CFDictionaryRef _Nullable textureAttributes,
    CVOpenGLTextureCacheRef  _Nullable * _Nonnull cacheOut
);

Declaration
From
CVReturn CVOpenGLTextureCacheCreateTextureFromImage (
    CFAllocatorRef allocator,
    CVOpenGLTextureCacheRef textureCache,
    CVImageBufferRef sourceImage,
    CFDictionaryRef attributes,
    CVOpenGLTextureRef *textureOut
);
To
CVReturn CVOpenGLTextureCacheCreateTextureFromImage (
    CFAllocatorRef _Nullable allocator,
    CVOpenGLTextureCacheRef _Nonnull textureCache,
    CVImageBufferRef _Nonnull sourceImage,
    CFDictionaryRef _Nullable attributes,
    CVOpenGLTextureRef  _Nullable * _Nonnull textureOut
);

Declaration
From
void CVOpenGLTextureCacheFlush (
    CVOpenGLTextureCacheRef textureCache,
    CVOptionFlags options
);
To
void CVOpenGLTextureCacheFlush (
    CVOpenGLTextureCacheRef _Nonnull textureCache,
    CVOptionFlags options
);

Declaration
From
void CVOpenGLTextureCacheRelease (
    CVOpenGLTextureCacheRef textureCache
);
To
void CVOpenGLTextureCacheRelease (
    CVOpenGLTextureCacheRef _Nullable textureCache
);

Declaration
From
CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain (
    CVOpenGLTextureCacheRef textureCache
);
To
CVOpenGLTextureCacheRef _Nullable CVOpenGLTextureCacheRetain (
    CVOpenGLTextureCacheRef _Nullable textureCache
);

CVPixelBuffer.h

Removed CVPixelBufferLockFlags
Declaration
From
CVReturn CVPixelBufferCreate (
    CFAllocatorRef allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    CFDictionaryRef pixelBufferAttributes,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferCreate (
    CFAllocatorRef _Nullable allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    CFDictionaryRef _Nullable pixelBufferAttributes,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
CVReturn CVPixelBufferCreateResolvedAttributesDictionary (
    CFAllocatorRef allocator,
    CFArrayRef attributes,
    CFDictionaryRef *resolvedDictionaryOut
);
To
CVReturn CVPixelBufferCreateResolvedAttributesDictionary (
    CFAllocatorRef _Nullable allocator,
    CFArrayRef _Nullable attributes,
    CFDictionaryRef  _Nullable * _Nonnull resolvedDictionaryOut
);

Declaration
From
CVReturn CVPixelBufferCreateWithBytes (
    CFAllocatorRef allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    void *baseAddress,
    size_t bytesPerRow,
    CVPixelBufferReleaseBytesCallback releaseCallback,
    void *releaseRefCon,
    CFDictionaryRef pixelBufferAttributes,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferCreateWithBytes (
    CFAllocatorRef _Nullable allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    void * _Nonnull baseAddress,
    size_t bytesPerRow,
    CVPixelBufferReleaseBytesCallback _Nullable releaseCallback,
    void * _Nullable releaseRefCon,
    CFDictionaryRef _Nullable pixelBufferAttributes,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
CVReturn CVPixelBufferCreateWithPlanarBytes (
    CFAllocatorRef allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    void *dataPtr,
    size_t dataSize,
    size_t numberOfPlanes,
    void *planeBaseAddress[],
    size_t planeWidth[],
    size_t planeHeight[],
    size_t planeBytesPerRow[],
    CVPixelBufferReleasePlanarBytesCallback releaseCallback,
    void *releaseRefCon,
    CFDictionaryRef pixelBufferAttributes,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferCreateWithPlanarBytes (
    CFAllocatorRef _Nullable allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    void * _Nullable dataPtr,
    size_t dataSize,
    size_t numberOfPlanes,
    void * _Nullable planeBaseAddress[],
    size_t planeWidth[],
    size_t planeHeight[],
    size_t planeBytesPerRow[],
    CVPixelBufferReleasePlanarBytesCallback _Nullable releaseCallback,
    void * _Nullable releaseRefCon,
    CFDictionaryRef _Nullable pixelBufferAttributes,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
CVReturn CVPixelBufferFillExtendedPixels (
    CVPixelBufferRef pixelBuffer
);
To
CVReturn CVPixelBufferFillExtendedPixels (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
void * CVPixelBufferGetBaseAddress (
    CVPixelBufferRef pixelBuffer
);
To
void * _Nullable CVPixelBufferGetBaseAddress (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
void * CVPixelBufferGetBaseAddressOfPlane (
    CVPixelBufferRef pixelBuffer,
    size_t planeIndex
);
To
void * _Nullable CVPixelBufferGetBaseAddressOfPlane (
    CVPixelBufferRef _Nonnull pixelBuffer,
    size_t planeIndex
);

Declaration
From
size_t CVPixelBufferGetBytesPerRow (
    CVPixelBufferRef pixelBuffer
);
To
size_t CVPixelBufferGetBytesPerRow (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
size_t CVPixelBufferGetBytesPerRowOfPlane (
    CVPixelBufferRef pixelBuffer,
    size_t planeIndex
);
To
size_t CVPixelBufferGetBytesPerRowOfPlane (
    CVPixelBufferRef _Nonnull pixelBuffer,
    size_t planeIndex
);

Declaration
From
size_t CVPixelBufferGetDataSize (
    CVPixelBufferRef pixelBuffer
);
To
size_t CVPixelBufferGetDataSize (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
void CVPixelBufferGetExtendedPixels (
    CVPixelBufferRef pixelBuffer,
    size_t *extraColumnsOnLeft,
    size_t *extraColumnsOnRight,
    size_t *extraRowsOnTop,
    size_t *extraRowsOnBottom
);
To
void CVPixelBufferGetExtendedPixels (
    CVPixelBufferRef _Nonnull pixelBuffer,
    size_t * _Nullable extraColumnsOnLeft,
    size_t * _Nullable extraColumnsOnRight,
    size_t * _Nullable extraRowsOnTop,
    size_t * _Nullable extraRowsOnBottom
);

Declaration
From
size_t CVPixelBufferGetHeight (
    CVPixelBufferRef pixelBuffer
);
To
size_t CVPixelBufferGetHeight (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
size_t CVPixelBufferGetHeightOfPlane (
    CVPixelBufferRef pixelBuffer,
    size_t planeIndex
);
To
size_t CVPixelBufferGetHeightOfPlane (
    CVPixelBufferRef _Nonnull pixelBuffer,
    size_t planeIndex
);

Declaration
From
OSType CVPixelBufferGetPixelFormatType (
    CVPixelBufferRef pixelBuffer
);
To
OSType CVPixelBufferGetPixelFormatType (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
size_t CVPixelBufferGetPlaneCount (
    CVPixelBufferRef pixelBuffer
);
To
size_t CVPixelBufferGetPlaneCount (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
size_t CVPixelBufferGetWidth (
    CVPixelBufferRef pixelBuffer
);
To
size_t CVPixelBufferGetWidth (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
size_t CVPixelBufferGetWidthOfPlane (
    CVPixelBufferRef pixelBuffer,
    size_t planeIndex
);
To
size_t CVPixelBufferGetWidthOfPlane (
    CVPixelBufferRef _Nonnull pixelBuffer,
    size_t planeIndex
);

Declaration
From
Boolean CVPixelBufferIsPlanar (
    CVPixelBufferRef pixelBuffer
);
To
Boolean CVPixelBufferIsPlanar (
    CVPixelBufferRef _Nonnull pixelBuffer
);

Declaration
From
CVReturn CVPixelBufferLockBaseAddress (
    CVPixelBufferRef pixelBuffer,
    CVOptionFlags lockFlags
);
To
CVReturn CVPixelBufferLockBaseAddress (
    CVPixelBufferRef _Nonnull pixelBuffer,
    CVPixelBufferLockFlags lockFlags
);

Declaration
From
void CVPixelBufferRelease (
    CVPixelBufferRef texture
);
To
void CVPixelBufferRelease (
    CVPixelBufferRef _Nullable texture
);

Declaration
From
CVPixelBufferRef CVPixelBufferRetain (
    CVPixelBufferRef texture
);
To
CVPixelBufferRef _Nullable CVPixelBufferRetain (
    CVPixelBufferRef _Nullable texture
);

Declaration
From
CVReturn CVPixelBufferUnlockBaseAddress (
    CVPixelBufferRef pixelBuffer,
    CVOptionFlags unlockFlags
);
To
CVReturn CVPixelBufferUnlockBaseAddress (
    CVPixelBufferRef _Nonnull pixelBuffer,
    CVPixelBufferLockFlags unlockFlags
);

CVPixelBufferIOSurface.h

Declaration
From
CVReturn CVPixelBufferCreateWithIOSurface (
    CFAllocatorRef allocator,
    IOSurfaceRef surface,
    CFDictionaryRef pixelBufferAttributes,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferCreateWithIOSurface (
    CFAllocatorRef _Nullable allocator,
    IOSurfaceRef _Nonnull surface,
    CFDictionaryRef _Nullable pixelBufferAttributes,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
IOSurfaceRef CVPixelBufferGetIOSurface (
    CVPixelBufferRef pixelBuffer
);
To
IOSurfaceRef _Nullable CVPixelBufferGetIOSurface (
    CVPixelBufferRef _Nullable pixelBuffer
);

CVPixelBufferPool.h

Declaration
From
CVReturn CVPixelBufferPoolCreate (
    CFAllocatorRef allocator,
    CFDictionaryRef poolAttributes,
    CFDictionaryRef pixelBufferAttributes,
    CVPixelBufferPoolRef *poolOut
);
To
CVReturn CVPixelBufferPoolCreate (
    CFAllocatorRef _Nullable allocator,
    CFDictionaryRef _Nullable poolAttributes,
    CFDictionaryRef _Nullable pixelBufferAttributes,
    CVPixelBufferPoolRef  _Nullable * _Nonnull poolOut
);

Declaration
From
CVReturn CVPixelBufferPoolCreatePixelBuffer (
    CFAllocatorRef allocator,
    CVPixelBufferPoolRef pixelBufferPool,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferPoolCreatePixelBuffer (
    CFAllocatorRef _Nullable allocator,
    CVPixelBufferPoolRef _Nonnull pixelBufferPool,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
CVReturn CVPixelBufferPoolCreatePixelBufferWithAuxAttributes (
    CFAllocatorRef allocator,
    CVPixelBufferPoolRef pixelBufferPool,
    CFDictionaryRef auxAttributes,
    CVPixelBufferRef *pixelBufferOut
);
To
CVReturn CVPixelBufferPoolCreatePixelBufferWithAuxAttributes (
    CFAllocatorRef _Nullable allocator,
    CVPixelBufferPoolRef _Nonnull pixelBufferPool,
    CFDictionaryRef _Nullable auxAttributes,
    CVPixelBufferRef  _Nullable * _Nonnull pixelBufferOut
);

Declaration
From
CFDictionaryRef CVPixelBufferPoolGetAttributes (
    CVPixelBufferPoolRef pool
);
To
CFDictionaryRef _Nullable CVPixelBufferPoolGetAttributes (
    CVPixelBufferPoolRef _Nonnull pool
);

Declaration
From
CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes (
    CVPixelBufferPoolRef pool
);
To
CFDictionaryRef _Nullable CVPixelBufferPoolGetPixelBufferAttributes (
    CVPixelBufferPoolRef _Nonnull pool
);

Declaration
From
void CVPixelBufferPoolRelease (
    CVPixelBufferPoolRef pixelBufferPool
);
To
void CVPixelBufferPoolRelease (
    CVPixelBufferPoolRef _Nullable pixelBufferPool
);

Declaration
From
CVPixelBufferPoolRef CVPixelBufferPoolRetain (
    CVPixelBufferPoolRef pixelBufferPool
);
To
CVPixelBufferPoolRef _Nullable CVPixelBufferPoolRetain (
    CVPixelBufferPoolRef _Nullable pixelBufferPool
);

CVPixelFormatDescription.h

Declaration
From
CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes (
    CFAllocatorRef allocator
);
To
CFArrayRef _Nullable CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes (
    CFAllocatorRef _Nullable allocator
);

Declaration
From
CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType (
    CFAllocatorRef allocator,
    OSType pixelFormat
);
To
CFDictionaryRef _Nullable CVPixelFormatDescriptionCreateWithPixelFormatType (
    CFAllocatorRef _Nullable allocator,
    OSType pixelFormat
);

Declaration
From
void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType (
    CFDictionaryRef description,
    OSType pixelFormat
);
To
void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType (
    CFDictionaryRef _Nonnull description,
    OSType pixelFormat
);

CVReturn.h