iosurface

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Share hardware-accelerated buffer data (framebuffers and textures) across multiple processes. Manage image memory more efficiently.

Apple Documentation

Index

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 ID

type ID uint32

An IOSurface identifier. Full Topic

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

type IOSurface struct {
	objc.Object
}

Data type representing an IOSurface opaque object. Full Topic

func IOSurfaceFrom

func IOSurfaceFrom(ptr unsafe.Pointer) IOSurface

func NewIOSurface

func NewIOSurface() IOSurface

func NewIOSurfaceWithProperties

func NewIOSurfaceWithProperties(properties map[PropertyKey]objc.IObject) IOSurface
[Full Topic]

func (IOSurface) AllAttachments

func (i_ IOSurface) AllAttachments() map[string]objc.Object
[Full Topic]

func (IOSurface) AllocationSize

func (i_ IOSurface) AllocationSize() int
[Full Topic]

func (IOSurface) AllowsPixelSizeCasting

func (i_ IOSurface) AllowsPixelSizeCasting() bool
[Full Topic]

func (IOSurface) AttachmentForKey

func (i_ IOSurface) AttachmentForKey(key string) objc.Object
[Full Topic]

func (IOSurface) BaseAddress

func (i_ IOSurface) BaseAddress() unsafe.Pointer
[Full Topic]

func (IOSurface) BaseAddressOfPlaneAtIndex

func (i_ IOSurface) BaseAddressOfPlaneAtIndex(planeIndex uint) unsafe.Pointer
[Full Topic]

func (IOSurface) BytesPerElement

func (i_ IOSurface) BytesPerElement() int
[Full Topic]

func (IOSurface) BytesPerElementOfPlaneAtIndex

func (i_ IOSurface) BytesPerElementOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

func (IOSurface) BytesPerRow

func (i_ IOSurface) BytesPerRow() int
[Full Topic]

func (IOSurface) BytesPerRowOfPlaneAtIndex

func (i_ IOSurface) BytesPerRowOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

func (IOSurface) DecrementUseCount

func (i_ IOSurface) DecrementUseCount()
[Full Topic]

func (IOSurface) ElementHeight

func (i_ IOSurface) ElementHeight() int
[Full Topic]

func (IOSurface) ElementHeightOfPlaneAtIndex

func (i_ IOSurface) ElementHeightOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

func (IOSurface) ElementWidth

func (i_ IOSurface) ElementWidth() int
[Full Topic]

func (IOSurface) ElementWidthOfPlaneAtIndex

func (i_ IOSurface) ElementWidthOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

func (IOSurface) Height

func (i_ IOSurface) Height() int
[Full Topic]

func (IOSurface) HeightOfPlaneAtIndex

func (i_ IOSurface) HeightOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

func (IOSurface) IncrementUseCount

func (i_ IOSurface) IncrementUseCount()
[Full Topic]

func (IOSurface) Init

func (i_ IOSurface) Init() IOSurface

func (IOSurface) InitWithProperties

func (i_ IOSurface) InitWithProperties(properties map[PropertyKey]objc.IObject) IOSurface

func (IOSurface) IsInUse

func (i_ IOSurface) IsInUse() bool
[Full Topic]

func (IOSurface) LocalUseCount

func (i_ IOSurface) LocalUseCount() int32
[Full Topic]

func (IOSurface) LockWithOptionsSeed

func (i_ IOSurface) LockWithOptionsSeed(options LockOptions, seed *uint32) int
[Full Topic]

func (IOSurface) PixelFormat

func (i_ IOSurface) PixelFormat() uint
[Full Topic]

func (IOSurface) PlaneCount

func (i_ IOSurface) PlaneCount() uint
[Full Topic]

func (IOSurface) RemoveAllAttachments

func (i_ IOSurface) RemoveAllAttachments()
[Full Topic]

func (IOSurface) RemoveAttachmentForKey

func (i_ IOSurface) RemoveAttachmentForKey(key string)
[Full Topic]

func (IOSurface) Seed

func (i_ IOSurface) Seed() uint32
[Full Topic]

func (IOSurface) SetAllAttachments

func (i_ IOSurface) SetAllAttachments(dict map[string]objc.IObject)
[Full Topic]

func (IOSurface) SetAttachmentForKey

func (i_ IOSurface) SetAttachmentForKey(anObject objc.IObject, key string)
[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) Width

func (i_ IOSurface) Width() int
[Full Topic]

func (IOSurface) WidthOfPlaneAtIndex

func (i_ IOSurface) WidthOfPlaneAtIndex(planeIndex uint) int
[Full Topic]

type LockOptions

type LockOptions uint32
[Full Topic]
const (
	KLockAvoidSync LockOptions = 2
	KLockReadOnly  LockOptions = 1
)

type PropertyKey

type PropertyKey string
[Full Topic]

type PurgeabilityState

type PurgeabilityState uint32
[Full Topic]
const (
	KPurgeableEmpty       PurgeabilityState = 2
	KPurgeableKeepCurrent PurgeabilityState = 3
	KPurgeableNonVolatile PurgeabilityState = 0
	KPurgeableVolatile    PurgeabilityState = 1
)

type Ref

type Ref uintptr

Data type representing an IOSurface opaque object. Full Topic

type Subsampling

type Subsampling int32
[Full Topic]
const (
	KSubsampling411     Subsampling = 4
	KSubsampling420     Subsampling = 3
	KSubsampling422     Subsampling = 2
	KSubsamplingNone    Subsampling = 1
	KSubsamplingUnknown Subsampling = 0
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL