Documentation
¶
Overview ¶
Share hardware-accelerated buffer data (framebuffers and textures) across multiple processes. Manage image memory more efficiently.
Index ¶
- Variables
- type ComponentName
- type ComponentRange
- type ComponentType
- type ID
- type IIOSurface
- type IOSurface
- func (i_ IOSurface) AllAttachments() map[string]objc.Object
- func (i_ IOSurface) AllocationSize() int
- func (i_ IOSurface) AllowsPixelSizeCasting() bool
- func (i_ IOSurface) AttachmentForKey(key string) objc.Object
- func (i_ IOSurface) BaseAddress() unsafe.Pointer
- func (i_ IOSurface) BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer
- func (i_ IOSurface) BytesPerElement() int
- func (i_ IOSurface) BytesPerElementOfPlaneAtIndex(planeIndex uint) int
- func (i_ IOSurface) BytesPerRow() int
- func (i_ IOSurface) BytesPerRowOfPlaneAtIndex(planeIndex uint) int
- func (i_ IOSurface) DecrementUseCount()
- func (i_ IOSurface) ElementHeight() int
- func (i_ IOSurface) ElementHeightOfPlaneAtIndex(planeIndex uint) int
- func (i_ IOSurface) ElementWidth() int
- func (i_ IOSurface) ElementWidthOfPlaneAtIndex(planeIndex uint) int
- func (i_ IOSurface) Height() int
- func (i_ IOSurface) HeightOfPlaneAtIndex(planeIndex uint) int
- func (i_ IOSurface) IncrementUseCount()
- func (i_ IOSurface) Init() IOSurface
- func (i_ IOSurface) InitWithProperties(properties map[PropertyKey]objc.IObject) IOSurface
- func (i_ IOSurface) IsInUse() bool
- func (i_ IOSurface) LocalUseCount() int32
- func (i_ IOSurface) LockWithOptionsSeed(options LockOptions, seed *uint32) int
- func (i_ IOSurface) PixelFormat() uint
- func (i_ IOSurface) PlaneCount() uint
- func (i_ IOSurface) RemoveAllAttachments()
- func (i_ IOSurface) RemoveAttachmentForKey(key string)
- func (i_ IOSurface) Seed() uint32
- func (i_ IOSurface) SetAllAttachments(dict map[string]objc.IObject)
- func (i_ IOSurface) SetAttachmentForKey(anObject objc.IObject, key string)
- func (i_ IOSurface) SetPurgeableOldState(newState PurgeabilityState, oldState *PurgeabilityState) int
- func (i_ IOSurface) UnlockWithOptionsSeed(options LockOptions, seed *uint32) int
- func (i_ IOSurface) Width() int
- func (i_ IOSurface) WidthOfPlaneAtIndex(planeIndex uint) int
- type LockOptions
- type PropertyKey
- type PurgeabilityState
- type Ref
- type Subsampling
Constants ¶
This section is empty.
Variables ¶
View Source
var IOSurfaceClass = _IOSurfaceClass{objc.GetClass("IOSurface")}
The class instance for the IOSurface class.
Functions ¶
This section is empty.
Types ¶
type ComponentName ¶
type ComponentName int32
[Full Topic]
const ( KComponentNameAlpha ComponentName = 1 KComponentNameBlue ComponentName = 4 KComponentNameChromaBlue ComponentName = 7 KComponentNameChromaRed ComponentName = 6 KComponentNameGreen ComponentName = 3 KComponentNameLuma ComponentName = 5 KComponentNameRed ComponentName = 2 KComponentNameUnknown ComponentName = 0 )
type ComponentRange ¶
type ComponentRange int32
[Full Topic]
const ( KComponentRangeFullRange ComponentRange = 1 KComponentRangeUnknown ComponentRange = 0 KComponentRangeVideoRange ComponentRange = 2 KComponentRangeWideRange ComponentRange = 3 )
type ComponentType ¶
type ComponentType int32
[Full Topic]
const ( KComponentTypeFloat ComponentType = 3 KComponentTypeSignedInteger ComponentType = 2 KComponentTypeSignedNormalized ComponentType = 4 KComponentTypeUnknown ComponentType = 0 KComponentTypeUnsignedInteger ComponentType = 1 )
type IIOSurface ¶
type IIOSurface interface { objc.IObject WidthOfPlaneAtIndex(planeIndex uint) int RemoveAttachmentForKey(key string) DecrementUseCount() SetAllAttachments(dict map[string]objc.IObject) SetPurgeableOldState(newState PurgeabilityState, oldState *PurgeabilityState) int BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer UnlockWithOptionsSeed(options LockOptions, seed *uint32) int ElementWidthOfPlaneAtIndex(planeIndex uint) int AllAttachments() map[string]objc.Object SetAttachmentForKey(anObject objc.IObject, key string) RemoveAllAttachments() BytesPerRowOfPlaneAtIndex(planeIndex uint) int IncrementUseCount() ElementHeightOfPlaneAtIndex(planeIndex uint) int AttachmentForKey(key string) objc.Object HeightOfPlaneAtIndex(planeIndex uint) int LockWithOptionsSeed(options LockOptions, seed *uint32) int BytesPerElementOfPlaneAtIndex(planeIndex uint) int Width() int ElementWidth() int Seed() uint32 ElementHeight() int PixelFormat() uint Height() int LocalUseCount() int32 BytesPerElement() int AllowsPixelSizeCasting() bool AllocationSize() int BaseAddress() unsafe.Pointer BytesPerRow() int PlaneCount() uint IsInUse() bool }
An interface definition for the IOSurface class.
type IOSurface ¶
Data type representing an IOSurface opaque object. Full Topic
func IOSurfaceFrom ¶
func NewIOSurface ¶
func NewIOSurface() IOSurface
func NewIOSurfaceWithProperties ¶
func NewIOSurfaceWithProperties(properties map[PropertyKey]objc.IObject) IOSurface
[Full Topic]
func (IOSurface) AllAttachments ¶
[Full Topic]
func (IOSurface) AllowsPixelSizeCasting ¶
[Full Topic]
func (IOSurface) AttachmentForKey ¶
[Full Topic]
func (IOSurface) BaseAddressOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) BytesPerElementOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) BytesPerRowOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) ElementHeightOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) ElementWidthOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) HeightOfPlaneAtIndex ¶
[Full Topic]
func (IOSurface) InitWithProperties ¶
func (i_ IOSurface) InitWithProperties(properties map[PropertyKey]objc.IObject) IOSurface
func (IOSurface) LockWithOptionsSeed ¶
func (i_ IOSurface) LockWithOptionsSeed(options LockOptions, seed *uint32) int
[Full Topic]
func (IOSurface) RemoveAttachmentForKey ¶
[Full Topic]
func (IOSurface) SetAllAttachments ¶
[Full Topic]
func (IOSurface) SetAttachmentForKey ¶
[Full Topic]
func (IOSurface) SetPurgeableOldState ¶
func (i_ IOSurface) SetPurgeableOldState(newState PurgeabilityState, oldState *PurgeabilityState) int
[Full Topic]
func (IOSurface) UnlockWithOptionsSeed ¶
func (i_ IOSurface) UnlockWithOptionsSeed(options LockOptions, seed *uint32) int
[Full Topic]
func (IOSurface) WidthOfPlaneAtIndex ¶
[Full Topic]
type LockOptions ¶
type LockOptions uint32
[Full Topic]
const ( KLockAvoidSync LockOptions = 2 KLockReadOnly LockOptions = 1 )
type PurgeabilityState ¶
type PurgeabilityState uint32
[Full Topic]
const ( KPurgeableEmpty PurgeabilityState = 2 KPurgeableKeepCurrent PurgeabilityState = 3 KPurgeableNonVolatile PurgeabilityState = 0 KPurgeableVolatile PurgeabilityState = 1 )
type Subsampling ¶
type Subsampling int32
[Full Topic]
const ( KSubsampling411 Subsampling = 4 KSubsampling420 Subsampling = 3 KSubsampling422 Subsampling = 2 KSubsamplingNone Subsampling = 1 KSubsamplingUnknown Subsampling = 0 )
Click to show internal directories.
Click to hide internal directories.