Class IOSurface

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class IOSurface
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 11.0 and later.
  • Field Details

  • Constructor Details

    • IOSurface

      public IOSurface()
    • IOSurface

      protected IOSurface​(NSObject.Handle h, long handle)
    • IOSurface

      protected IOSurface​(NSObject.SkipInit skipInit)
    • IOSurface

      public IOSurface​(NSDictionary<?,​?> properties)
    • IOSurface

      public IOSurface​(NSCoder coder)
  • Method Details

    • getAllocationSize

      public long getAllocationSize()
    • getWidth

      public long getWidth()
    • getHeight

      public long getHeight()
    • getBaseAddress

      public VoidPtr getBaseAddress()
    • getPixelFormat

      public int getPixelFormat()
    • getBytesPerRow

      public long getBytesPerRow()
    • getBytesPerElement

      public long getBytesPerElement()
    • getElementWidth

      public long getElementWidth()
    • getElementHeight

      public long getElementHeight()
    • getSeed

      public int getSeed()
    • getPlaneCount

      public long getPlaneCount()
    • isInUse

      public boolean isInUse()
    • getLocalUseCount

      public int getLocalUseCount()
    • setLocalUseCount

      public void setLocalUseCount​(int v)
    • allowsPixelSizeCasting

      public boolean allowsPixelSizeCasting()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • iOSurfaceGetTypeID

      public static long iOSurfaceGetTypeID()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceCreate

      public static IOSurface iOSurfaceCreate​(NSDictionary properties)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceLookup

      public static IOSurface iOSurfaceLookup​(int csid)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetID

      public int iOSurfaceGetID()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceLock

      public int iOSurfaceLock​(IOSurfaceLockOptions options, IntPtr seed)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceUnlock

      public int iOSurfaceUnlock​(IOSurfaceLockOptions options, IntPtr seed)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetAllocSize

      public long iOSurfaceGetAllocSize()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetWidth

      public long iOSurfaceGetWidth()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetHeight

      public long iOSurfaceGetHeight()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBytesPerElement

      public long iOSurfaceGetBytesPerElement()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBytesPerRow

      public long iOSurfaceGetBytesPerRow()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBaseAddress

      public VoidPtr iOSurfaceGetBaseAddress()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetElementWidth

      public long iOSurfaceGetElementWidth()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetElementHeight

      public long iOSurfaceGetElementHeight()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetPixelFormat

      public int iOSurfaceGetPixelFormat()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetSeed

      public int iOSurfaceGetSeed()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetPlaneCount

      public long iOSurfaceGetPlaneCount()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetWidthOfPlane

      public long iOSurfaceGetWidthOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetHeightOfPlane

      public long iOSurfaceGetHeightOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBytesPerElementOfPlane

      public long iOSurfaceGetBytesPerElementOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBytesPerRowOfPlane

      public long iOSurfaceGetBytesPerRowOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBaseAddressOfPlane

      public VoidPtr iOSurfaceGetBaseAddressOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetElementWidthOfPlane

      public long iOSurfaceGetElementWidthOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetElementHeightOfPlane

      public long iOSurfaceGetElementHeightOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetNumberOfComponentsOfPlane

      public long iOSurfaceGetNumberOfComponentsOfPlane​(long planeIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetNameOfComponentOfPlane

      public IOSurfaceComponentName iOSurfaceGetNameOfComponentOfPlane​(long planeIndex, long componentIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetTypeOfComponentOfPlane

      public IOSurfaceComponentType iOSurfaceGetTypeOfComponentOfPlane​(long planeIndex, long componentIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetRangeOfComponentOfPlane

      public IOSurfaceComponentRange iOSurfaceGetRangeOfComponentOfPlane​(long planeIndex, long componentIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBitDepthOfComponentOfPlane

      public long iOSurfaceGetBitDepthOfComponentOfPlane​(long planeIndex, long componentIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetBitOffsetOfComponentOfPlane

      public long iOSurfaceGetBitOffsetOfComponentOfPlane​(long planeIndex, long componentIndex)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetSubsampling

      public IOSurfaceSubsampling iOSurfaceGetSubsampling()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceSetValue

      public void iOSurfaceSetValue​(CFString key, CFType value)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceCopyValue

      public CFType iOSurfaceCopyValue​(CFString key)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceRemoveValue

      public void iOSurfaceRemoveValue​(CFString key)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceSetValues

      public void iOSurfaceSetValues​(NSDictionary keysAndValues)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceCopyAllValues

      public NSDictionary iOSurfaceCopyAllValues()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceRemoveAllValues

      public void iOSurfaceRemoveAllValues()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceCreateMachPort

      public int iOSurfaceCreateMachPort()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceLookupFromMachPort

      public static IOSurface iOSurfaceLookupFromMachPort​(int port)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetPropertyMaximum

      public static long iOSurfaceGetPropertyMaximum​(CFString property)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetPropertyAlignment

      public static long iOSurfaceGetPropertyAlignment​(CFString property)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceAlignProperty

      public static long iOSurfaceAlignProperty​(CFString property, long value)
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceIncrementUseCount

      public void iOSurfaceIncrementUseCount()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceDecrementUseCount

      public void iOSurfaceDecrementUseCount()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceGetUseCount

      public int iOSurfaceGetUseCount()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceIsInUse

      public boolean iOSurfaceIsInUse()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceAllowsPixelSizeCasting

      public boolean iOSurfaceAllowsPixelSizeCasting()
      Since:
      Available in iOS 11.0 and later.
    • iOSurfaceSetPurgeable

      public int iOSurfaceSetPurgeable​(int newState, IntPtr oldState)
      Since:
      Available in iOS 11.0 and later.
    • init

      protected long init​(NSDictionary<?,​?> properties)
    • lock

      public int lock​(IOSurfaceLockOptions options, IntPtr seed)
    • unlock

      public int unlock​(IOSurfaceLockOptions options, IntPtr seed)
    • widthOfPlaneAtIndex

      public long widthOfPlaneAtIndex​(long planeIndex)
    • heightOfPlaneAtIndex

      public long heightOfPlaneAtIndex​(long planeIndex)
    • bytesPerRowOfPlaneAtIndex

      public long bytesPerRowOfPlaneAtIndex​(long planeIndex)
    • bytesPerElementOfPlaneAtIndex

      public long bytesPerElementOfPlaneAtIndex​(long planeIndex)
    • elementWidthOfPlaneAtIndex

      public long elementWidthOfPlaneAtIndex​(long planeIndex)
    • elementHeightOfPlaneAtIndex

      public long elementHeightOfPlaneAtIndex​(long planeIndex)
    • baseAddressOfPlaneAtIndex

      public VoidPtr baseAddressOfPlaneAtIndex​(long planeIndex)
    • setAttachment

      public void setAttachment​(NSObject anObject, String key)
    • attachmentForKey

      public NSObject attachmentForKey​(String key)
    • removeAttachmentForKey

      public void removeAttachmentForKey​(String key)
    • setAllAttachments

      public void setAllAttachments​(NSDictionary<NSString,​?> dict)
    • allAttachments

      public NSDictionary<NSString,​?> allAttachments()
    • removeAllAttachments

      public void removeAllAttachments()
    • incrementUseCount

      public void incrementUseCount()
    • decrementUseCount

      public void decrementUseCount()
    • setPurgeable

      public int setPurgeable​(IOSurfacePurgeabilityState newState, IntPtr oldState)
      Since:
      Available in iOS 11.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)