Documentation Archive Developer
Search

IOSurface Changes for Objective-C

IOSurface

IOSurfaceAPI.h

Declaration
From
size_t IOSurfaceAlignProperty (
    CFStringRef property,
    size_t value
);
To
size_t IOSurfaceAlignProperty (
    CFStringRef _Nonnull property,
    size_t value
);

Declaration
From
CFTypeRef IOSurfaceCopyValue (
    IOSurfaceRef buffer,
    CFStringRef key
);
To
CFTypeRef _Nullable IOSurfaceCopyValue (
    IOSurfaceRef _Nonnull buffer,
    CFStringRef _Nonnull key
);

Declaration
From
IOSurfaceRef IOSurfaceCreate (
    CFDictionaryRef properties
);
To
IOSurfaceRef _Nullable IOSurfaceCreate (
    CFDictionaryRef _Nonnull properties
);

Declaration
From
mach_port_t IOSurfaceCreateMachPort (
    IOSurfaceRef buffer
);
To
mach_port_t IOSurfaceCreateMachPort (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
xpc_object_t IOSurfaceCreateXPCObject (
    IOSurfaceRef aSurface
);
To
xpc_object_t _Nonnull IOSurfaceCreateXPCObject (
    IOSurfaceRef _Nonnull aSurface
);

Declaration
From
void IOSurfaceDecrementUseCount (
    IOSurfaceRef buffer
);
To
void IOSurfaceDecrementUseCount (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetAllocSize (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetAllocSize (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
void * IOSurfaceGetBaseAddress (
    IOSurfaceRef buffer
);
To
void * _Nonnull IOSurfaceGetBaseAddress (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
void * IOSurfaceGetBaseAddressOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
void * _Nonnull IOSurfaceGetBaseAddressOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
size_t IOSurfaceGetBytesPerElement (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetBytesPerElement (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetBytesPerElementOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetBytesPerElementOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
size_t IOSurfaceGetBytesPerRow (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetBytesPerRow (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetBytesPerRowOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetBytesPerRowOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
size_t IOSurfaceGetElementHeight (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetElementHeight (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetElementHeightOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetElementHeightOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
size_t IOSurfaceGetElementWidth (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetElementWidth (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetElementWidthOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetElementWidthOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
size_t IOSurfaceGetHeight (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetHeight (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetHeightOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetHeightOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
IOSurfaceID IOSurfaceGetID (
    IOSurfaceRef buffer
);
To
IOSurfaceID IOSurfaceGetID (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
OSType IOSurfaceGetPixelFormat (
    IOSurfaceRef buffer
);
To
OSType IOSurfaceGetPixelFormat (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetPlaneCount (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetPlaneCount (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetPropertyAlignment (
    CFStringRef property
);
To
size_t IOSurfaceGetPropertyAlignment (
    CFStringRef _Nonnull property
);

Declaration
From
size_t IOSurfaceGetPropertyMaximum (
    CFStringRef property
);
To
size_t IOSurfaceGetPropertyMaximum (
    CFStringRef _Nonnull property
);

Declaration
From
uint32_t IOSurfaceGetSeed (
    IOSurfaceRef buffer
);
To
uint32_t IOSurfaceGetSeed (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
int32_t IOSurfaceGetUseCount (
    IOSurfaceRef buffer
);
To
int32_t IOSurfaceGetUseCount (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetWidth (
    IOSurfaceRef buffer
);
To
size_t IOSurfaceGetWidth (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
size_t IOSurfaceGetWidthOfPlane (
    IOSurfaceRef buffer,
    size_t planeIndex
);
To
size_t IOSurfaceGetWidthOfPlane (
    IOSurfaceRef _Nonnull buffer,
    size_t planeIndex
);

Declaration
From
void IOSurfaceIncrementUseCount (
    IOSurfaceRef buffer
);
To
void IOSurfaceIncrementUseCount (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
Boolean IOSurfaceIsInUse (
    IOSurfaceRef buffer
);
To
Boolean IOSurfaceIsInUse (
    IOSurfaceRef _Nonnull buffer
);

Declaration
From
IOReturn IOSurfaceLock (
    IOSurfaceRef buffer,
    uint32_t options,
    uint32_t *seed
);
To
IOReturn IOSurfaceLock (
    IOSurfaceRef _Nonnull buffer,
    IOSurfaceLockOptions options,
    uint32_t * _Nullable seed
);

Declaration
From
IOSurfaceRef IOSurfaceLookup (
    IOSurfaceID csid
);
To
IOSurfaceRef _Nullable IOSurfaceLookup (
    IOSurfaceID csid
);

Declaration
From
IOSurfaceRef IOSurfaceLookupFromMachPort (
    mach_port_t port
);
To
IOSurfaceRef _Nullable IOSurfaceLookupFromMachPort (
    mach_port_t port
);

Declaration
From
IOSurfaceRef IOSurfaceLookupFromXPCObject (
    xpc_object_t xobj
);
To
IOSurfaceRef _Nullable IOSurfaceLookupFromXPCObject (
    xpc_object_t _Nonnull xobj
);

Declaration
From
void IOSurfaceRemoveValue (
    IOSurfaceRef buffer,
    CFStringRef key
);
To
void IOSurfaceRemoveValue (
    IOSurfaceRef _Nonnull buffer,
    CFStringRef _Nonnull key
);

Declaration
From
void IOSurfaceSetValue (
    IOSurfaceRef buffer,
    CFStringRef key,
    CFTypeRef value
);
To
void IOSurfaceSetValue (
    IOSurfaceRef _Nonnull buffer,
    CFStringRef _Nonnull key,
    CFTypeRef _Nonnull value
);

Declaration
From
IOReturn IOSurfaceUnlock (
    IOSurfaceRef buffer,
    uint32_t options,
    uint32_t *seed
);
To
IOReturn IOSurfaceUnlock (
    IOSurfaceRef _Nonnull buffer,
    IOSurfaceLockOptions options,
    uint32_t * _Nullable seed
);

Deprecation
From--
ToOS X 10.11