coreimage

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package coreimage provides a fluent Go API over the macOS CoreImage framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIDetectorAccuracy

func CIDetectorAccuracy() obj.Object

CIDetectorAccuracy returns the string constant CIDetectorAccuracy, for use as a dictionary key or argument.

func CIDetectorAccuracyHigh

func CIDetectorAccuracyHigh() obj.Object

CIDetectorAccuracyHigh returns the string constant CIDetectorAccuracyHigh, for use as a dictionary key or argument.

func CIDetectorAccuracyLow

func CIDetectorAccuracyLow() obj.Object

CIDetectorAccuracyLow returns the string constant CIDetectorAccuracyLow, for use as a dictionary key or argument.

func CIDetectorAspectRatio

func CIDetectorAspectRatio() obj.Object

CIDetectorAspectRatio returns the string constant CIDetectorAspectRatio, for use as a dictionary key or argument.

func CIDetectorEyeBlink() obj.Object

CIDetectorEyeBlink returns the string constant CIDetectorEyeBlink, for use as a dictionary key or argument.

func CIDetectorFocalLength

func CIDetectorFocalLength() obj.Object

CIDetectorFocalLength returns the string constant CIDetectorFocalLength, for use as a dictionary key or argument.

func CIDetectorImageOrientation

func CIDetectorImageOrientation() obj.Object

CIDetectorImageOrientation returns the string constant CIDetectorImageOrientation, for use as a dictionary key or argument.

func CIDetectorMaxFeatureCount

func CIDetectorMaxFeatureCount() obj.Object

CIDetectorMaxFeatureCount returns the string constant CIDetectorMaxFeatureCount, for use as a dictionary key or argument.

func CIDetectorMinFeatureSize

func CIDetectorMinFeatureSize() obj.Object

CIDetectorMinFeatureSize returns the string constant CIDetectorMinFeatureSize, for use as a dictionary key or argument.

func CIDetectorNumberOfAngles

func CIDetectorNumberOfAngles() obj.Object

CIDetectorNumberOfAngles returns the string constant CIDetectorNumberOfAngles, for use as a dictionary key or argument.

func CIDetectorReturnSubFeatures

func CIDetectorReturnSubFeatures() obj.Object

CIDetectorReturnSubFeatures returns the string constant CIDetectorReturnSubFeatures, for use as a dictionary key or argument.

func CIDetectorSmile

func CIDetectorSmile() obj.Object

CIDetectorSmile returns the string constant CIDetectorSmile, for use as a dictionary key or argument.

func CIDetectorTracking

func CIDetectorTracking() obj.Object

CIDetectorTracking returns the string constant CIDetectorTracking, for use as a dictionary key or argument.

func CIDetectorTypeFace

func CIDetectorTypeFace() obj.Object

CIDetectorTypeFace returns the string constant CIDetectorTypeFace, for use as a dictionary key or argument.

func CIDetectorTypeQRCode

func CIDetectorTypeQRCode() obj.Object

CIDetectorTypeQRCode returns the string constant CIDetectorTypeQRCode, for use as a dictionary key or argument.

func CIDetectorTypeRectangle

func CIDetectorTypeRectangle() obj.Object

CIDetectorTypeRectangle returns the string constant CIDetectorTypeRectangle, for use as a dictionary key or argument.

func CIDetectorTypeText

func CIDetectorTypeText() obj.Object

CIDetectorTypeText returns the string constant CIDetectorTypeText, for use as a dictionary key or argument.

func CIFeatureTypeFace

func CIFeatureTypeFace() obj.Object

CIFeatureTypeFace returns the string constant CIFeatureTypeFace, for use as a dictionary key or argument.

func CIFeatureTypeQRCode

func CIFeatureTypeQRCode() obj.Object

CIFeatureTypeQRCode returns the string constant CIFeatureTypeQRCode, for use as a dictionary key or argument.

func CIFeatureTypeRectangle

func CIFeatureTypeRectangle() obj.Object

CIFeatureTypeRectangle returns the string constant CIFeatureTypeRectangle, for use as a dictionary key or argument.

func CIFeatureTypeText

func CIFeatureTypeText() obj.Object

CIFeatureTypeText returns the string constant CIFeatureTypeText, for use as a dictionary key or argument.

func CIRAWDecoderVersion6

func CIRAWDecoderVersion6() obj.Object

CIRAWDecoderVersion6 returns the string constant CIRAWDecoderVersion6, for use as a dictionary key or argument.

func CIRAWDecoderVersion6DNG

func CIRAWDecoderVersion6DNG() obj.Object

CIRAWDecoderVersion6DNG returns the string constant CIRAWDecoderVersion6DNG, for use as a dictionary key or argument.

func CIRAWDecoderVersion7

func CIRAWDecoderVersion7() obj.Object

CIRAWDecoderVersion7 returns the string constant CIRAWDecoderVersion7, for use as a dictionary key or argument.

func CIRAWDecoderVersion7DNG

func CIRAWDecoderVersion7DNG() obj.Object

CIRAWDecoderVersion7DNG returns the string constant CIRAWDecoderVersion7DNG, for use as a dictionary key or argument.

func CIRAWDecoderVersion8

func CIRAWDecoderVersion8() obj.Object

CIRAWDecoderVersion8 returns the string constant CIRAWDecoderVersion8, for use as a dictionary key or argument.

func CIRAWDecoderVersion8DNG

func CIRAWDecoderVersion8DNG() obj.Object

CIRAWDecoderVersion8DNG returns the string constant CIRAWDecoderVersion8DNG, for use as a dictionary key or argument.

func CIRAWDecoderVersion9

func CIRAWDecoderVersion9() obj.Object

CIRAWDecoderVersion9 returns the string constant CIRAWDecoderVersion9, for use as a dictionary key or argument.

func CIRAWDecoderVersion9DNG

func CIRAWDecoderVersion9DNG() obj.Object

CIRAWDecoderVersion9DNG returns the string constant CIRAWDecoderVersion9DNG, for use as a dictionary key or argument.

func CIRAWDecoderVersionNone

func CIRAWDecoderVersionNone() obj.Object

CIRAWDecoderVersionNone returns the string constant CIRAWDecoderVersionNone, for use as a dictionary key or argument.

func FilterNamesInCategories added in v0.17.0

func FilterNamesInCategories(categories []string) []string

FilterNamesInCategories returns an array containing all published filter names that belong to all listed categories.

func FilterNamesInCategory added in v0.17.0

func FilterNamesInCategory(category string) []string

FilterNamesInCategory returns an array containing all published filter names in a category.

func FormatForInputAtIndex added in v0.17.0

func FormatForInputAtIndex(inputIndex int) int

FormatForInputAtIndex override this class method if you want your any of the inputs to be in a specific pixel format.

func KCIActiveKeys

func KCIActiveKeys() obj.Object

KCIActiveKeys returns the string constant kCIActiveKeys, for use as a dictionary key or argument.

func KCIApplyOptionColorSpace

func KCIApplyOptionColorSpace() obj.Object

KCIApplyOptionColorSpace returns the string constant kCIApplyOptionColorSpace, for use as a dictionary key or argument.

func KCIApplyOptionDefinition

func KCIApplyOptionDefinition() obj.Object

KCIApplyOptionDefinition returns the string constant kCIApplyOptionDefinition, for use as a dictionary key or argument.

func KCIApplyOptionExtent

func KCIApplyOptionExtent() obj.Object

KCIApplyOptionExtent returns the string constant kCIApplyOptionExtent, for use as a dictionary key or argument.

func KCIApplyOptionUserInfo

func KCIApplyOptionUserInfo() obj.Object

KCIApplyOptionUserInfo returns the string constant kCIApplyOptionUserInfo, for use as a dictionary key or argument.

func KCIAttributeClass

func KCIAttributeClass() obj.Object

KCIAttributeClass returns the string constant kCIAttributeClass, for use as a dictionary key or argument.

func KCIAttributeDefault

func KCIAttributeDefault() obj.Object

KCIAttributeDefault returns the string constant kCIAttributeDefault, for use as a dictionary key or argument.

func KCIAttributeDescription

func KCIAttributeDescription() obj.Object

KCIAttributeDescription returns the string constant kCIAttributeDescription, for use as a dictionary key or argument.

func KCIAttributeDisplayName

func KCIAttributeDisplayName() obj.Object

KCIAttributeDisplayName returns the string constant kCIAttributeDisplayName, for use as a dictionary key or argument.

func KCIAttributeFilterAvailable_Mac

func KCIAttributeFilterAvailable_Mac() obj.Object

KCIAttributeFilterAvailable_Mac returns the string constant kCIAttributeFilterAvailable_Mac, for use as a dictionary key or argument.

func KCIAttributeFilterAvailable_iOS

func KCIAttributeFilterAvailable_iOS() obj.Object

KCIAttributeFilterAvailable_iOS returns the string constant kCIAttributeFilterAvailable_iOS, for use as a dictionary key or argument.

func KCIAttributeFilterCategories

func KCIAttributeFilterCategories() obj.Object

KCIAttributeFilterCategories returns the string constant kCIAttributeFilterCategories, for use as a dictionary key or argument.

func KCIAttributeFilterDisplayName

func KCIAttributeFilterDisplayName() obj.Object

KCIAttributeFilterDisplayName returns the string constant kCIAttributeFilterDisplayName, for use as a dictionary key or argument.

func KCIAttributeFilterName

func KCIAttributeFilterName() obj.Object

KCIAttributeFilterName returns the string constant kCIAttributeFilterName, for use as a dictionary key or argument.

func KCIAttributeIdentity

func KCIAttributeIdentity() obj.Object

KCIAttributeIdentity returns the string constant kCIAttributeIdentity, for use as a dictionary key or argument.

func KCIAttributeMax

func KCIAttributeMax() obj.Object

KCIAttributeMax returns the string constant kCIAttributeMax, for use as a dictionary key or argument.

func KCIAttributeMin

func KCIAttributeMin() obj.Object

KCIAttributeMin returns the string constant kCIAttributeMin, for use as a dictionary key or argument.

func KCIAttributeName

func KCIAttributeName() obj.Object

KCIAttributeName returns the string constant kCIAttributeName, for use as a dictionary key or argument.

func KCIAttributeReferenceDocumentation

func KCIAttributeReferenceDocumentation() obj.Object

KCIAttributeReferenceDocumentation returns the string constant kCIAttributeReferenceDocumentation, for use as a dictionary key or argument.

func KCIAttributeSliderMax

func KCIAttributeSliderMax() obj.Object

KCIAttributeSliderMax returns the string constant kCIAttributeSliderMax, for use as a dictionary key or argument.

func KCIAttributeSliderMin

func KCIAttributeSliderMin() obj.Object

KCIAttributeSliderMin returns the string constant kCIAttributeSliderMin, for use as a dictionary key or argument.

func KCIAttributeType

func KCIAttributeType() obj.Object

KCIAttributeType returns the string constant kCIAttributeType, for use as a dictionary key or argument.

func KCIAttributeTypeAngle

func KCIAttributeTypeAngle() obj.Object

KCIAttributeTypeAngle returns the string constant kCIAttributeTypeAngle, for use as a dictionary key or argument.

func KCIAttributeTypeBoolean

func KCIAttributeTypeBoolean() obj.Object

KCIAttributeTypeBoolean returns the string constant kCIAttributeTypeBoolean, for use as a dictionary key or argument.

func KCIAttributeTypeColor

func KCIAttributeTypeColor() obj.Object

KCIAttributeTypeColor returns the string constant kCIAttributeTypeColor, for use as a dictionary key or argument.

func KCIAttributeTypeCount

func KCIAttributeTypeCount() obj.Object

KCIAttributeTypeCount returns the string constant kCIAttributeTypeCount, for use as a dictionary key or argument.

func KCIAttributeTypeDistance

func KCIAttributeTypeDistance() obj.Object

KCIAttributeTypeDistance returns the string constant kCIAttributeTypeDistance, for use as a dictionary key or argument.

func KCIAttributeTypeGradient

func KCIAttributeTypeGradient() obj.Object

KCIAttributeTypeGradient returns the string constant kCIAttributeTypeGradient, for use as a dictionary key or argument.

func KCIAttributeTypeImage

func KCIAttributeTypeImage() obj.Object

KCIAttributeTypeImage returns the string constant kCIAttributeTypeImage, for use as a dictionary key or argument.

func KCIAttributeTypeInteger

func KCIAttributeTypeInteger() obj.Object

KCIAttributeTypeInteger returns the string constant kCIAttributeTypeInteger, for use as a dictionary key or argument.

func KCIAttributeTypeOffset

func KCIAttributeTypeOffset() obj.Object

KCIAttributeTypeOffset returns the string constant kCIAttributeTypeOffset, for use as a dictionary key or argument.

func KCIAttributeTypeOpaqueColor

func KCIAttributeTypeOpaqueColor() obj.Object

KCIAttributeTypeOpaqueColor returns the string constant kCIAttributeTypeOpaqueColor, for use as a dictionary key or argument.

func KCIAttributeTypePosition

func KCIAttributeTypePosition() obj.Object

KCIAttributeTypePosition returns the string constant kCIAttributeTypePosition, for use as a dictionary key or argument.

func KCIAttributeTypePosition3

func KCIAttributeTypePosition3() obj.Object

KCIAttributeTypePosition3 returns the string constant kCIAttributeTypePosition3, for use as a dictionary key or argument.

func KCIAttributeTypeRectangle

func KCIAttributeTypeRectangle() obj.Object

KCIAttributeTypeRectangle returns the string constant kCIAttributeTypeRectangle, for use as a dictionary key or argument.

func KCIAttributeTypeScalar

func KCIAttributeTypeScalar() obj.Object

KCIAttributeTypeScalar returns the string constant kCIAttributeTypeScalar, for use as a dictionary key or argument.

func KCIAttributeTypeTime

func KCIAttributeTypeTime() obj.Object

KCIAttributeTypeTime returns the string constant kCIAttributeTypeTime, for use as a dictionary key or argument.

func KCIAttributeTypeTransform

func KCIAttributeTypeTransform() obj.Object

KCIAttributeTypeTransform returns the string constant kCIAttributeTypeTransform, for use as a dictionary key or argument.

func KCICategoryBlur

func KCICategoryBlur() obj.Object

KCICategoryBlur returns the string constant kCICategoryBlur, for use as a dictionary key or argument.

func KCICategoryBuiltIn

func KCICategoryBuiltIn() obj.Object

KCICategoryBuiltIn returns the string constant kCICategoryBuiltIn, for use as a dictionary key or argument.

func KCICategoryColorAdjustment

func KCICategoryColorAdjustment() obj.Object

KCICategoryColorAdjustment returns the string constant kCICategoryColorAdjustment, for use as a dictionary key or argument.

func KCICategoryColorEffect

func KCICategoryColorEffect() obj.Object

KCICategoryColorEffect returns the string constant kCICategoryColorEffect, for use as a dictionary key or argument.

func KCICategoryCompositeOperation

func KCICategoryCompositeOperation() obj.Object

KCICategoryCompositeOperation returns the string constant kCICategoryCompositeOperation, for use as a dictionary key or argument.

func KCICategoryDistortionEffect

func KCICategoryDistortionEffect() obj.Object

KCICategoryDistortionEffect returns the string constant kCICategoryDistortionEffect, for use as a dictionary key or argument.

func KCICategoryFilterGenerator

func KCICategoryFilterGenerator() obj.Object

KCICategoryFilterGenerator returns the string constant kCICategoryFilterGenerator, for use as a dictionary key or argument.

func KCICategoryGenerator

func KCICategoryGenerator() obj.Object

KCICategoryGenerator returns the string constant kCICategoryGenerator, for use as a dictionary key or argument.

func KCICategoryGeometryAdjustment

func KCICategoryGeometryAdjustment() obj.Object

KCICategoryGeometryAdjustment returns the string constant kCICategoryGeometryAdjustment, for use as a dictionary key or argument.

func KCICategoryGradient

func KCICategoryGradient() obj.Object

KCICategoryGradient returns the string constant kCICategoryGradient, for use as a dictionary key or argument.

func KCICategoryHalftoneEffect

func KCICategoryHalftoneEffect() obj.Object

KCICategoryHalftoneEffect returns the string constant kCICategoryHalftoneEffect, for use as a dictionary key or argument.

func KCICategoryHighDynamicRange

func KCICategoryHighDynamicRange() obj.Object

KCICategoryHighDynamicRange returns the string constant kCICategoryHighDynamicRange, for use as a dictionary key or argument.

func KCICategoryInterlaced

func KCICategoryInterlaced() obj.Object

KCICategoryInterlaced returns the string constant kCICategoryInterlaced, for use as a dictionary key or argument.

func KCICategoryNonSquarePixels

func KCICategoryNonSquarePixels() obj.Object

KCICategoryNonSquarePixels returns the string constant kCICategoryNonSquarePixels, for use as a dictionary key or argument.

func KCICategoryReduction

func KCICategoryReduction() obj.Object

KCICategoryReduction returns the string constant kCICategoryReduction, for use as a dictionary key or argument.

func KCICategorySharpen

func KCICategorySharpen() obj.Object

KCICategorySharpen returns the string constant kCICategorySharpen, for use as a dictionary key or argument.

func KCICategoryStillImage

func KCICategoryStillImage() obj.Object

KCICategoryStillImage returns the string constant kCICategoryStillImage, for use as a dictionary key or argument.

func KCICategoryStylize

func KCICategoryStylize() obj.Object

KCICategoryStylize returns the string constant kCICategoryStylize, for use as a dictionary key or argument.

func KCICategoryTileEffect

func KCICategoryTileEffect() obj.Object

KCICategoryTileEffect returns the string constant kCICategoryTileEffect, for use as a dictionary key or argument.

func KCICategoryTransition

func KCICategoryTransition() obj.Object

KCICategoryTransition returns the string constant kCICategoryTransition, for use as a dictionary key or argument.

func KCICategoryVideo

func KCICategoryVideo() obj.Object

KCICategoryVideo returns the string constant kCICategoryVideo, for use as a dictionary key or argument.

func KCIContextAllowLowPower

func KCIContextAllowLowPower() obj.Object

KCIContextAllowLowPower returns the string constant kCIContextAllowLowPower, for use as a dictionary key or argument.

func KCIContextCVMetalTextureCache

func KCIContextCVMetalTextureCache() obj.Object

KCIContextCVMetalTextureCache returns the string constant kCIContextCVMetalTextureCache, for use as a dictionary key or argument.

func KCIContextCacheIntermediates

func KCIContextCacheIntermediates() obj.Object

KCIContextCacheIntermediates returns the string constant kCIContextCacheIntermediates, for use as a dictionary key or argument.

func KCIContextHighQualityDownsample

func KCIContextHighQualityDownsample() obj.Object

KCIContextHighQualityDownsample returns the string constant kCIContextHighQualityDownsample, for use as a dictionary key or argument.

func KCIContextMemoryLimit

func KCIContextMemoryLimit() obj.Object

KCIContextMemoryLimit returns the string constant kCIContextMemoryLimit, for use as a dictionary key or argument.

func KCIContextName

func KCIContextName() obj.Object

KCIContextName returns the string constant kCIContextName, for use as a dictionary key or argument.

func KCIContextOutputColorSpace

func KCIContextOutputColorSpace() obj.Object

KCIContextOutputColorSpace returns the string constant kCIContextOutputColorSpace, for use as a dictionary key or argument.

func KCIContextOutputPremultiplied

func KCIContextOutputPremultiplied() obj.Object

KCIContextOutputPremultiplied returns the string constant kCIContextOutputPremultiplied, for use as a dictionary key or argument.

func KCIContextPriorityRequestLow

func KCIContextPriorityRequestLow() obj.Object

KCIContextPriorityRequestLow returns the string constant kCIContextPriorityRequestLow, for use as a dictionary key or argument.

func KCIContextUseSoftwareRenderer

func KCIContextUseSoftwareRenderer() obj.Object

KCIContextUseSoftwareRenderer returns the string constant kCIContextUseSoftwareRenderer, for use as a dictionary key or argument.

func KCIContextWorkingColorSpace

func KCIContextWorkingColorSpace() obj.Object

KCIContextWorkingColorSpace returns the string constant kCIContextWorkingColorSpace, for use as a dictionary key or argument.

func KCIContextWorkingFormat

func KCIContextWorkingFormat() obj.Object

KCIContextWorkingFormat returns the string constant kCIContextWorkingFormat, for use as a dictionary key or argument.

func KCIDynamicRangeConstrainedHigh

func KCIDynamicRangeConstrainedHigh() obj.Object

KCIDynamicRangeConstrainedHigh returns the string constant kCIDynamicRangeConstrainedHigh, for use as a dictionary key or argument.

func KCIDynamicRangeHigh

func KCIDynamicRangeHigh() obj.Object

KCIDynamicRangeHigh returns the string constant kCIDynamicRangeHigh, for use as a dictionary key or argument.

func KCIDynamicRangeStandard

func KCIDynamicRangeStandard() obj.Object

KCIDynamicRangeStandard returns the string constant kCIDynamicRangeStandard, for use as a dictionary key or argument.

func KCIFilterGeneratorExportedKey

func KCIFilterGeneratorExportedKey() obj.Object

KCIFilterGeneratorExportedKey returns the string constant kCIFilterGeneratorExportedKey, for use as a dictionary key or argument.

func KCIFilterGeneratorExportedKeyName

func KCIFilterGeneratorExportedKeyName() obj.Object

KCIFilterGeneratorExportedKeyName returns the string constant kCIFilterGeneratorExportedKeyName, for use as a dictionary key or argument.

func KCIFilterGeneratorExportedKeyTargetObject

func KCIFilterGeneratorExportedKeyTargetObject() obj.Object

KCIFilterGeneratorExportedKeyTargetObject returns the string constant kCIFilterGeneratorExportedKeyTargetObject, for use as a dictionary key or argument.

func KCIFormatA8

func KCIFormatA8() int

KCIFormatA8 returns the value of the constant kCIFormatA8.

func KCIFormatA16

func KCIFormatA16() int

KCIFormatA16 returns the value of the constant kCIFormatA16.

func KCIFormatABGR8

func KCIFormatABGR8() int

KCIFormatABGR8 returns the value of the constant kCIFormatABGR8.

func KCIFormatARGB8

func KCIFormatARGB8() int

KCIFormatARGB8 returns the value of the constant kCIFormatARGB8.

func KCIFormatAf

func KCIFormatAf() int

KCIFormatAf returns the value of the constant kCIFormatAf.

func KCIFormatAh

func KCIFormatAh() int

KCIFormatAh returns the value of the constant kCIFormatAh.

func KCIFormatBGRA8

func KCIFormatBGRA8() int

KCIFormatBGRA8 returns the value of the constant kCIFormatBGRA8.

func KCIFormatL8

func KCIFormatL8() int

KCIFormatL8 returns the value of the constant kCIFormatL8.

func KCIFormatL16

func KCIFormatL16() int

KCIFormatL16 returns the value of the constant kCIFormatL16.

func KCIFormatLA8

func KCIFormatLA8() int

KCIFormatLA8 returns the value of the constant kCIFormatLA8.

func KCIFormatLA16

func KCIFormatLA16() int

KCIFormatLA16 returns the value of the constant kCIFormatLA16.

func KCIFormatLAf

func KCIFormatLAf() int

KCIFormatLAf returns the value of the constant kCIFormatLAf.

func KCIFormatLAh

func KCIFormatLAh() int

KCIFormatLAh returns the value of the constant kCIFormatLAh.

func KCIFormatLf

func KCIFormatLf() int

KCIFormatLf returns the value of the constant kCIFormatLf.

func KCIFormatLh

func KCIFormatLh() int

KCIFormatLh returns the value of the constant kCIFormatLh.

func KCIFormatR8

func KCIFormatR8() int

KCIFormatR8 returns the value of the constant kCIFormatR8.

func KCIFormatR16

func KCIFormatR16() int

KCIFormatR16 returns the value of the constant kCIFormatR16.

func KCIFormatRG8

func KCIFormatRG8() int

KCIFormatRG8 returns the value of the constant kCIFormatRG8.

func KCIFormatRG16

func KCIFormatRG16() int

KCIFormatRG16 returns the value of the constant kCIFormatRG16.

func KCIFormatRGB10

func KCIFormatRGB10() int

KCIFormatRGB10 returns the value of the constant kCIFormatRGB10.

func KCIFormatRGBA8

func KCIFormatRGBA8() int

KCIFormatRGBA8 returns the value of the constant kCIFormatRGBA8.

func KCIFormatRGBA16

func KCIFormatRGBA16() int

KCIFormatRGBA16 returns the value of the constant kCIFormatRGBA16.

func KCIFormatRGBAf

func KCIFormatRGBAf() int

KCIFormatRGBAf returns the value of the constant kCIFormatRGBAf.

func KCIFormatRGBAh

func KCIFormatRGBAh() int

KCIFormatRGBAh returns the value of the constant kCIFormatRGBAh.

func KCIFormatRGBX8

func KCIFormatRGBX8() int

KCIFormatRGBX8 returns the value of the constant kCIFormatRGBX8.

func KCIFormatRGBX16

func KCIFormatRGBX16() int

KCIFormatRGBX16 returns the value of the constant kCIFormatRGBX16.

func KCIFormatRGBXf

func KCIFormatRGBXf() int

KCIFormatRGBXf returns the value of the constant kCIFormatRGBXf.

func KCIFormatRGBXh

func KCIFormatRGBXh() int

KCIFormatRGBXh returns the value of the constant kCIFormatRGBXh.

func KCIFormatRGf

func KCIFormatRGf() int

KCIFormatRGf returns the value of the constant kCIFormatRGf.

func KCIFormatRGh

func KCIFormatRGh() int

KCIFormatRGh returns the value of the constant kCIFormatRGh.

func KCIFormatRf

func KCIFormatRf() int

KCIFormatRf returns the value of the constant kCIFormatRf.

func KCIFormatRh

func KCIFormatRh() int

KCIFormatRh returns the value of the constant kCIFormatRh.

func KCIImageApplyCleanAperture

func KCIImageApplyCleanAperture() obj.Object

KCIImageApplyCleanAperture returns the string constant kCIImageApplyCleanAperture, for use as a dictionary key or argument.

func KCIImageApplyOrientationProperty

func KCIImageApplyOrientationProperty() obj.Object

KCIImageApplyOrientationProperty returns the string constant kCIImageApplyOrientationProperty, for use as a dictionary key or argument.

func KCIImageAutoAdjustCrop

func KCIImageAutoAdjustCrop() obj.Object

KCIImageAutoAdjustCrop returns the string constant kCIImageAutoAdjustCrop, for use as a dictionary key or argument.

func KCIImageAutoAdjustEnhance

func KCIImageAutoAdjustEnhance() obj.Object

KCIImageAutoAdjustEnhance returns the string constant kCIImageAutoAdjustEnhance, for use as a dictionary key or argument.

func KCIImageAutoAdjustFeatures

func KCIImageAutoAdjustFeatures() obj.Object

KCIImageAutoAdjustFeatures returns the string constant kCIImageAutoAdjustFeatures, for use as a dictionary key or argument.

func KCIImageAutoAdjustLevel

func KCIImageAutoAdjustLevel() obj.Object

KCIImageAutoAdjustLevel returns the string constant kCIImageAutoAdjustLevel, for use as a dictionary key or argument.

func KCIImageAutoAdjustRedEye

func KCIImageAutoAdjustRedEye() obj.Object

KCIImageAutoAdjustRedEye returns the string constant kCIImageAutoAdjustRedEye, for use as a dictionary key or argument.

func KCIImageAuxiliaryDepth

func KCIImageAuxiliaryDepth() obj.Object

KCIImageAuxiliaryDepth returns the string constant kCIImageAuxiliaryDepth, for use as a dictionary key or argument.

func KCIImageAuxiliaryDisparity

func KCIImageAuxiliaryDisparity() obj.Object

KCIImageAuxiliaryDisparity returns the string constant kCIImageAuxiliaryDisparity, for use as a dictionary key or argument.

func KCIImageAuxiliaryHDRGainMap

func KCIImageAuxiliaryHDRGainMap() obj.Object

KCIImageAuxiliaryHDRGainMap returns the string constant kCIImageAuxiliaryHDRGainMap, for use as a dictionary key or argument.

func KCIImageAuxiliaryPortraitEffectsMatte

func KCIImageAuxiliaryPortraitEffectsMatte() obj.Object

KCIImageAuxiliaryPortraitEffectsMatte returns the string constant kCIImageAuxiliaryPortraitEffectsMatte, for use as a dictionary key or argument.

func KCIImageAuxiliarySemanticSegmentationGlassesMatte

func KCIImageAuxiliarySemanticSegmentationGlassesMatte() obj.Object

KCIImageAuxiliarySemanticSegmentationGlassesMatte returns the string constant kCIImageAuxiliarySemanticSegmentationGlassesMatte, for use as a dictionary key or argument.

func KCIImageAuxiliarySemanticSegmentationHairMatte

func KCIImageAuxiliarySemanticSegmentationHairMatte() obj.Object

KCIImageAuxiliarySemanticSegmentationHairMatte returns the string constant kCIImageAuxiliarySemanticSegmentationHairMatte, for use as a dictionary key or argument.

func KCIImageAuxiliarySemanticSegmentationSkinMatte

func KCIImageAuxiliarySemanticSegmentationSkinMatte() obj.Object

KCIImageAuxiliarySemanticSegmentationSkinMatte returns the string constant kCIImageAuxiliarySemanticSegmentationSkinMatte, for use as a dictionary key or argument.

func KCIImageAuxiliarySemanticSegmentationSkyMatte

func KCIImageAuxiliarySemanticSegmentationSkyMatte() obj.Object

KCIImageAuxiliarySemanticSegmentationSkyMatte returns the string constant kCIImageAuxiliarySemanticSegmentationSkyMatte, for use as a dictionary key or argument.

func KCIImageAuxiliarySemanticSegmentationTeethMatte

func KCIImageAuxiliarySemanticSegmentationTeethMatte() obj.Object

KCIImageAuxiliarySemanticSegmentationTeethMatte returns the string constant kCIImageAuxiliarySemanticSegmentationTeethMatte, for use as a dictionary key or argument.

func KCIImageCacheImmediately

func KCIImageCacheImmediately() obj.Object

KCIImageCacheImmediately returns the string constant kCIImageCacheImmediately, for use as a dictionary key or argument.

func KCIImageColorSpace

func KCIImageColorSpace() obj.Object

KCIImageColorSpace returns the string constant kCIImageColorSpace, for use as a dictionary key or argument.

func KCIImageContentAverageLightLevel

func KCIImageContentAverageLightLevel() obj.Object

KCIImageContentAverageLightLevel returns the string constant kCIImageContentAverageLightLevel, for use as a dictionary key or argument.

func KCIImageContentHeadroom

func KCIImageContentHeadroom() obj.Object

KCIImageContentHeadroom returns the string constant kCIImageContentHeadroom, for use as a dictionary key or argument.

func KCIImageExpandToHDR

func KCIImageExpandToHDR() obj.Object

KCIImageExpandToHDR returns the string constant kCIImageExpandToHDR, for use as a dictionary key or argument.

func KCIImageNearestSampling

func KCIImageNearestSampling() obj.Object

KCIImageNearestSampling returns the string constant kCIImageNearestSampling, for use as a dictionary key or argument.

func KCIImageProperties

func KCIImageProperties() obj.Object

KCIImageProperties returns the string constant kCIImageProperties, for use as a dictionary key or argument.

func KCIImageProviderTileSize

func KCIImageProviderTileSize() obj.Object

KCIImageProviderTileSize returns the string constant kCIImageProviderTileSize, for use as a dictionary key or argument.

func KCIImageProviderUserInfo

func KCIImageProviderUserInfo() obj.Object

KCIImageProviderUserInfo returns the string constant kCIImageProviderUserInfo, for use as a dictionary key or argument.

func KCIImageRepresentationAVDepthData

func KCIImageRepresentationAVDepthData() obj.Object

KCIImageRepresentationAVDepthData returns the string constant kCIImageRepresentationAVDepthData, for use as a dictionary key or argument.

func KCIImageRepresentationAVPortraitEffectsMatte

func KCIImageRepresentationAVPortraitEffectsMatte() obj.Object

KCIImageRepresentationAVPortraitEffectsMatte returns the string constant kCIImageRepresentationAVPortraitEffectsMatte, for use as a dictionary key or argument.

func KCIImageRepresentationAVSemanticSegmentationMattes

func KCIImageRepresentationAVSemanticSegmentationMattes() obj.Object

KCIImageRepresentationAVSemanticSegmentationMattes returns the string constant kCIImageRepresentationAVSemanticSegmentationMattes, for use as a dictionary key or argument.

func KCIImageRepresentationDepthImage

func KCIImageRepresentationDepthImage() obj.Object

KCIImageRepresentationDepthImage returns the string constant kCIImageRepresentationDepthImage, for use as a dictionary key or argument.

func KCIImageRepresentationDisparityImage

func KCIImageRepresentationDisparityImage() obj.Object

KCIImageRepresentationDisparityImage returns the string constant kCIImageRepresentationDisparityImage, for use as a dictionary key or argument.

func KCIImageRepresentationHDRGainMapAsRGB

func KCIImageRepresentationHDRGainMapAsRGB() obj.Object

KCIImageRepresentationHDRGainMapAsRGB returns the string constant kCIImageRepresentationHDRGainMapAsRGB, for use as a dictionary key or argument.

func KCIImageRepresentationHDRGainMapImage

func KCIImageRepresentationHDRGainMapImage() obj.Object

KCIImageRepresentationHDRGainMapImage returns the string constant kCIImageRepresentationHDRGainMapImage, for use as a dictionary key or argument.

func KCIImageRepresentationHDRImage

func KCIImageRepresentationHDRImage() obj.Object

KCIImageRepresentationHDRImage returns the string constant kCIImageRepresentationHDRImage, for use as a dictionary key or argument.

func KCIImageRepresentationPortraitEffectsMatteImage

func KCIImageRepresentationPortraitEffectsMatteImage() obj.Object

KCIImageRepresentationPortraitEffectsMatteImage returns the string constant kCIImageRepresentationPortraitEffectsMatteImage, for use as a dictionary key or argument.

func KCIImageRepresentationSemanticSegmentationGlassesMatteImage

func KCIImageRepresentationSemanticSegmentationGlassesMatteImage() obj.Object

KCIImageRepresentationSemanticSegmentationGlassesMatteImage returns the string constant kCIImageRepresentationSemanticSegmentationGlassesMatteImage, for use as a dictionary key or argument.

func KCIImageRepresentationSemanticSegmentationHairMatteImage

func KCIImageRepresentationSemanticSegmentationHairMatteImage() obj.Object

KCIImageRepresentationSemanticSegmentationHairMatteImage returns the string constant kCIImageRepresentationSemanticSegmentationHairMatteImage, for use as a dictionary key or argument.

func KCIImageRepresentationSemanticSegmentationSkinMatteImage

func KCIImageRepresentationSemanticSegmentationSkinMatteImage() obj.Object

KCIImageRepresentationSemanticSegmentationSkinMatteImage returns the string constant kCIImageRepresentationSemanticSegmentationSkinMatteImage, for use as a dictionary key or argument.

func KCIImageRepresentationSemanticSegmentationSkyMatteImage

func KCIImageRepresentationSemanticSegmentationSkyMatteImage() obj.Object

KCIImageRepresentationSemanticSegmentationSkyMatteImage returns the string constant kCIImageRepresentationSemanticSegmentationSkyMatteImage, for use as a dictionary key or argument.

func KCIImageRepresentationSemanticSegmentationTeethMatteImage

func KCIImageRepresentationSemanticSegmentationTeethMatteImage() obj.Object

KCIImageRepresentationSemanticSegmentationTeethMatteImage returns the string constant kCIImageRepresentationSemanticSegmentationTeethMatteImage, for use as a dictionary key or argument.

func KCIImageTextureFormat

func KCIImageTextureFormat() obj.Object

KCIImageTextureFormat returns the string constant kCIImageTextureFormat, for use as a dictionary key or argument.

func KCIImageTextureTarget

func KCIImageTextureTarget() obj.Object

KCIImageTextureTarget returns the string constant kCIImageTextureTarget, for use as a dictionary key or argument.

func KCIImageToneMapHDRtoSDR

func KCIImageToneMapHDRtoSDR() obj.Object

KCIImageToneMapHDRtoSDR returns the string constant kCIImageToneMapHDRtoSDR, for use as a dictionary key or argument.

func KCIInputAllowDraftModeKey

func KCIInputAllowDraftModeKey() obj.Object

KCIInputAllowDraftModeKey returns the string constant kCIInputAllowDraftModeKey, for use as a dictionary key or argument.

func KCIInputAmountKey

func KCIInputAmountKey() obj.Object

KCIInputAmountKey returns the string constant kCIInputAmountKey, for use as a dictionary key or argument.

func KCIInputAngleKey

func KCIInputAngleKey() obj.Object

KCIInputAngleKey returns the string constant kCIInputAngleKey, for use as a dictionary key or argument.

func KCIInputAspectRatioKey

func KCIInputAspectRatioKey() obj.Object

KCIInputAspectRatioKey returns the string constant kCIInputAspectRatioKey, for use as a dictionary key or argument.

func KCIInputBackgroundImageKey

func KCIInputBackgroundImageKey() obj.Object

KCIInputBackgroundImageKey returns the string constant kCIInputBackgroundImageKey, for use as a dictionary key or argument.

func KCIInputBacksideImageKey

func KCIInputBacksideImageKey() obj.Object

KCIInputBacksideImageKey returns the string constant kCIInputBacksideImageKey, for use as a dictionary key or argument.

func KCIInputBaselineExposureKey

func KCIInputBaselineExposureKey() obj.Object

KCIInputBaselineExposureKey returns the string constant kCIInputBaselineExposureKey, for use as a dictionary key or argument.

func KCIInputBiasKey

func KCIInputBiasKey() obj.Object

KCIInputBiasKey returns the string constant kCIInputBiasKey, for use as a dictionary key or argument.

func KCIInputBiasVectorKey

func KCIInputBiasVectorKey() obj.Object

KCIInputBiasVectorKey returns the string constant kCIInputBiasVectorKey, for use as a dictionary key or argument.

func KCIInputBoostKey

func KCIInputBoostKey() obj.Object

KCIInputBoostKey returns the string constant kCIInputBoostKey, for use as a dictionary key or argument.

func KCIInputBoostShadowAmountKey

func KCIInputBoostShadowAmountKey() obj.Object

KCIInputBoostShadowAmountKey returns the string constant kCIInputBoostShadowAmountKey, for use as a dictionary key or argument.

func KCIInputBrightnessKey

func KCIInputBrightnessKey() obj.Object

KCIInputBrightnessKey returns the string constant kCIInputBrightnessKey, for use as a dictionary key or argument.

func KCIInputCenterKey

func KCIInputCenterKey() obj.Object

KCIInputCenterKey returns the string constant kCIInputCenterKey, for use as a dictionary key or argument.

func KCIInputColor0Key

func KCIInputColor0Key() obj.Object

KCIInputColor0Key returns the string constant kCIInputColor0Key, for use as a dictionary key or argument.

func KCIInputColor1Key

func KCIInputColor1Key() obj.Object

KCIInputColor1Key returns the string constant kCIInputColor1Key, for use as a dictionary key or argument.

func KCIInputColorKey

func KCIInputColorKey() obj.Object

KCIInputColorKey returns the string constant kCIInputColorKey, for use as a dictionary key or argument.

func KCIInputColorNoiseReductionAmountKey

func KCIInputColorNoiseReductionAmountKey() obj.Object

KCIInputColorNoiseReductionAmountKey returns the string constant kCIInputColorNoiseReductionAmountKey, for use as a dictionary key or argument.

func KCIInputColorSpaceKey

func KCIInputColorSpaceKey() obj.Object

KCIInputColorSpaceKey returns the string constant kCIInputColorSpaceKey, for use as a dictionary key or argument.

func KCIInputContrastKey

func KCIInputContrastKey() obj.Object

KCIInputContrastKey returns the string constant kCIInputContrastKey, for use as a dictionary key or argument.

func KCIInputCountKey

func KCIInputCountKey() obj.Object

KCIInputCountKey returns the string constant kCIInputCountKey, for use as a dictionary key or argument.

func KCIInputDecoderVersionKey

func KCIInputDecoderVersionKey() obj.Object

KCIInputDecoderVersionKey returns the string constant kCIInputDecoderVersionKey, for use as a dictionary key or argument.

func KCIInputDepthImageKey

func KCIInputDepthImageKey() obj.Object

KCIInputDepthImageKey returns the string constant kCIInputDepthImageKey, for use as a dictionary key or argument.

func KCIInputDisableGamutMapKey

func KCIInputDisableGamutMapKey() obj.Object

KCIInputDisableGamutMapKey returns the string constant kCIInputDisableGamutMapKey, for use as a dictionary key or argument.

func KCIInputDisparityImageKey

func KCIInputDisparityImageKey() obj.Object

KCIInputDisparityImageKey returns the string constant kCIInputDisparityImageKey, for use as a dictionary key or argument.

func KCIInputEVKey

func KCIInputEVKey() obj.Object

KCIInputEVKey returns the string constant kCIInputEVKey, for use as a dictionary key or argument.

func KCIInputEnableChromaticNoiseTrackingKey

func KCIInputEnableChromaticNoiseTrackingKey() obj.Object

KCIInputEnableChromaticNoiseTrackingKey returns the string constant kCIInputEnableChromaticNoiseTrackingKey, for use as a dictionary key or argument.

func KCIInputEnableEDRModeKey

func KCIInputEnableEDRModeKey() obj.Object

KCIInputEnableEDRModeKey returns the string constant kCIInputEnableEDRModeKey, for use as a dictionary key or argument.

func KCIInputEnableSharpeningKey

func KCIInputEnableSharpeningKey() obj.Object

KCIInputEnableSharpeningKey returns the string constant kCIInputEnableSharpeningKey, for use as a dictionary key or argument.

func KCIInputEnableVendorLensCorrectionKey

func KCIInputEnableVendorLensCorrectionKey() obj.Object

KCIInputEnableVendorLensCorrectionKey returns the string constant kCIInputEnableVendorLensCorrectionKey, for use as a dictionary key or argument.

func KCIInputExtentKey

func KCIInputExtentKey() obj.Object

KCIInputExtentKey returns the string constant kCIInputExtentKey, for use as a dictionary key or argument.

func KCIInputExtrapolateKey

func KCIInputExtrapolateKey() obj.Object

KCIInputExtrapolateKey returns the string constant kCIInputExtrapolateKey, for use as a dictionary key or argument.

func KCIInputGradientImageKey

func KCIInputGradientImageKey() obj.Object

KCIInputGradientImageKey returns the string constant kCIInputGradientImageKey, for use as a dictionary key or argument.

func KCIInputIgnoreImageOrientationKey

func KCIInputIgnoreImageOrientationKey() obj.Object

KCIInputIgnoreImageOrientationKey returns the string constant kCIInputIgnoreImageOrientationKey, for use as a dictionary key or argument.

func KCIInputImageKey

func KCIInputImageKey() obj.Object

KCIInputImageKey returns the string constant kCIInputImageKey, for use as a dictionary key or argument.

func KCIInputImageOrientationKey

func KCIInputImageOrientationKey() obj.Object

KCIInputImageOrientationKey returns the string constant kCIInputImageOrientationKey, for use as a dictionary key or argument.

func KCIInputIntensityKey

func KCIInputIntensityKey() obj.Object

KCIInputIntensityKey returns the string constant kCIInputIntensityKey, for use as a dictionary key or argument.

func KCIInputLinearSpaceFilter

func KCIInputLinearSpaceFilter() obj.Object

KCIInputLinearSpaceFilter returns the string constant kCIInputLinearSpaceFilter, for use as a dictionary key or argument.

func KCIInputLocalToneMapAmountKey

func KCIInputLocalToneMapAmountKey() obj.Object

KCIInputLocalToneMapAmountKey returns the string constant kCIInputLocalToneMapAmountKey, for use as a dictionary key or argument.

func KCIInputLuminanceNoiseReductionAmountKey

func KCIInputLuminanceNoiseReductionAmountKey() obj.Object

KCIInputLuminanceNoiseReductionAmountKey returns the string constant kCIInputLuminanceNoiseReductionAmountKey, for use as a dictionary key or argument.

func KCIInputMaskImageKey

func KCIInputMaskImageKey() obj.Object

KCIInputMaskImageKey returns the string constant kCIInputMaskImageKey, for use as a dictionary key or argument.

func KCIInputMatteImageKey

func KCIInputMatteImageKey() obj.Object

KCIInputMatteImageKey returns the string constant kCIInputMatteImageKey, for use as a dictionary key or argument.

func KCIInputMoireAmountKey

func KCIInputMoireAmountKey() obj.Object

KCIInputMoireAmountKey returns the string constant kCIInputMoireAmountKey, for use as a dictionary key or argument.

func KCIInputNeutralChromaticityXKey

func KCIInputNeutralChromaticityXKey() obj.Object

KCIInputNeutralChromaticityXKey returns the string constant kCIInputNeutralChromaticityXKey, for use as a dictionary key or argument.

func KCIInputNeutralChromaticityYKey

func KCIInputNeutralChromaticityYKey() obj.Object

KCIInputNeutralChromaticityYKey returns the string constant kCIInputNeutralChromaticityYKey, for use as a dictionary key or argument.

func KCIInputNeutralLocationKey

func KCIInputNeutralLocationKey() obj.Object

KCIInputNeutralLocationKey returns the string constant kCIInputNeutralLocationKey, for use as a dictionary key or argument.

func KCIInputNeutralTemperatureKey

func KCIInputNeutralTemperatureKey() obj.Object

KCIInputNeutralTemperatureKey returns the string constant kCIInputNeutralTemperatureKey, for use as a dictionary key or argument.

func KCIInputNeutralTintKey

func KCIInputNeutralTintKey() obj.Object

KCIInputNeutralTintKey returns the string constant kCIInputNeutralTintKey, for use as a dictionary key or argument.

func KCIInputNoiseReductionAmountKey

func KCIInputNoiseReductionAmountKey() obj.Object

KCIInputNoiseReductionAmountKey returns the string constant kCIInputNoiseReductionAmountKey, for use as a dictionary key or argument.

func KCIInputNoiseReductionContrastAmountKey

func KCIInputNoiseReductionContrastAmountKey() obj.Object

KCIInputNoiseReductionContrastAmountKey returns the string constant kCIInputNoiseReductionContrastAmountKey, for use as a dictionary key or argument.

func KCIInputNoiseReductionDetailAmountKey

func KCIInputNoiseReductionDetailAmountKey() obj.Object

KCIInputNoiseReductionDetailAmountKey returns the string constant kCIInputNoiseReductionDetailAmountKey, for use as a dictionary key or argument.

func KCIInputNoiseReductionSharpnessAmountKey

func KCIInputNoiseReductionSharpnessAmountKey() obj.Object

KCIInputNoiseReductionSharpnessAmountKey returns the string constant kCIInputNoiseReductionSharpnessAmountKey, for use as a dictionary key or argument.

func KCIInputPaletteImageKey

func KCIInputPaletteImageKey() obj.Object

KCIInputPaletteImageKey returns the string constant kCIInputPaletteImageKey, for use as a dictionary key or argument.

func KCIInputPerceptualKey

func KCIInputPerceptualKey() obj.Object

KCIInputPerceptualKey returns the string constant kCIInputPerceptualKey, for use as a dictionary key or argument.

func KCIInputPoint0Key

func KCIInputPoint0Key() obj.Object

KCIInputPoint0Key returns the string constant kCIInputPoint0Key, for use as a dictionary key or argument.

func KCIInputPoint1Key

func KCIInputPoint1Key() obj.Object

KCIInputPoint1Key returns the string constant kCIInputPoint1Key, for use as a dictionary key or argument.

func KCIInputRadius0Key

func KCIInputRadius0Key() obj.Object

KCIInputRadius0Key returns the string constant kCIInputRadius0Key, for use as a dictionary key or argument.

func KCIInputRadius1Key

func KCIInputRadius1Key() obj.Object

KCIInputRadius1Key returns the string constant kCIInputRadius1Key, for use as a dictionary key or argument.

func KCIInputRadiusKey

func KCIInputRadiusKey() obj.Object

KCIInputRadiusKey returns the string constant kCIInputRadiusKey, for use as a dictionary key or argument.

func KCIInputRefractionKey

func KCIInputRefractionKey() obj.Object

KCIInputRefractionKey returns the string constant kCIInputRefractionKey, for use as a dictionary key or argument.

func KCIInputSaturationKey

func KCIInputSaturationKey() obj.Object

KCIInputSaturationKey returns the string constant kCIInputSaturationKey, for use as a dictionary key or argument.

func KCIInputScaleFactorKey

func KCIInputScaleFactorKey() obj.Object

KCIInputScaleFactorKey returns the string constant kCIInputScaleFactorKey, for use as a dictionary key or argument.

func KCIInputScaleKey

func KCIInputScaleKey() obj.Object

KCIInputScaleKey returns the string constant kCIInputScaleKey, for use as a dictionary key or argument.

func KCIInputShadingImageKey

func KCIInputShadingImageKey() obj.Object

KCIInputShadingImageKey returns the string constant kCIInputShadingImageKey, for use as a dictionary key or argument.

func KCIInputSharpnessKey

func KCIInputSharpnessKey() obj.Object

KCIInputSharpnessKey returns the string constant kCIInputSharpnessKey, for use as a dictionary key or argument.

func KCIInputTargetImageKey

func KCIInputTargetImageKey() obj.Object

KCIInputTargetImageKey returns the string constant kCIInputTargetImageKey, for use as a dictionary key or argument.

func KCIInputThresholdKey

func KCIInputThresholdKey() obj.Object

KCIInputThresholdKey returns the string constant kCIInputThresholdKey, for use as a dictionary key or argument.

func KCIInputTimeKey

func KCIInputTimeKey() obj.Object

KCIInputTimeKey returns the string constant kCIInputTimeKey, for use as a dictionary key or argument.

func KCIInputTransformKey

func KCIInputTransformKey() obj.Object

KCIInputTransformKey returns the string constant kCIInputTransformKey, for use as a dictionary key or argument.

func KCIInputVersionKey

func KCIInputVersionKey() obj.Object

KCIInputVersionKey returns the string constant kCIInputVersionKey, for use as a dictionary key or argument.

func KCIInputWeightsKey

func KCIInputWeightsKey() obj.Object

KCIInputWeightsKey returns the string constant kCIInputWeightsKey, for use as a dictionary key or argument.

func KCIInputWidthKey

func KCIInputWidthKey() obj.Object

KCIInputWidthKey returns the string constant kCIInputWidthKey, for use as a dictionary key or argument.

func KCIOutputImageKey

func KCIOutputImageKey() obj.Object

KCIOutputImageKey returns the string constant kCIOutputImageKey, for use as a dictionary key or argument.

func KCIOutputNativeSizeKey

func KCIOutputNativeSizeKey() obj.Object

KCIOutputNativeSizeKey returns the string constant kCIOutputNativeSizeKey, for use as a dictionary key or argument.

func KCIPropertiesKey

func KCIPropertiesKey() obj.Object

KCIPropertiesKey returns the string constant kCIPropertiesKey, for use as a dictionary key or argument.

func KCISamplerAffineMatrix

func KCISamplerAffineMatrix() obj.Object

KCISamplerAffineMatrix returns the string constant kCISamplerAffineMatrix, for use as a dictionary key or argument.

func KCISamplerColorSpace

func KCISamplerColorSpace() obj.Object

KCISamplerColorSpace returns the string constant kCISamplerColorSpace, for use as a dictionary key or argument.

func KCISamplerFilterLinear

func KCISamplerFilterLinear() obj.Object

KCISamplerFilterLinear returns the string constant kCISamplerFilterLinear, for use as a dictionary key or argument.

func KCISamplerFilterMode

func KCISamplerFilterMode() obj.Object

KCISamplerFilterMode returns the string constant kCISamplerFilterMode, for use as a dictionary key or argument.

func KCISamplerFilterNearest

func KCISamplerFilterNearest() obj.Object

KCISamplerFilterNearest returns the string constant kCISamplerFilterNearest, for use as a dictionary key or argument.

func KCISamplerWrapBlack

func KCISamplerWrapBlack() obj.Object

KCISamplerWrapBlack returns the string constant kCISamplerWrapBlack, for use as a dictionary key or argument.

func KCISamplerWrapClamp

func KCISamplerWrapClamp() obj.Object

KCISamplerWrapClamp returns the string constant kCISamplerWrapClamp, for use as a dictionary key or argument.

func KCISamplerWrapMode

func KCISamplerWrapMode() obj.Object

KCISamplerWrapMode returns the string constant kCISamplerWrapMode, for use as a dictionary key or argument.

func KCISupportedDecoderVersionsKey

func KCISupportedDecoderVersionsKey() obj.Object

KCISupportedDecoderVersionsKey returns the string constant kCISupportedDecoderVersionsKey, for use as a dictionary key or argument.

func KCIUIParameterSet

func KCIUIParameterSet() obj.Object

KCIUIParameterSet returns the string constant kCIUIParameterSet, for use as a dictionary key or argument.

func KCIUISetAdvanced

func KCIUISetAdvanced() obj.Object

KCIUISetAdvanced returns the string constant kCIUISetAdvanced, for use as a dictionary key or argument.

func KCIUISetBasic

func KCIUISetBasic() obj.Object

KCIUISetBasic returns the string constant kCIUISetBasic, for use as a dictionary key or argument.

func KCIUISetDevelopment

func KCIUISetDevelopment() obj.Object

KCIUISetDevelopment returns the string constant kCIUISetDevelopment, for use as a dictionary key or argument.

func KCIUISetIntermediate

func KCIUISetIntermediate() obj.Object

KCIUISetIntermediate returns the string constant kCIUISetIntermediate, for use as a dictionary key or argument.

func KernelNamesFromMetalLibraryData added in v0.17.0

func KernelNamesFromMetalLibraryData(data []byte) []string

KernelNamesFromMetalLibraryData return an array of strings containing the names of all of the kernels contained in the Metal library.

func LoadAllPlugIns added in v0.17.0

func LoadAllPlugIns()

LoadAllPlugIns scans directories for files that have the .plugin extension and then loads the image units.

func LoadNonExecutablePlugIn added in v0.17.0

func LoadNonExecutablePlugIn(url string)

LoadNonExecutablePlugIn loads a non-executable plug-in specified by its URL.

func LoadNonExecutablePlugIns added in v0.17.0

func LoadNonExecutablePlugIns()

LoadNonExecutablePlugIns scans directories for plugins.

func LoadPlugInAllowExecutableCode added in v0.17.0

func LoadPlugInAllowExecutableCode(url string, allowExecutableCode bool)

LoadPlugInAllowExecutableCode loads filters from an image unit that have the appropriate executable status.

func LoadPlugInAllowNonExecutable added in v0.17.0

func LoadPlugInAllowNonExecutable(url string, allowNonExecutable bool)

LoadPlugInAllowNonExecutable loads filters from an image unit that have the appropriate executable status.

func LocalizedDescriptionForFilterName added in v0.17.0

func LocalizedDescriptionForFilterName(filterName string) string

LocalizedDescriptionForFilterName returns the localized description of a filter for display in the UI.

func LocalizedNameForCategory added in v0.17.0

func LocalizedNameForCategory(category string) string

LocalizedNameForCategory returns the localized name of a category for display in the UI.

func LocalizedNameForFilterName added in v0.17.0

func LocalizedNameForFilterName(filterName string) string

LocalizedNameForFilterName returns the localized name of a filter for display in the UI.

func LocalizedReferenceDocumentationForFilterName added in v0.17.0

func LocalizedReferenceDocumentationForFilterName(filterName string) string

LocalizedReferenceDocumentationForFilterName returns the URL to the localized reference documentation describing the filter. The URL can be a local file or a remote document on a webserver. It is possible, that this method returns nil (like filters that predate this feature). A client of this API has to handle this case gracefully.

func OfflineGPUCount added in v0.17.0

func OfflineGPUCount() int

OfflineGPUCount returns the number of GPUs not currently driving a display.

func OutputFormat added in v0.17.0

func OutputFormat() int

OutputFormat returns override this class property if you want your processor's output to be in a specific pixel format. The format must be one of `kCIFormatBGRA8`, `kCIFormatRGBAh`, `kCIFormatRGBAf` or `kCIFormatR8`. On iOS 12 and macOS 10.14, the formats `kCIFormatRh` and `kCIFormatRf` are also supported. If the outputFormat is `0`, then the output will be a supported format that best matches the rendering context's “/CIContext/workingFormat“. If a processor returns data in a color space other than the context working color space, then call “/CIImage/imageByColorMatchingColorSpaceToWorkingSpace:“ on the processor output. If a processor returns data as alpha-unpremultiplied RGBA data, then call, “/CIImage/imageByPremultiplyingAlpha“ on the processor output.

func OutputFormatAtIndexArguments added in v0.17.0

func OutputFormatAtIndexArguments(outputIndex int, arguments map[string]obj.Object) int

OutputFormatAtIndexArguments override this class method if your processor has more than one output and you want your processor’s output to be in a specific supported CIPixelFormat.

func OutputIsOpaque added in v0.17.0

func OutputIsOpaque() bool

OutputIsOpaque reports whether override this class property if your processor's output stores 1.0 into the alpha channel of all pixels within the output extent. If not overridden, false is returned.

func ProcessWithInputsArgumentsOutputs added in v0.17.0

func ProcessWithInputsArgumentsOutputs(inputs []obj.Object, arguments map[string]obj.Object, outputs []obj.Object) error

ProcessWithInputsArgumentsOutputs override this class method of your Core Image Processor Kernel subclass if it needs to produce multiple outputs.

func RoiForInputArgumentsOutputRect added in v0.17.0

func RoiForInputArgumentsOutputRect(inputIndex int, arguments map[string]obj.Object, outputRect corefoundation.CGRect) corefoundation.CGRect

RoiForInputArgumentsOutputRect override this class method to implement your processor’s ROI callback.

func SerializedXMPFromFiltersInputImageExtent added in v0.17.0

func SerializedXMPFromFiltersInputImageExtent(filters []*Filter, extent corefoundation.CGRect) []byte

SerializedXMPFromFiltersInputImageExtent wraps the corresponding Objective-C method.

func SupportedCameraModels added in v0.17.0

func SupportedCameraModels() []string

SupportedCameraModels returns the supported camera models.

SupportedCameraModels returns the collection as a Go slice.

func SupportedRawCameraModels added in v0.17.0

func SupportedRawCameraModels() []string

SupportedRawCameraModels returns a NSArray containing the names of all supported RAW cameras.

SupportedRawCameraModels returns the collection as a Go slice.

func SynchronizeInputs added in v0.17.0

func SynchronizeInputs() bool

SynchronizeInputs reports whether override this class property to return false if you want your processor to be given input objects that have not been synchronized for CPU access. Generally, if your subclass uses the GPU your should override this method to return false. If not overridden, true is returned.

Types

type AztecCodeDescriptor added in v0.17.0

type AztecCodeDescriptor struct {
	BarcodeDescriptor
}

AztecCodeDescriptor is an idiomatic wrapper over the Objective-C class CIAztecCodeDescriptor.

It embeds BarcodeDescriptor, promoting that type's methods.

A concrete subclass the Core Image Barcode Descriptor that represents an Aztec code symbol.

func AztecCodeDescriptorFromID added in v0.17.0

func AztecCodeDescriptorFromID(id objc.ID) *AztecCodeDescriptor

AztecCodeDescriptorFromID adopts an existing Objective-C object as a AztecCodeDescriptor (nil for 0), retaining it and registering a release finalizer.

func DescriptorWithPayloadIsCompactLayerCountDataCodewordCount added in v0.17.0

func DescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) *AztecCodeDescriptor

DescriptorWithPayloadIsCompactLayerCountDataCodewordCount creates an Aztec code descriptor for the given payload and parameters.

func NewAztecCodeDescriptorWithPayloadIsCompactLayerCountDataCodewordCount added in v0.17.0

func NewAztecCodeDescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) *AztecCodeDescriptor

NewAztecCodeDescriptorWithPayloadIsCompactLayerCountDataCodewordCount initializes an Aztec code descriptor for the given payload and parameters.

func (*AztecCodeDescriptor) DataCodewordCount added in v0.17.0

func (acd *AztecCodeDescriptor) DataCodewordCount() int

DataCodewordCount returns the number of non-error-correction codewords carried by the Aztec code symbol. Used to determine the level of error correction in conjunction with the number of data layers. Valid values are 1 to 2048. Compact symbols can have up to 64 message codewords. > Note: this value can exceed the number of message codewords allowed by the number of data layers in this symbol. In this case, the actual number of message codewords is 1024 fewer than this value and the message payload is to be interpreted in an application-defined manner.

func (*AztecCodeDescriptor) ErrorCorrectedPayload added in v0.17.0

func (acd *AztecCodeDescriptor) ErrorCorrectedPayload() []byte

ErrorCorrectedPayload returns the error-corrected payload that comprises the the Aztec code symbol. Aztec Codes are formally specified in ISO/IEC 24778:2008(E). The error corrected payload consists of the 6-, 8-, 10-, or 12-bit message codewords produced at the end of the step described in section 7.3.1.2 "Formation of data codewords", which exists immediately prior to adding error correction. These codewords have dummy bits inserted to ensure that an entire codeword isn't all 0's or all 1's. Clients will need to remove these extra bits as part of interpreting the payload.

func (*AztecCodeDescriptor) IsCompact added in v0.17.0

func (acd *AztecCodeDescriptor) IsCompact() bool

IsCompact reports whether a Boolean value telling if the Aztec code is compact. Compact Aztec symbols use one-fewer ring in the central finder pattern than full-range Aztec symbols of the same number of data layers.

func (*AztecCodeDescriptor) LayerCount added in v0.17.0

func (acd *AztecCodeDescriptor) LayerCount() int

LayerCount returns the number of data layers in the Aztec code symbol. Combined with “isCompact-property“, the number of data layers determines the number of modules in the Aztec Code symbol. Valid values range from 1 to 32. Compact symbols can have up to 4 data layers. The number of data layers also determines the number of bits in each data codeword of the message carried by the Aztec Code symbol.

type BarcodeDescriptor added in v0.17.0

type BarcodeDescriptor struct {
	objref.Handle
}

BarcodeDescriptor is an idiomatic wrapper over the Objective-C class CIBarcodeDescriptor.

BarcodeDescriptor is an abstract base — you do not construct it directly. Construct one of AztecCodeDescriptor, DataMatrixCodeDescriptor, PDF417CodeDescriptor, QRCodeDescriptor and pass it where a BarcodeDescriptor is accepted.

An abstract base class that represents a machine-readable code’s attributes.

func BarcodeDescriptorFromID added in v0.17.0

func BarcodeDescriptorFromID(id objc.ID) *BarcodeDescriptor

BarcodeDescriptorFromID adopts an existing Objective-C object as a BarcodeDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*BarcodeDescriptor) Description added in v0.17.0

func (bd *BarcodeDescriptor) Description() string

Description returns the object's -description text.

func (*BarcodeDescriptor) IsEqual added in v0.17.0

func (bd *BarcodeDescriptor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeDescriptor) IsKind added in v0.17.0

func (bd *BarcodeDescriptor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeDescriptor) String added in v0.17.0

func (bd *BarcodeDescriptor) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type BarcodeDescriptorProvider added in v0.17.0

type BarcodeDescriptorProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

BarcodeDescriptorProvider is accepted wherever a CIBarcodeDescriptor (or one of its subclasses) is expected.

type BlendKernel added in v0.17.0

type BlendKernel struct {
	ColorKernel
}

BlendKernel is an idiomatic wrapper over the Objective-C class CIBlendKernel.

It embeds ColorKernel, promoting that type's methods.

A GPU-based image-processing routine that is optimized for blending two images.

func BlendKernelFromID added in v0.17.0

func BlendKernelFromID(id objc.ID) *BlendKernel

BlendKernelFromID adopts an existing Objective-C object as a BlendKernel (nil for 0), retaining it and registering a release finalizer.

func CIBlendKernelColor

func CIBlendKernelColor() *BlendKernel

CIBlendKernelColor returns the ci blend kernel color.

func Clear added in v0.17.0

func Clear() *BlendKernel

Clear returns the clear.

func ColorBurn added in v0.17.0

func ColorBurn() *BlendKernel

ColorBurn returns the color burn.

func ColorDodge added in v0.17.0

func ColorDodge() *BlendKernel

ColorDodge returns the color dodge.

func ComponentAdd added in v0.17.0

func ComponentAdd() *BlendKernel

ComponentAdd returns the component add.

func ComponentMax added in v0.17.0

func ComponentMax() *BlendKernel

ComponentMax returns the component max.

func ComponentMin added in v0.17.0

func ComponentMin() *BlendKernel

ComponentMin returns the component min.

func ComponentMultiply added in v0.17.0

func ComponentMultiply() *BlendKernel

ComponentMultiply returns the component multiply.

func Darken added in v0.17.0

func Darken() *BlendKernel

Darken returns the darken.

func DarkerColor added in v0.17.0

func DarkerColor() *BlendKernel

DarkerColor returns the darker color.

func Destination added in v0.17.0

func Destination() *BlendKernel

Destination returns the destination.

func DestinationAtop added in v0.17.0

func DestinationAtop() *BlendKernel

DestinationAtop returns the destination atop.

func DestinationIn added in v0.17.0

func DestinationIn() *BlendKernel

DestinationIn returns the destination in.

func DestinationOut added in v0.17.0

func DestinationOut() *BlendKernel

DestinationOut returns the destination out.

func DestinationOver added in v0.17.0

func DestinationOver() *BlendKernel

DestinationOver returns the destination over.

func Difference added in v0.17.0

func Difference() *BlendKernel

Difference returns the difference.

func Divide added in v0.17.0

func Divide() *BlendKernel

Divide returns the divide.

func Exclusion added in v0.17.0

func Exclusion() *BlendKernel

Exclusion returns the exclusion.

func ExclusiveOr added in v0.17.0

func ExclusiveOr() *BlendKernel

ExclusiveOr returns the exclusive or.

func HardLight added in v0.17.0

func HardLight() *BlendKernel

HardLight returns the hard light.

func HardMix added in v0.17.0

func HardMix() *BlendKernel

HardMix returns the hard mix.

func Hue added in v0.17.0

func Hue() *BlendKernel

Hue returns the hue.

func KernelWithString added in v0.17.0

func KernelWithString(str string) *BlendKernel

KernelWithString creates a custom blend kernel from a program string.

func Lighten added in v0.17.0

func Lighten() *BlendKernel

Lighten returns the lighten.

func LighterColor added in v0.17.0

func LighterColor() *BlendKernel

LighterColor returns the lighter color.

func LinearBurn added in v0.17.0

func LinearBurn() *BlendKernel

LinearBurn returns the linear burn.

func LinearDodge added in v0.17.0

func LinearDodge() *BlendKernel

LinearDodge returns the linear dodge.

func LinearLight added in v0.17.0

func LinearLight() *BlendKernel

LinearLight returns the linear light.

func Luminosity added in v0.17.0

func Luminosity() *BlendKernel

Luminosity returns the luminosity.

func Multiply added in v0.17.0

func Multiply() *BlendKernel

Multiply returns the multiply.

func NewBlendKernel added in v0.17.0

func NewBlendKernel() *BlendKernel

NewBlendKernel creates a new BlendKernel.

func Overlay added in v0.17.0

func Overlay() *BlendKernel

Overlay returns the overlay.

func PinLight added in v0.17.0

func PinLight() *BlendKernel

PinLight returns the pin light.

func Saturation added in v0.17.0

func Saturation() *BlendKernel

Saturation returns the saturation.

func Screen added in v0.17.0

func Screen() *BlendKernel

Screen returns the screen.

func SoftLight added in v0.17.0

func SoftLight() *BlendKernel

SoftLight returns the soft light.

func Source added in v0.17.0

func Source() *BlendKernel

Source returns the source.

func SourceAtop added in v0.17.0

func SourceAtop() *BlendKernel

SourceAtop returns the source atop.

func SourceIn added in v0.17.0

func SourceIn() *BlendKernel

SourceIn returns the source in.

func SourceOut added in v0.17.0

func SourceOut() *BlendKernel

SourceOut returns the source out.

func SourceOver added in v0.17.0

func SourceOver() *BlendKernel

SourceOver returns the source over.

func Subtract added in v0.17.0

func Subtract() *BlendKernel

Subtract returns the subtract.

func VividLight added in v0.17.0

func VividLight() *BlendKernel

VividLight returns the vivid light.

func (*BlendKernel) ApplyWithForegroundBackground added in v0.17.0

func (bk *BlendKernel) ApplyWithForegroundBackground(foreground *Image, background *Image) *Image

ApplyWithForegroundBackground creates a new image using the blend kernel and specified foreground and background images.

func (*BlendKernel) ApplyWithForegroundBackgroundColorSpace added in v0.17.0

func (bk *BlendKernel) ApplyWithForegroundBackgroundColorSpace(foreground *Image, background *Image, colorSpace coregraphics.CGColorSpaceRef) *Image

ApplyWithForegroundBackgroundColorSpace applies with foreground background color space.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type Color added in v0.17.0

type Color struct {
	objref.Handle
}

Color is an idiomatic wrapper over the Objective-C class CIColor.

The Core Image class that defines a color object.

func BlackColor added in v0.17.0

func BlackColor() *Color

BlackColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,0` and alpha value `1`.

func BlueColor added in v0.17.0

func BlueColor() *Color

BlueColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,1` and alpha value `1`.

func ClearColor added in v0.17.0

func ClearColor() *Color

ClearColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0,0,0` and alpha value `0`.

func ColorFromID added in v0.17.0

func ColorFromID(id objc.ID) *Color

ColorFromID adopts an existing Objective-C object as a Color (nil for 0), retaining it and registering a release finalizer.

func ColorWithCGColor added in v0.17.0

func ColorWithCGColor(color coregraphics.CGColorRef) *Color

ColorWithCGColor create a Core Image color object with a Core Graphics color object.

func ColorWithRedGreenBlue added in v0.17.0

func ColorWithRedGreenBlue(red float64, green float64, blue float64) *Color

ColorWithRedGreenBlue create a Core Image color object in the sRGB color space with the specified red, green, and blue component values.

func ColorWithRedGreenBlueAlpha added in v0.17.0

func ColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) *Color

ColorWithRedGreenBlueAlpha create a Core Image color object in the sRGB color space with the specified red, green, blue, and alpha component values.

func ColorWithRedGreenBlueAlphaColorSpace added in v0.17.0

func ColorWithRedGreenBlueAlphaColorSpace(red float64, green float64, blue float64, alpha float64, colorSpace coregraphics.CGColorSpaceRef) *Color

ColorWithRedGreenBlueAlphaColorSpace create a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space.

func ColorWithRedGreenBlueColorSpace added in v0.17.0

func ColorWithRedGreenBlueColorSpace(red float64, green float64, blue float64, colorSpace coregraphics.CGColorSpaceRef) *Color

ColorWithRedGreenBlueColorSpace create a Core Image color object with the specified red, green, and blue component values as measured in the specified color space.

func ColorWithString added in v0.17.0

func ColorWithString(representation string) *Color

ColorWithString create a Core Image color object in the sRGB color space using a string containing the RGBA color component values.

func CyanColor added in v0.17.0

func CyanColor() *Color

CyanColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0,1,1` and alpha value `1`.

func GrayColor added in v0.17.0

func GrayColor() *Color

GrayColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0.5,0.5,0.5` and alpha value `1`.

func GreenColor added in v0.17.0

func GreenColor() *Color

GreenColor returns a singleton Core Image color instance in the sRGB color space with RGB values `0,1,0` and alpha value `1`.

func MagentaColor added in v0.17.0

func MagentaColor() *Color

MagentaColor returns a singleton Core Image color instance in the sRGB color space with RGB values `1,0,1` and alpha value `1`.

func NewColorWithCGColor added in v0.17.0

func NewColorWithCGColor(color coregraphics.CGColorRef) *Color

NewColorWithCGColor create a Core Image color object with a Core Graphics color object.

func NewColorWithRedGreenBlue added in v0.17.0

func NewColorWithRedGreenBlue(red float64, green float64, blue float64) *Color

NewColorWithRedGreenBlue initialize a Core Image color object in the sRGB color space with the specified red, green, and blue component values.

func NewColorWithRedGreenBlueAlpha added in v0.17.0

func NewColorWithRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) *Color

NewColorWithRedGreenBlueAlpha initialize a Core Image color object in the sRGB color space with the specified red, green, blue, and alpha component values.

func NewColorWithRedGreenBlueAlphaColorSpace added in v0.17.0

func NewColorWithRedGreenBlueAlphaColorSpace(red float64, green float64, blue float64, alpha float64, colorSpace coregraphics.CGColorSpaceRef) *Color

NewColorWithRedGreenBlueAlphaColorSpace initialize a Core Image color object with the specified red, green, and blue component values as measured in the specified color space.

func NewColorWithRedGreenBlueColorSpace added in v0.17.0

func NewColorWithRedGreenBlueColorSpace(red float64, green float64, blue float64, colorSpace coregraphics.CGColorSpaceRef) *Color

NewColorWithRedGreenBlueColorSpace initialize a Core Image color object with the specified red, green, and blue component values as measured in the specified color space.

func RedColor added in v0.17.0

func RedColor() *Color

RedColor returns a singleton Core Image color instance in the sRGB color space with RGB values `1,0,0` and alpha value `1`.

func WhiteColor added in v0.17.0

func WhiteColor() *Color

WhiteColor returns a singleton Core Image color instance in the sRGB color space with RGB values `1,1,1` and alpha value `1`.

func YellowColor added in v0.17.0

func YellowColor() *Color

YellowColor returns a singleton Core Image color instance in the sRGB color space with RGB values `1,1,0` and alpha value `1`.

func (*Color) Alpha added in v0.17.0

func (c *Color) Alpha() float64

Alpha returns the alpha value of the color.

func (*Color) Blue added in v0.17.0

func (c *Color) Blue() float64

Blue returns the unpremultiplied blue component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the green component.

func (*Color) ColorSpace added in v0.17.0

func (c *Color) ColorSpace() coregraphics.CGColorSpaceRef

ColorSpace returns the `CGColorSpace` associated with the color

func (*Color) Components added in v0.18.0

func (c *Color) Components() unsafe.Pointer

Components returns a pointer to an array of `CGFloat` values including alpha. Typically this array will contain `4` `CGFloat` values for red, green, blue, and alpha. If the “CIColor“ was initialized with a `CGColor` then returned pointer will be the same as calling `CGColorGetComponents()`

func (*Color) Description added in v0.17.0

func (c *Color) Description() string

Description returns the object's -description text.

func (*Color) Green added in v0.17.0

func (c *Color) Green() float64

Green returns the unpremultiplied green component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the green component.

func (*Color) IsEqual added in v0.17.0

func (c *Color) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Color) IsKind added in v0.17.0

func (c *Color) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Color) NumberOfComponents added in v0.17.0

func (c *Color) NumberOfComponents() int

NumberOfComponents returns the color components of the color including alpha. This number includes the alpha component if the color contains one. Typically this number will be `4` for red, green, blue, and alpha. If the “CIColor“ was initialized with a `CGColor` then the number will be the same as calling `CGColorGetNumberOfComponents()`

func (*Color) Red added in v0.17.0

func (c *Color) Red() float64

Red returns the unpremultiplied red component of the color. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the red component.

func (*Color) String added in v0.17.0

func (c *Color) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Color) StringRepresentation added in v0.17.0

func (c *Color) StringRepresentation() string

StringRepresentation returns a formatted string with the unpremultiplied color and alpha components of the color. The string representation always has four components: red, green, blue, and alpha. Some example string representations of colors: `CIColor` | `stringRepresentation` ----------------------------------------------- | -------------- `[CIColor colorWithRed:0.2 green:0.4 blue:0.6]` | `"0.2 0.4 0.6 1.0"` “/CIColor/yellowColor“ | `"1.0 1.0 0.0 1.0"` To create a “CIColor“ instance from a string representation, use the “colorWithString:“ method. If the “CIColor“ was initialized with a `CGColor` in a non-RGB `CGColorSpace` then it will be converted to sRGB to get the red, green, and blue components. This property is not KVO-safe because it returns a new `NSString` instance each time. The value of the `NSString` will be the same each time it is called.

type ColorKernel added in v0.17.0

type ColorKernel struct {
	Kernel
}

ColorKernel is an idiomatic wrapper over the Objective-C class CIColorKernel.

ColorKernel is an abstract base — you do not construct it directly. Construct one of BlendKernel and pass it where a ColorKernel is accepted.

A GPU-based image-processing routine that processes only the color information in images, used to create custom Core Image filters.

func CIColorKernelKernelWithString

func CIColorKernelKernelWithString(str string) *ColorKernel

CIColorKernelKernelWithString creates a color kernel object from the specified kernel source code.

func ColorKernelFromID added in v0.17.0

func ColorKernelFromID(id objc.ID) *ColorKernel

ColorKernelFromID adopts an existing Objective-C object as a ColorKernel (nil for 0), retaining it and registering a release finalizer.

func (*ColorKernel) ApplyWithExtentArguments added in v0.17.0

func (ck *ColorKernel) ApplyWithExtentArguments(extent corefoundation.CGRect, args []obj.Object) *Image

ApplyWithExtentArguments creates a new image using the kernel and specified arguments.

type ColorKernelProvider added in v0.17.0

type ColorKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ColorKernelProvider is accepted wherever a CIColorKernel (or one of its subclasses) is expected.

type Context added in v0.17.0

type Context struct {
	objref.Handle
}

Context is an idiomatic wrapper over the Objective-C class CIContext.

The Core Image context class provides an evaluation context for Core Image processing with Metal, OpenGL, or OpenCL.

func CIContextContext

func CIContextContext() *Context

CIContextContext creates a context without a specific rendering destination, using default options.

func ContextForOfflineGPUAtIndex added in v0.17.0

func ContextForOfflineGPUAtIndex(index int) *Context

ContextForOfflineGPUAtIndex wraps the corresponding Objective-C method.

func ContextForOfflineGPUAtIndexColorSpaceOptionsSharedContext added in v0.17.0

func ContextForOfflineGPUAtIndexColorSpaceOptionsSharedContext(index int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object, sharedContext obj.Object) *Context

ContextForOfflineGPUAtIndexColorSpaceOptionsSharedContext wraps the corresponding Objective-C method.

func ContextFromID added in v0.17.0

func ContextFromID(id objc.ID) *Context

ContextFromID adopts an existing Objective-C object as a Context (nil for 0), retaining it and registering a release finalizer.

func ContextWithCGContextOptions added in v0.17.0

func ContextWithCGContextOptions(cgctx coregraphics.CGContextRef, options obj.Object) *Context

ContextWithCGContextOptions creates a Core Image context from a Quartz context, using the specified options.

func ContextWithCGLContextPixelFormatColorSpaceOptions added in v0.17.0

func ContextWithCGLContextPixelFormatColorSpaceOptions(cglctx obj.Object, pixelFormat obj.Object, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) *Context

ContextWithCGLContextPixelFormatColorSpaceOptions creates a Core Image context from a CGL context, using the specified options, color space, and pixel format object.

func ContextWithCGLContextPixelFormatOptions added in v0.17.0

func ContextWithCGLContextPixelFormatOptions(cglctx obj.Object, pixelFormat obj.Object, options obj.Object) *Context

ContextWithCGLContextPixelFormatOptions creates a Core Image context from a CGL context, using the specified options and pixel format object.

func ContextWithOptions added in v0.17.0

func ContextWithOptions(options obj.Object) *Context

ContextWithOptions initializes a context without a specific rendering destination, using the specified options.

func NewContext added in v0.17.0

func NewContext() *Context

NewContext creates a new Context.

func NewContextWithOptions added in v0.17.0

func NewContextWithOptions(options obj.Object) *Context

NewContextWithOptions initializes a context without a specific rendering destination, using the specified options.

func (*Context) CalculateHDRStatsForCGImage added in v0.17.0

func (c *Context) CalculateHDRStatsForCGImage(cgimage coregraphics.CGImageRef) coregraphics.CGImageRef

CalculateHDRStatsForCGImage given a Core Graphics image, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then return a new Core Graphics image that has the calculated values.

func (*Context) CalculateHDRStatsForCVPixelBuffer added in v0.17.0

func (c *Context) CalculateHDRStatsForCVPixelBuffer(buffer unsafe.Pointer)

CalculateHDRStatsForCVPixelBuffer given a CVPixelBuffer, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then update the buffer’s attachments to store the values.

func (*Context) CalculateHDRStatsForIOSurface added in v0.17.0

func (c *Context) CalculateHDRStatsForIOSurface(surface coregraphics.IOSurfaceRef)

CalculateHDRStatsForIOSurface given an IOSurface, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then update the surface’s attachments to store the values.

func (*Context) CalculateHDRStatsForImage added in v0.17.0

func (c *Context) CalculateHDRStatsForImage(image *Image) *Image

CalculateHDRStatsForImage given a Core Image image, use the receiving Core Image context to calculate its HDR statistics (content headroom and content average light level) and then return a new Core Image image that has the calculated values.

func (*Context) ClearCaches added in v0.17.0

func (c *Context) ClearCaches()

ClearCaches frees any cached data, such as temporary images, associated with the context and runs the garbage collector.

func (*Context) CreateCGImageFromRect added in v0.17.0

func (c *Context) CreateCGImageFromRect(image *Image, fromRect corefoundation.CGRect) coregraphics.CGImageRef

CreateCGImageFromRect creates a Core Graphics image from a region of a Core Image image instance.

func (*Context) CreateCGImageFromRectFormatColorSpace added in v0.17.0

func (c *Context) CreateCGImageFromRectFormatColorSpace(image *Image, fromRect corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef) coregraphics.CGImageRef

CreateCGImageFromRectFormatColorSpace creates a Core Graphics image from a region of a Core Image image instance with an option for controlling the pixel format and color space of the CGImage.

func (*Context) CreateCGImageFromRectFormatColorSpaceDeferred added in v0.17.0

func (c *Context) CreateCGImageFromRectFormatColorSpaceDeferred(image *Image, fromRect corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef, deferred bool) coregraphics.CGImageRef

CreateCGImageFromRectFormatColorSpaceDeferred creates a Core Graphics image from a region of a Core Image image instance with an option for controlling when the image is rendered.

func (*Context) CreateCGImageFromRectFormatColorSpaceDeferredCalculateHDRStats added in v0.17.0

func (c *Context) CreateCGImageFromRectFormatColorSpaceDeferredCalculateHDRStats(image *Image, fromRect corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef, deferred bool, calculateHDRStats bool) coregraphics.CGImageRef

CreateCGImageFromRectFormatColorSpaceDeferredCalculateHDRStats creates a Core Graphics image from a region of a Core Image image instance with an option for calculating HDR statistics.

func (*Context) CreateCGLayerWithSizeInfo added in v0.17.0

func (c *Context) CreateCGLayerWithSizeInfo(size corefoundation.CGSize, info corefoundation.CFDictionaryRef) coregraphics.CGLayerRef

CreateCGLayerWithSizeInfo creates a CGLayer object from the provided parameters.

func (*Context) DepthBlurEffectFilterForImageDataOptions added in v0.17.0

func (c *Context) DepthBlurEffectFilterForImageDataOptions(data []byte, options obj.Object) *Filter

DepthBlurEffectFilterForImageDataOptions create a CIFilter instance for the supplied image data that can be used to apply a depth blur effect.

func (*Context) DepthBlurEffectFilterForImageURLOptions added in v0.17.0

func (c *Context) DepthBlurEffectFilterForImageURLOptions(url string, options obj.Object) *Filter

DepthBlurEffectFilterForImageURLOptions create a CIFilter instance for the supplied image URL that can be used to apply a depth blur effect.

func (*Context) Description added in v0.17.0

func (c *Context) Description() string

Description returns the object's -description text.

func (*Context) DrawImageAtPointFromRect added in v0.17.0

func (c *Context) DrawImageAtPointFromRect(image *Image, atPoint corefoundation.CGPoint, fromRect corefoundation.CGRect)

DrawImageAtPointFromRect renders a region of an image to a point in the context destination.

func (*Context) DrawImageInRectFromRect added in v0.17.0

func (c *Context) DrawImageInRectFromRect(image *Image, inRect corefoundation.CGRect, fromRect corefoundation.CGRect)

DrawImageInRectFromRect renders a region of an image to a rectangle in the context destination.

func (*Context) HEIF10RepresentationOfImageColorSpaceOptions added in v0.17.0

func (c *Context) HEIF10RepresentationOfImageColorSpaceOptions(image *Image, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) (result []byte, err error)

HEIF10RepresentationOfImageColorSpaceOptions renders the image and exports the resulting image data in HEIF10 format.

func (*Context) HEIFRepresentationOfImageFormatColorSpaceOptions added in v0.17.0

func (c *Context) HEIFRepresentationOfImageFormatColorSpaceOptions(image *Image, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) []byte

HEIFRepresentationOfImageFormatColorSpaceOptions renders the image and exports the resulting image data in HEIF format.

func (*Context) IsEqual added in v0.17.0

func (c *Context) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Context) IsKind added in v0.17.0

func (c *Context) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Context) JPEGRepresentationOfImageColorSpaceOptions added in v0.17.0

func (c *Context) JPEGRepresentationOfImageColorSpaceOptions(image *Image, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) []byte

JPEGRepresentationOfImageColorSpaceOptions renders the image and exports the resulting image data in JPEG format.

func (*Context) OpenEXRRepresentationOfImageOptions added in v0.17.0

func (c *Context) OpenEXRRepresentationOfImageOptions(image *Image, options obj.Object) (result []byte, err error)

OpenEXRRepresentationOfImageOptions renders the image and exports the resulting image data in open EXR format.

func (*Context) PNGRepresentationOfImageFormatColorSpaceOptions added in v0.17.0

func (c *Context) PNGRepresentationOfImageFormatColorSpaceOptions(image *Image, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) []byte

PNGRepresentationOfImageFormatColorSpaceOptions renders the image and exports the resulting image data in PNG format.

func (*Context) PrepareRenderFromRectToDestinationAtPoint added in v0.17.0

func (c *Context) PrepareRenderFromRectToDestinationAtPoint(image *Image, fromRect corefoundation.CGRect, destination *RenderDestination, atPoint corefoundation.CGPoint) error

PrepareRenderFromRectToDestinationAtPoint an optional call to warm up a CIContext so that subsequent calls to render with the same arguments run more efficiently.

func (*Context) ReclaimResources added in v0.17.0

func (c *Context) ReclaimResources()

ReclaimResources runs the garbage collector to reclaim any resources that the context no longer requires.

func (*Context) RenderToBitmapRowBytesBoundsFormatColorSpace added in v0.17.0

func (c *Context) RenderToBitmapRowBytesBoundsFormatColorSpace(image *Image, data unsafe.Pointer, rowBytes int, bounds corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef)

RenderToBitmapRowBytesBoundsFormatColorSpace renders to the given bitmap.

func (*Context) RenderToCVPixelBuffer added in v0.17.0

func (c *Context) RenderToCVPixelBuffer(image *Image, buffer unsafe.Pointer)

RenderToCVPixelBuffer renders an image into a pixel buffer.

func (*Context) RenderToCVPixelBufferBoundsColorSpace added in v0.17.0

func (c *Context) RenderToCVPixelBufferBoundsColorSpace(image *Image, buffer unsafe.Pointer, bounds corefoundation.CGRect, colorSpace coregraphics.CGColorSpaceRef)

RenderToCVPixelBufferBoundsColorSpace renders a region of an image into a pixel buffer.

func (*Context) RenderToIOSurfaceBoundsColorSpace added in v0.17.0

func (c *Context) RenderToIOSurfaceBoundsColorSpace(image *Image, surface coregraphics.IOSurfaceRef, bounds corefoundation.CGRect, colorSpace coregraphics.CGColorSpaceRef)

RenderToIOSurfaceBoundsColorSpace renders a region of an image into an IOSurface object.

func (*Context) StartTaskToClear added in v0.17.0

func (c *Context) StartTaskToClear(destination *RenderDestination) (result *RenderTask, err error)

StartTaskToClear fills the entire destination with black or clear depending on its alphaMode.

func (*Context) StartTaskToRenderFromRectToDestinationAtPoint added in v0.17.0

func (c *Context) StartTaskToRenderFromRectToDestinationAtPoint(image *Image, fromRect corefoundation.CGRect, destination *RenderDestination, atPoint corefoundation.CGPoint) (result *RenderTask, err error)

StartTaskToRenderFromRectToDestinationAtPoint renders a portion of an image to a point in the destination.

func (*Context) StartTaskToRenderToDestination added in v0.17.0

func (c *Context) StartTaskToRenderToDestination(image *Image, destination *RenderDestination) (result *RenderTask, err error)

StartTaskToRenderToDestination renders an image to a destination so that point (0, 0) of the image maps to point (0, 0) of the destination.

func (*Context) String added in v0.17.0

func (c *Context) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Context) TIFFRepresentationOfImageFormatColorSpaceOptions added in v0.17.0

func (c *Context) TIFFRepresentationOfImageFormatColorSpaceOptions(image *Image, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) []byte

TIFFRepresentationOfImageFormatColorSpaceOptions renders the image and exports the resulting image data in TIFF format.

func (*Context) WorkingColorSpace added in v0.17.0

func (c *Context) WorkingColorSpace() coregraphics.CGColorSpaceRef

WorkingColorSpace returns the working color space of the CIContext. The working color space determines the color space used when executing filter kernels. You specify a working color space using the “kCIContextWorkingColorSpace“ option when creating a “CIContext“. * All input images are color matched from the input's color space to the working space. * All renders are color matched from the working space to the destination space. The property will be `null` if the context was created with color management disabled.

func (*Context) WorkingFormat added in v0.17.0

func (c *Context) WorkingFormat() int

WorkingFormat returns the working pixel format that the CIContext uses for intermediate buffers. The working format determines the pixel format that Core Image uses to create intermediate buffers for rendering images. You specify a working pixel format using the “kCIContextWorkingFormat“ option when creating a “CIContext“.

func (*Context) WriteHEIF10RepresentationOfImageToURLColorSpaceOptions added in v0.17.0

func (c *Context) WriteHEIF10RepresentationOfImageToURLColorSpaceOptions(image *Image, url string, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) error

WriteHEIF10RepresentationOfImageToURLColorSpaceOptions renders the image and exports the resulting image data as a file in HEIF10 format.

func (*Context) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptions added in v0.17.0

func (c *Context) WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptions(image *Image, url string, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) error

WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptions renders the image and exports the resulting image data as a file in HEIF format.

func (*Context) WriteJPEGRepresentationOfImageToURLColorSpaceOptions added in v0.17.0

func (c *Context) WriteJPEGRepresentationOfImageToURLColorSpaceOptions(image *Image, url string, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) error

WriteJPEGRepresentationOfImageToURLColorSpaceOptions renders the image and exports the resulting image data as a file in JPEG format.

func (*Context) WriteOpenEXRRepresentationOfImageToURLOptions added in v0.17.0

func (c *Context) WriteOpenEXRRepresentationOfImageToURLOptions(image *Image, url string, options obj.Object) error

WriteOpenEXRRepresentationOfImageToURLOptions renders the image and exports the resulting image data as a file in open EXR format.

func (*Context) WritePNGRepresentationOfImageToURLFormatColorSpaceOptions added in v0.17.0

func (c *Context) WritePNGRepresentationOfImageToURLFormatColorSpaceOptions(image *Image, url string, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) error

WritePNGRepresentationOfImageToURLFormatColorSpaceOptions renders the image and exports the resulting image data as a file in PNG format.

func (*Context) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptions added in v0.17.0

func (c *Context) WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptions(image *Image, url string, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) error

WriteTIFFRepresentationOfImageToURLFormatColorSpaceOptions renders the image and exports the resulting image data as a file in TIFF format.

type DataMatrixCodeDescriptor added in v0.17.0

type DataMatrixCodeDescriptor struct {
	BarcodeDescriptor
}

DataMatrixCodeDescriptor is an idiomatic wrapper over the Objective-C class CIDataMatrixCodeDescriptor.

It embeds BarcodeDescriptor, promoting that type's methods.

A concrete subclass the Core Image Barcode Descriptor that represents an Data Matrix code symbol.

func DataMatrixCodeDescriptorFromID added in v0.17.0

func DataMatrixCodeDescriptorFromID(id objc.ID) *DataMatrixCodeDescriptor

DataMatrixCodeDescriptorFromID adopts an existing Objective-C object as a DataMatrixCodeDescriptor (nil for 0), retaining it and registering a release finalizer.

func DescriptorWithPayloadRowCountColumnCountEccVersion added in v0.17.0

func DescriptorWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload []byte, rowCount int, columnCount int, eccVersion DataMatrixCodeECCVersion) *DataMatrixCodeDescriptor

DescriptorWithPayloadRowCountColumnCountEccVersion creates a Data Matrix code descriptor for the given payload and parameters.

func NewDataMatrixCodeDescriptorWithPayloadRowCountColumnCountEccVersion added in v0.17.0

func NewDataMatrixCodeDescriptorWithPayloadRowCountColumnCountEccVersion(errorCorrectedPayload []byte, rowCount int, columnCount int, eccVersion DataMatrixCodeECCVersion) *DataMatrixCodeDescriptor

NewDataMatrixCodeDescriptorWithPayloadRowCountColumnCountEccVersion initializes a Data Matrix code descriptor for the given payload and parameters.

func (*DataMatrixCodeDescriptor) ColumnCount added in v0.17.0

func (dmcd *DataMatrixCodeDescriptor) ColumnCount() int

ColumnCount returns the number of columns in the Data Matrix code symbol. Refer to ISO/IEC 16022:2006(E) for valid module row and column count combinations.

func (*DataMatrixCodeDescriptor) EccVersion added in v0.17.0

EccVersion returns the error correction version of the Data Matrix code symbol. The possible error correction version are enumerated in “CIDataMatrixCodeECCVersion“. Any symbol with an even number of rows and columns will be ECC 200.

func (*DataMatrixCodeDescriptor) ErrorCorrectedPayload added in v0.17.0

func (dmcd *DataMatrixCodeDescriptor) ErrorCorrectedPayload() []byte

ErrorCorrectedPayload returns the error-corrected payload containing the data encoded in the Data Matrix code symbol. DataMatrix symbols are specified bn ISO/IEC 16022:2006(E). ECC 200-type symbols will always have an even number of rows and columns. For ECC 200-type symbols, the phases of encoding data into a symbol are described in section 5.1 -- Encode procedure overview. The error corrected payload comprises the de-interleaved bits of the message described at the end of Step 1: Data encodation.

func (*DataMatrixCodeDescriptor) RowCount added in v0.17.0

func (dmcd *DataMatrixCodeDescriptor) RowCount() int

RowCount returns the number of rows in the Data Matrix code symbol. Refer to ISO/IEC 16022:2006(E) for valid module row and column count combinations.

type DataMatrixCodeECCVersion added in v0.17.0

type DataMatrixCodeECCVersion int64

Constants indicating the Data Matrix code ECC version.

const (
	// Indicates error correction using convolutional code error correction with no data protection.
	DataMatrixCodeECCVersion000 DataMatrixCodeECCVersion = 0
	// Indicates 1/4 of the symbol is dedicated to convolutional code error correction.
	DataMatrixCodeECCVersion050 DataMatrixCodeECCVersion = 50
	// Indicates 1/3 of the symbol is dedicated to convolutional code error correction.
	DataMatrixCodeECCVersion080 DataMatrixCodeECCVersion = 80
	// Indicates 1/2 of the symbol is dedicated to convolutional code error correction.
	DataMatrixCodeECCVersion100 DataMatrixCodeECCVersion = 100
	// Indicates 3/4 of the symbol is dedicated to convolutional code error correction.
	DataMatrixCodeECCVersion140 DataMatrixCodeECCVersion = 140
	// Indicates error correction using Reed-Solomon error correction. Data protection overhead varies based on symbol size.
	DataMatrixCodeECCVersion200 DataMatrixCodeECCVersion = 200
)

func (DataMatrixCodeECCVersion) String added in v0.17.0

func (e DataMatrixCodeECCVersion) String() string

String returns the DataMatrixCodeECCVersion constant's name, or its numeric form when the value is not a known constant.

type Detector added in v0.17.0

type Detector struct {
	objref.Handle
}

Detector is an idiomatic wrapper over the Objective-C class CIDetector.

An image processor that identifies notable features, such as faces and barcodes, in a still image or video.

func DetectorFromID added in v0.17.0

func DetectorFromID(id objc.ID) *Detector

DetectorFromID adopts an existing Objective-C object as a Detector (nil for 0), retaining it and registering a release finalizer.

func DetectorOfTypeContextOptions added in v0.17.0

func DetectorOfTypeContextOptions(type_ string, context_ *Context, options map[string]obj.Object) *Detector

DetectorOfTypeContextOptions creates and returns a configured detector.

func NewDetector added in v0.17.0

func NewDetector() *Detector

NewDetector creates a new Detector.

func (*Detector) Description added in v0.17.0

func (d *Detector) Description() string

Description returns the object's -description text.

func (*Detector) FeaturesInImage added in v0.17.0

func (d *Detector) FeaturesInImage(image *Image) []*Feature

FeaturesInImage searches for features in an image.

func (*Detector) FeaturesInImageOptions added in v0.17.0

func (d *Detector) FeaturesInImageOptions(image *Image, options map[string]obj.Object) []*Feature

FeaturesInImageOptions searches for features in an image based on the specified image orientation.

func (*Detector) IsEqual added in v0.17.0

func (d *Detector) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Detector) IsKind added in v0.17.0

func (d *Detector) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Detector) String added in v0.17.0

func (d *Detector) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FaceFeature added in v0.17.0

type FaceFeature struct {
	Feature
}

FaceFeature is an idiomatic wrapper over the Objective-C class CIFaceFeature.

It embeds Feature, promoting that type's methods.

Information about a face detected in a still or video image.

func FaceFeatureFromID added in v0.17.0

func FaceFeatureFromID(id objc.ID) *FaceFeature

FaceFeatureFromID adopts an existing Objective-C object as a FaceFeature (nil for 0), retaining it and registering a release finalizer.

func NewFaceFeature added in v0.17.0

func NewFaceFeature() *FaceFeature

NewFaceFeature creates a new FaceFeature.

func (*FaceFeature) FaceAngle added in v0.17.0

func (ff *FaceFeature) FaceAngle() float32

FaceAngle returns the rotation of the face. Rotation is measured counterclockwise in degrees, with zero indicating that a line drawn between the eyes is horizontal relative to the image orientation.

func (*FaceFeature) HasFaceAngle added in v0.17.0

func (ff *FaceFeature) HasFaceAngle() bool

HasFaceAngle reports whether information about face rotation is available.

func (*FaceFeature) HasLeftEyePosition added in v0.17.0

func (ff *FaceFeature) HasLeftEyePosition() bool

HasLeftEyePosition reports whether the detector found the face’s left eye.

func (*FaceFeature) HasMouthPosition added in v0.17.0

func (ff *FaceFeature) HasMouthPosition() bool

HasMouthPosition reports whether the detector found the face’s mouth.

func (*FaceFeature) HasRightEyePosition added in v0.17.0

func (ff *FaceFeature) HasRightEyePosition() bool

HasRightEyePosition reports whether the detector found the face’s right eye.

func (*FaceFeature) HasSmile added in v0.17.0

func (ff *FaceFeature) HasSmile() bool

HasSmile reports whether a smile is detected in the face. To detect smiles, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorSmile“ option set to true.

func (*FaceFeature) HasTrackingFrameCount added in v0.17.0

func (ff *FaceFeature) HasTrackingFrameCount() bool

HasTrackingFrameCount reports whether a Boolean value that indicates the face object has a tracking frame count.

func (*FaceFeature) HasTrackingID added in v0.17.0

func (ff *FaceFeature) HasTrackingID() bool

HasTrackingID reports whether the face object has a tracking ID.

func (*FaceFeature) LeftEyeClosed added in v0.17.0

func (ff *FaceFeature) LeftEyeClosed() bool

LeftEyeClosed reports whether a closed left eye is detected in the face. To detect closed eyes, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorEyeBlink“ option set to true.

func (*FaceFeature) LeftEyePosition added in v0.17.0

func (ff *FaceFeature) LeftEyePosition() corefoundation.CGPoint

LeftEyePosition returns the image coordinate of the center of the left eye. > Note: The left eye is on the left side of the face from the observer's perspective. It is not the left eye from the subject's perspective.

func (*FaceFeature) MouthPosition added in v0.17.0

func (ff *FaceFeature) MouthPosition() corefoundation.CGPoint

MouthPosition returns the image coordinate of the center of the mouth.

func (*FaceFeature) RightEyeClosed added in v0.17.0

func (ff *FaceFeature) RightEyeClosed() bool

RightEyeClosed reports whether a closed right eye is detected in the face. To detect closed eyes, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorEyeBlink“ option set to true.

func (*FaceFeature) RightEyePosition added in v0.17.0

func (ff *FaceFeature) RightEyePosition() corefoundation.CGPoint

RightEyePosition returns the image coordinate of the center of the right eye. > Note: The right eye is on the right side of the face from the observer's perspective. It is not the right eye from the subject's perspective.

func (*FaceFeature) TrackingFrameCount added in v0.17.0

func (ff *FaceFeature) TrackingFrameCount() int

TrackingFrameCount returns the tracking frame count of the face.

func (*FaceFeature) TrackingID added in v0.17.0

func (ff *FaceFeature) TrackingID() int

TrackingID returns the tracking identifier of the face object. Core Image provides a tracking identifier for faces it detects in a video stream, which you can use to identify when a CIFaceFeature objects detected in one video frame is the same face detected in a previous video frame. This identifier persists only as long as a face is in the frame and is not associated with a specific face. In other words, if a face moves out of the video frame and comes back into the frame later, another ID is assigned. (Core Image detects faces, but does not recognize specific faces.)

type Feature added in v0.17.0

type Feature struct {
	objref.Handle
}

Feature is an idiomatic wrapper over the Objective-C class CIFeature.

Feature is an abstract base — you do not construct it directly. Construct one of FaceFeature, QRCodeFeature, RectangleFeature, TextFeature and pass it where a Feature is accepted.

The abstract superclass for objects representing notable features detected in an image.

func FeatureFromID added in v0.17.0

func FeatureFromID(id objc.ID) *Feature

FeatureFromID adopts an existing Objective-C object as a Feature (nil for 0), retaining it and registering a release finalizer.

func (*Feature) Bounds added in v0.17.0

func (f *Feature) Bounds() corefoundation.CGRect

Bounds returns the rectangle that bounds the location of discovered feature. The rectangle is in the cartesian coordinate system of the image.

func (*Feature) Description added in v0.17.0

func (f *Feature) Description() string

Description returns the object's -description text.

func (*Feature) IsEqual added in v0.17.0

func (f *Feature) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Feature) IsKind added in v0.17.0

func (f *Feature) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Feature) String added in v0.17.0

func (f *Feature) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Feature) Type added in v0.17.0

func (f *Feature) Type() string

Type returns the type of feature that was discovered. The type can be one of: * “CIFeatureTypeFace“ * “CIFeatureTypeRectangle“ * “CIFeatureTypeQRCode“ * “CIFeatureTypeText“

type FeatureProvider added in v0.17.0

type FeatureProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

FeatureProvider is accepted wherever a CIFeature (or one of its subclasses) is expected.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Filter added in v0.17.0

type Filter struct {
	objref.Handle
}

Filter is an idiomatic wrapper over the Objective-C class CIFilter.

Filter is an abstract base — you do not construct it directly. Construct one of RAWFilter and pass it where a Filter is accepted.

An image processor that produces an image by manipulating one or more input images or by generating new image data.

func FilterArrayFromSerializedXMPInputImageExtent added in v0.17.0

func FilterArrayFromSerializedXMPInputImageExtent(xmpData []byte, extent corefoundation.CGRect) (result []*Filter, err error)

FilterArrayFromSerializedXMPInputImageExtent wraps the corresponding Objective-C method.

func FilterFromID added in v0.17.0

func FilterFromID(id objc.ID) *Filter

FilterFromID adopts an existing Objective-C object as a Filter (nil for 0), retaining it and registering a release finalizer.

func FilterWithCVPixelBufferPropertiesOptions added in v0.17.0

func FilterWithCVPixelBufferPropertiesOptions(pixelBuffer unsafe.Pointer, properties obj.Object, options obj.Object) *Filter

FilterWithCVPixelBufferPropertiesOptions returns a CIFilter that will in turn return a properly processed CIImage as "outputImage". Note that when using this initializer, you should pass in a CVPixelBufferRef with one of the following Raw pixel format types kCVPixelFormatType_14Bayer_GRBG, kCVPixelFormatType_14Bayer_RGGB, kCVPixelFormatType_14Bayer_BGGR, kCVPixelFormatType_14Bayer_GBRG as well as the root properties attachment from the CMSampleBufferRef.

func FilterWithImageDataOptions added in v0.17.0

func FilterWithImageDataOptions(data []byte, options obj.Object) *Filter

FilterWithImageDataOptions returns a CIFilter that will in turn return a properly processed CIImage as "outputImage". Note that when using this initializer, you should pass in a source type identifier hint (kCGImageSourceTypeIdentifierHint) key/value pair in order to help the decoder determine the file type, as otherwise confusion and incorrect results are possible.

func FilterWithImageURLOptions added in v0.17.0

func FilterWithImageURLOptions(url string, options obj.Object) *Filter

FilterWithImageURLOptions returns a CIFilter that will in turn return a properly processed CIImage as "outputImage".

func FilterWithName added in v0.17.0

func FilterWithName(name string) *Filter

FilterWithName creates a new filter of type 'name'. On OSX, all input values will be undefined. On iOS, all input values will be set to default values.

func FilterWithNameWithInputParameters added in v0.17.0

func FilterWithNameWithInputParameters(name string, params map[string]obj.Object) *Filter

FilterWithNameWithInputParameters creates a new filter of type 'name'. The filter's input parameters are set from the dictionary of key-value pairs. On OSX, any of the filter input parameters not specified in the dictionary will be undefined. On iOS, any of the filter input parameters not specified in the dictionary will be set to default values.

func (*Filter) ApplyArgumentsOptions added in v0.17.0

func (f *Filter) ApplyArgumentsOptions(k *Kernel, args obj.Object, dict map[string]obj.Object) *Image

ApplyArgumentsOptions used by CIFilter subclasses to apply the array of argument values 'args' to the kernel function 'k'. The supplied arguments must be type-compatible with the function signature of the kernel. The key-value pairs defined by 'dict' (if non-nil) are used to control exactly how the kernel is evaluated. Valid keys include: kCIApplyOptionExtent: the size of the produced image. Value is a four element NSArray [X Y WIDTH HEIGHT]. kCIApplyOptionDefinition: the Domain of Definition of the produced image. Value is either a CIFilterShape object, or a four element NSArray defining a rectangle.

func (*Filter) Attributes added in v0.17.0

func (f *Filter) Attributes() map[string]obj.Object

Attributes returns a dictionary containing key/value pairs describing the filter. (see description of keys below)

func (*Filter) Description added in v0.17.0

func (f *Filter) Description() string

Description returns the object's -description text.

func (*Filter) InputKeys added in v0.17.0

func (f *Filter) InputKeys() []string

InputKeys returns an array containing the names of all inputs in the filter.

InputKeys returns the collection as a Go slice.

func (*Filter) IsEnabled added in v0.17.0

func (f *Filter) IsEnabled() bool

IsEnabled reports whether the object is enabled.

func (*Filter) IsEqual added in v0.17.0

func (f *Filter) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Filter) IsKind added in v0.17.0

func (f *Filter) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Filter) Name added in v0.17.0

func (f *Filter) Name() string

Name returns the name.

func (*Filter) OutputImage added in v0.17.0

func (f *Filter) OutputImage() *Image

OutputImage returns the output image.

func (*Filter) OutputKeys added in v0.17.0

func (f *Filter) OutputKeys() []string

OutputKeys returns an array containing the names of all outputs in the filter.

OutputKeys returns the collection as a Go slice.

func (*Filter) SetDefaults added in v0.17.0

func (f *Filter) SetDefaults()

SetDefaults sets all inputs to their default values (where default values are defined, other inputs are left as-is).

func (*Filter) String added in v0.17.0

func (f *Filter) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Filter) WithEnabled added in v0.17.0

func (f *Filter) WithEnabled(enabled bool) *Filter

WithEnabled sets the enabled.

func (*Filter) WithName added in v0.17.0

func (f *Filter) WithName(name string) *Filter

WithName sets the name.

type FilterConstructor added in v0.17.0

type FilterConstructor interface {
}

FilterConstructor is the Go form of the Objective-C protocol CIFilterConstructor.

type FilterGenerator added in v0.17.0

type FilterGenerator struct {
	objref.Handle
}

FilterGenerator is an idiomatic wrapper over the Objective-C class CIFilterGenerator.

An object that creates and configures chains of individual image filters.

func CIFilterGeneratorFilterGenerator

func CIFilterGeneratorFilterGenerator() *FilterGenerator

CIFilterGeneratorFilterGenerator creates and returns an empty filter generator object.

func FilterGeneratorFromID added in v0.17.0

func FilterGeneratorFromID(id objc.ID) *FilterGenerator

FilterGeneratorFromID adopts an existing Objective-C object as a FilterGenerator (nil for 0), retaining it and registering a release finalizer.

func FilterGeneratorWithContentsOfURL added in v0.17.0

func FilterGeneratorWithContentsOfURL(aURL string) *FilterGenerator

FilterGeneratorWithContentsOfURL creates and returns a filter generator object and initializes it with the contents of a filter generator file.

func NewFilterGeneratorWithContentsOfURL added in v0.17.0

func NewFilterGeneratorWithContentsOfURL(aURL string) *FilterGenerator

NewFilterGeneratorWithContentsOfURL initializes a filter generator object with the contents of a filter generator file.

func (*FilterGenerator) ClassAttributes added in v0.17.0

func (fg *FilterGenerator) ClassAttributes() obj.Object

ClassAttributes returns retrieve or Set the class attributes that will be used to register the filter using the registerFilterName method. Make sure you set the class attributes before using the registerFilterName method. See CIFilter for a description of the classAttributes that are needed to register a filter.

func (*FilterGenerator) ConnectObjectWithKeyToObjectWithKey added in v0.17.0

func (fg *FilterGenerator) ConnectObjectWithKeyToObjectWithKey(sourceObject obj.Object, sourceKey string, targetObject obj.Object, targetKey string)

ConnectObjectWithKeyToObjectWithKey adds an object to the filter chain.

func (*FilterGenerator) Description added in v0.17.0

func (fg *FilterGenerator) Description() string

Description returns the object's -description text.

func (*FilterGenerator) DisconnectObjectWithKeyToObjectWithKey added in v0.17.0

func (fg *FilterGenerator) DisconnectObjectWithKeyToObjectWithKey(sourceObject obj.Object, sourceKey string, targetObject obj.Object, targetKey string)

DisconnectObjectWithKeyToObjectWithKey removes the connection between two objects in the filter chain.

func (*FilterGenerator) ExportKeyFromObjectWithName added in v0.17.0

func (fg *FilterGenerator) ExportKeyFromObjectWithName(key string, targetObject obj.Object, exportedKeyName string)

ExportKeyFromObjectWithName exports an input or output key of an object in the filter chain.

func (*FilterGenerator) ExportedKeys added in v0.17.0

func (fg *FilterGenerator) ExportedKeys() obj.Object

ExportedKeys returns an array of the exported keys. Use this method to get an NSArray of all the keys that you have exported using exportKey:fromObject:withName: or that were exported before written to a file from which you read the filter chain.

func (*FilterGenerator) Filter added in v0.17.0

func (fg *FilterGenerator) Filter() *Filter

Filter creates a filter object based on the filter chain.

func (*FilterGenerator) IsEqual added in v0.17.0

func (fg *FilterGenerator) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*FilterGenerator) IsKind added in v0.17.0

func (fg *FilterGenerator) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*FilterGenerator) RegisterFilterName added in v0.17.0

func (fg *FilterGenerator) RegisterFilterName(name string)

RegisterFilterName registers the name associated with a filter chain.

func (*FilterGenerator) RemoveExportedKey added in v0.17.0

func (fg *FilterGenerator) RemoveExportedKey(exportedKeyName string)

RemoveExportedKey removes a key that was previously exported.

func (*FilterGenerator) SetAttributesForExportedKey added in v0.17.0

func (fg *FilterGenerator) SetAttributesForExportedKey(attributes obj.Object, key string)

SetAttributesForExportedKey sets a dictionary of attributes for an exported key.

func (*FilterGenerator) String added in v0.17.0

func (fg *FilterGenerator) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*FilterGenerator) WithClassAttributes added in v0.17.0

func (fg *FilterGenerator) WithClassAttributes(classAttributes obj.Object) *FilterGenerator

WithClassAttributes sets the class attributes associated with the filter.

func (*FilterGenerator) WriteToURLAtomically added in v0.17.0

func (fg *FilterGenerator) WriteToURLAtomically(aURL string, flag bool) bool

WriteToURLAtomically archives a filter generator object to a filter generator file.

type FilterProtocol added in v0.17.0

type FilterProtocol interface {
	OutputImage() *Image
}

FilterProtocol is the Go form of the Objective-C protocol CIFilter.

type FilterProvider added in v0.17.0

type FilterProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

FilterProvider is accepted wherever a CIFilter (or one of its subclasses) is expected.

type FilterShape added in v0.17.0

type FilterShape struct {
	objref.Handle
}

FilterShape is an idiomatic wrapper over the Objective-C class CIFilterShape.

A description of the bounding shape of a filter and the domain of definition for a filter operation.

func FilterShapeFromID added in v0.17.0

func FilterShapeFromID(id objc.ID) *FilterShape

FilterShapeFromID adopts an existing Objective-C object as a FilterShape (nil for 0), retaining it and registering a release finalizer.

func NewFilterShapeWithRect added in v0.17.0

func NewFilterShapeWithRect(r corefoundation.CGRect) *FilterShape

NewFilterShapeWithRect initializes a filter shape object with a rectangle.

func ShapeWithRect added in v0.17.0

func ShapeWithRect(r corefoundation.CGRect) *FilterShape

ShapeWithRect creates a filter shape object and initializes it with a rectangle.

func (*FilterShape) Description added in v0.17.0

func (fs *FilterShape) Description() string

Description returns the object's -description text.

func (*FilterShape) Extent added in v0.17.0

func (fs *FilterShape) Extent() corefoundation.CGRect

Extent returns the extent.

func (*FilterShape) InsetByXY added in v0.17.0

func (fs *FilterShape) InsetByXY(dx int, dy int) *FilterShape

InsetByXY modifies a filter shape object so that it is inset by the specified x and y values.

func (*FilterShape) IntersectWith added in v0.17.0

func (fs *FilterShape) IntersectWith(s2 *FilterShape) *FilterShape

IntersectWith creates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object.

func (*FilterShape) IntersectWithRect added in v0.17.0

func (fs *FilterShape) IntersectWithRect(r corefoundation.CGRect) *FilterShape

IntersectWithRect creates a filter shape that represents the intersection of the current filter shape and a rectangle.

func (*FilterShape) IsEqual added in v0.17.0

func (fs *FilterShape) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*FilterShape) IsKind added in v0.17.0

func (fs *FilterShape) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*FilterShape) String added in v0.17.0

func (fs *FilterShape) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*FilterShape) TransformByInterior added in v0.17.0

func (fs *FilterShape) TransformByInterior(m corefoundation.CGAffineTransform, flag bool) *FilterShape

TransformByInterior creates a filter shape that results from applying a transform to the current filter shape.

func (*FilterShape) UnionWith added in v0.17.0

func (fs *FilterShape) UnionWith(s2 *FilterShape) *FilterShape

UnionWith creates a filter shape that results from the union of the current filter shape and another filter shape object.

func (*FilterShape) UnionWithRect added in v0.17.0

func (fs *FilterShape) UnionWithRect(r corefoundation.CGRect) *FilterShape

UnionWithRect creates a filter shape that results from the union of the current filter shape and a rectangle.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type Image added in v0.17.0

type Image struct {
	objref.Handle
}

Image is an idiomatic wrapper over the Objective-C class CIImage.

A representation of an image to be processed or produced by Core Image filters.

func ApplyWithExtentInputsArguments added in v0.17.0

func ApplyWithExtentInputsArguments(extent corefoundation.CGRect, inputs []*Image, arguments map[string]obj.Object) (result *Image, err error)

ApplyWithExtentInputsArguments call this method on your Core Image Processor Kernel subclass to create a new image of the specified extent.

func ApplyWithExtentsInputsArguments added in v0.17.0

func ApplyWithExtentsInputsArguments(extents []*Vector, inputs []*Image, arguments map[string]obj.Object) (result []*Image, err error)

ApplyWithExtentsInputsArguments call this method on your multiple-output Core Image Processor Kernel subclass to create an array of new image objects given the specified array of extents.

func BlackImage added in v0.17.0

func BlackImage() *Image

BlackImage returns the black image.

func BlueImage added in v0.17.0

func BlueImage() *Image

BlueImage returns the blue image.

func ClearImage added in v0.17.0

func ClearImage() *Image

ClearImage returns the clear image.

func CyanImage added in v0.17.0

func CyanImage() *Image

CyanImage returns the cyan image.

func EmptyImage added in v0.17.0

func EmptyImage() *Image

EmptyImage creates and returns an empty image object.

func GrayImage added in v0.17.0

func GrayImage() *Image

GrayImage returns the gray image.

func GreenImage added in v0.17.0

func GreenImage() *Image

GreenImage returns the green image.

func ImageFromID added in v0.17.0

func ImageFromID(id objc.ID) *Image

ImageFromID adopts an existing Objective-C object as a Image (nil for 0), retaining it and registering a release finalizer.

func ImageWithBitmapDataBytesPerRowSizeFormatColorSpace added in v0.17.0

func ImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow int, size corefoundation.CGSize, format int, colorSpace coregraphics.CGColorSpaceRef) *Image

ImageWithBitmapDataBytesPerRowSizeFormatColorSpace creates and returns an image object from bitmap data.

func ImageWithCGImage added in v0.17.0

func ImageWithCGImage(image coregraphics.CGImageRef) *Image

ImageWithCGImage creates and returns an image object from a Quartz 2D image.

func ImageWithCGImageOptions added in v0.17.0

func ImageWithCGImageOptions(image coregraphics.CGImageRef, options obj.Object) *Image

ImageWithCGImageOptions creates and returns an image object from a Quartz 2D image using the specified options.

func ImageWithCGImageSourceIndexOptions added in v0.17.0

func ImageWithCGImageSourceIndexOptions(source coregraphics.CGImageSourceRef, index int, dict obj.Object) *Image

ImageWithCGImageSourceIndexOptions wraps the corresponding Objective-C method.

func ImageWithCGLayer added in v0.17.0

func ImageWithCGLayer(layer coregraphics.CGLayerRef) *Image

ImageWithCGLayer creates and returns an image object from the contents supplied by a CGLayer object.

func ImageWithCGLayerOptions added in v0.17.0

func ImageWithCGLayerOptions(layer coregraphics.CGLayerRef, options obj.Object) *Image

ImageWithCGLayerOptions creates and returns an image object from the contents supplied by a CGLayer object, using the specified options.

func ImageWithCVImageBuffer added in v0.17.0

func ImageWithCVImageBuffer(imageBuffer unsafe.Pointer) *Image

ImageWithCVImageBuffer creates and returns an image object from the contents of CVImageBuffer object.

func ImageWithCVImageBufferOptions added in v0.17.0

func ImageWithCVImageBufferOptions(imageBuffer unsafe.Pointer, options obj.Object) *Image

ImageWithCVImageBufferOptions creates and returns an image object from the contents of CVImageBuffer object, using the specified options.

func ImageWithCVPixelBuffer added in v0.17.0

func ImageWithCVPixelBuffer(pixelBuffer unsafe.Pointer) *Image

ImageWithCVPixelBuffer creates and returns an image object from the contents of CVPixelBuffer object.

func ImageWithCVPixelBufferOptions added in v0.17.0

func ImageWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options obj.Object) *Image

ImageWithCVPixelBufferOptions creates and returns an image object from the contents of CVPixelBuffer object, using the specified options.

func ImageWithColor added in v0.17.0

func ImageWithColor(color *Color) *Image

ImageWithColor creates and returns an image of infinite extent whose entire content is the specified color.

func ImageWithContentsOfURL added in v0.17.0

func ImageWithContentsOfURL(url string) *Image

ImageWithContentsOfURL creates and returns an image object from the contents of a file.

func ImageWithContentsOfURLOptions added in v0.17.0

func ImageWithContentsOfURLOptions(url string, options obj.Object) *Image

ImageWithContentsOfURLOptions creates and returns an image object from the contents of a file, using the specified options.

func ImageWithData added in v0.17.0

func ImageWithData(data []byte) *Image

ImageWithData creates and returns an image object initialized with the supplied image data.

func ImageWithDataOptions added in v0.17.0

func ImageWithDataOptions(data []byte, options obj.Object) *Image

ImageWithDataOptions creates and returns an image object initialized with the supplied image data, using the specified options.

func ImageWithDepthData added in v0.17.0

func ImageWithDepthData(data obj.Object) *Image

ImageWithDepthData wraps the corresponding Objective-C method.

func ImageWithDepthDataOptions added in v0.17.0

func ImageWithDepthDataOptions(data obj.Object, options map[string]obj.Object) *Image

ImageWithDepthDataOptions wraps the corresponding Objective-C method.

func ImageWithIOSurface added in v0.17.0

func ImageWithIOSurface(surface coregraphics.IOSurfaceRef) *Image

ImageWithIOSurface creates and returns an image from the contents of an IOSurface.

func ImageWithIOSurfaceOptions added in v0.17.0

func ImageWithIOSurfaceOptions(surface coregraphics.IOSurfaceRef, options obj.Object) *Image

ImageWithIOSurfaceOptions creates, using the specified options, and returns an image from the contents of an IOSurface.

func ImageWithImageProviderSizeFormatColorSpaceOptions added in v0.17.0

func ImageWithImageProviderSizeFormatColorSpaceOptions(provider obj.Object, width int, height int, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) *Image

ImageWithImageProviderSizeFormatColorSpaceOptions create an image object based on pixels from an image provider object.

func ImageWithPortaitEffectsMatte added in v0.17.0

func ImageWithPortaitEffectsMatte(matte obj.Object) *Image

ImageWithPortaitEffectsMatte wraps the corresponding Objective-C method.

func ImageWithPortaitEffectsMatteOptions added in v0.17.0

func ImageWithPortaitEffectsMatteOptions(matte obj.Object, options obj.Object) *Image

ImageWithPortaitEffectsMatteOptions wraps the corresponding Objective-C method.

func ImageWithSemanticSegmentationMatte added in v0.17.0

func ImageWithSemanticSegmentationMatte(matte obj.Object) *Image

ImageWithSemanticSegmentationMatte wraps the corresponding Objective-C method.

func ImageWithSemanticSegmentationMatteOptions added in v0.17.0

func ImageWithSemanticSegmentationMatteOptions(matte obj.Object, options obj.Object) *Image

ImageWithSemanticSegmentationMatteOptions wraps the corresponding Objective-C method.

func ImageWithTextureSizeFlippedColorSpace added in v0.17.0

func ImageWithTextureSizeFlippedColorSpace(name int, size corefoundation.CGSize, flipped bool, colorSpace coregraphics.CGColorSpaceRef) *Image

ImageWithTextureSizeFlippedColorSpace creates and returns an image object initialized with data supplied by an OpenGL texture.

func ImageWithTextureSizeFlippedOptions added in v0.17.0

func ImageWithTextureSizeFlippedOptions(name int, size corefoundation.CGSize, flipped bool, options obj.Object) *Image

ImageWithTextureSizeFlippedOptions creates and returns an image object initialized with data supplied by an OpenGL texture.

func MagentaImage added in v0.17.0

func MagentaImage() *Image

MagentaImage returns the magenta image.

func NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace added in v0.17.0

func NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow int, size corefoundation.CGSize, format int, colorSpace coregraphics.CGColorSpaceRef) *Image

NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace initializes an image object with bitmap data.

func NewImageWithCGImage added in v0.17.0

func NewImageWithCGImage(image coregraphics.CGImageRef) *Image

NewImageWithCGImage initializes an image object with a Quartz 2D image.

func NewImageWithCGImageOptions added in v0.17.0

func NewImageWithCGImageOptions(image coregraphics.CGImageRef, options obj.Object) *Image

NewImageWithCGImageOptions initializes an image object with a Quartz 2D image, using the specified options.

func NewImageWithCGImageSourceIndexOptions added in v0.17.0

func NewImageWithCGImageSourceIndexOptions(source coregraphics.CGImageSourceRef, index int, dict obj.Object) *Image

NewImageWithCGImageSourceIndexOptions creates a new Image.

func NewImageWithCGLayer added in v0.17.0

func NewImageWithCGLayer(layer coregraphics.CGLayerRef) *Image

NewImageWithCGLayer initializes an image object from the contents supplied by a CGLayer object.

func NewImageWithCGLayerOptions added in v0.17.0

func NewImageWithCGLayerOptions(layer coregraphics.CGLayerRef, options obj.Object) *Image

NewImageWithCGLayerOptions initializes an image object from the contents supplied by a CGLayer object, using the specified options.

func NewImageWithCVImageBuffer added in v0.17.0

func NewImageWithCVImageBuffer(imageBuffer unsafe.Pointer) *Image

NewImageWithCVImageBuffer initializes an image object from the contents of a Core Video image buffer.

func NewImageWithCVImageBufferOptions added in v0.17.0

func NewImageWithCVImageBufferOptions(imageBuffer unsafe.Pointer, options obj.Object) *Image

NewImageWithCVImageBufferOptions initializes an image object from the contents of a Core Video image buffer, using the specified options.

func NewImageWithCVPixelBuffer added in v0.17.0

func NewImageWithCVPixelBuffer(pixelBuffer unsafe.Pointer) *Image

NewImageWithCVPixelBuffer initializes an image object from the contents of a Core Video pixel buffer.

func NewImageWithCVPixelBufferOptions added in v0.17.0

func NewImageWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options obj.Object) *Image

NewImageWithCVPixelBufferOptions initializes an image object from the contents of a Core Video pixel buffer using the specified options.

func NewImageWithColor added in v0.17.0

func NewImageWithColor(color *Color) *Image

NewImageWithColor initializes an image of infinite extent whose entire content is the specified color.

func NewImageWithContentsOfURL added in v0.17.0

func NewImageWithContentsOfURL(url string) *Image

NewImageWithContentsOfURL initializes an image object by reading an image from a URL.

func NewImageWithContentsOfURLOptions added in v0.17.0

func NewImageWithContentsOfURLOptions(url string, options obj.Object) *Image

NewImageWithContentsOfURLOptions initializes an image object by reading an image from a URL, using the specified options.

func NewImageWithData added in v0.17.0

func NewImageWithData(data []byte) *Image

NewImageWithData initializes an image object with the supplied image data.

func NewImageWithDataOptions added in v0.17.0

func NewImageWithDataOptions(data []byte, options obj.Object) *Image

NewImageWithDataOptions initializes an image object with the supplied image data, using the specified options.

func NewImageWithDepthData added in v0.17.0

func NewImageWithDepthData(data obj.Object) *Image

NewImageWithDepthData creates a new Image.

func NewImageWithDepthDataOptions added in v0.17.0

func NewImageWithDepthDataOptions(data obj.Object, options map[string]obj.Object) *Image

NewImageWithDepthDataOptions creates a new Image.

func NewImageWithIOSurface added in v0.17.0

func NewImageWithIOSurface(surface coregraphics.IOSurfaceRef) *Image

NewImageWithIOSurface initializes an image with the contents of an IOSurface.

func NewImageWithIOSurfaceOptions added in v0.17.0

func NewImageWithIOSurfaceOptions(surface coregraphics.IOSurfaceRef, options obj.Object) *Image

NewImageWithIOSurfaceOptions initializes, using the specified options, an image with the contents of an IOSurface.

func NewImageWithIOSurfacePlaneFormatOptions added in v0.17.0

func NewImageWithIOSurfacePlaneFormatOptions(surface coregraphics.IOSurfaceRef, plane int, format int, options obj.Object) *Image

NewImageWithIOSurfacePlaneFormatOptions initializes, using the specified format and options, an image with the contents of a specific data plane in an IOSurface.

func NewImageWithImageProviderSizeFormatColorSpaceOptions added in v0.17.0

func NewImageWithImageProviderSizeFormatColorSpaceOptions(provider obj.Object, width int, height int, format int, colorSpace coregraphics.CGColorSpaceRef, options obj.Object) *Image

NewImageWithImageProviderSizeFormatColorSpaceOptions initializes an image object based on pixels from an image provider object.

func NewImageWithPortaitEffectsMatte added in v0.17.0

func NewImageWithPortaitEffectsMatte(matte obj.Object) *Image

NewImageWithPortaitEffectsMatte creates a new Image.

func NewImageWithPortaitEffectsMatteOptions added in v0.17.0

func NewImageWithPortaitEffectsMatteOptions(matte obj.Object, options obj.Object) *Image

NewImageWithPortaitEffectsMatteOptions creates a new Image.

func NewImageWithSemanticSegmentationMatte added in v0.17.0

func NewImageWithSemanticSegmentationMatte(matte obj.Object) *Image

NewImageWithSemanticSegmentationMatte creates a new Image.

func NewImageWithSemanticSegmentationMatteOptions added in v0.17.0

func NewImageWithSemanticSegmentationMatteOptions(matte obj.Object, options obj.Object) *Image

NewImageWithSemanticSegmentationMatteOptions creates a new Image.

func NewImageWithTextureSizeFlippedColorSpace added in v0.17.0

func NewImageWithTextureSizeFlippedColorSpace(name int, size corefoundation.CGSize, flipped bool, colorSpace coregraphics.CGColorSpaceRef) *Image

NewImageWithTextureSizeFlippedColorSpace initializes an image object with data supplied by an OpenGL texture.

func NewImageWithTextureSizeFlippedOptions added in v0.17.0

func NewImageWithTextureSizeFlippedOptions(name int, size corefoundation.CGSize, flipped bool, options obj.Object) *Image

NewImageWithTextureSizeFlippedOptions initializes an image object with data supplied by an OpenGL texture.

func RedImage added in v0.17.0

func RedImage() *Image

RedImage returns the red image.

func WhiteImage added in v0.17.0

func WhiteImage() *Image

WhiteImage returns the white image.

func YellowImage added in v0.17.0

func YellowImage() *Image

YellowImage returns the yellow image.

func (*Image) AutoAdjustmentFilters added in v0.17.0

func (i *Image) AutoAdjustmentFilters() []*Filter

AutoAdjustmentFilters returns all possible automatically selected and configured filters for adjusting the image.

AutoAdjustmentFilters returns the collection as a Go slice.

func (*Image) AutoAdjustmentFiltersWithOptions added in v0.17.0

func (i *Image) AutoAdjustmentFiltersWithOptions(options obj.Object) []*Filter

AutoAdjustmentFiltersWithOptions returns a subset of automatically selected and configured filters for adjusting the image.

func (*Image) CGImage added in v0.17.0

func (i *Image) CGImage() coregraphics.CGImageRef

CGImage returns the cg image.

func (*Image) ColorSpace added in v0.17.0

func (i *Image) ColorSpace() coregraphics.CGColorSpaceRef

ColorSpace returns the color space.

func (*Image) ContentAverageLightLevel added in v0.17.0

func (i *Image) ContentAverageLightLevel() float32

ContentAverageLightLevel returns the content average light level of the image. If the image average light level is unknown, then the value 0.0 will be returned. If the image headroom is known, then a value greater than or equal to 0.0 will be returned. The image average light level may known when a CIImage is first initialized. If the a CIImage is initialized with a: * `CGImage` : then the headroom will be determined by `CGImageGetContentAverageLightLevel()`. * `CVPixelBuffer` : then the headroom will be determined by `kCVImageBufferContentLightLevelInfoKey`. If the image is the result of applying a “CIFilter-class“ or “CIKernel“, this property will return `0.0`. There are exceptions to this. Applying a “CIWarpKernel“ or certain “CIFilter-class“ (e.g. `CIGaussianBlur`, `CILanczosScaleTransform`, `CIAreaAverage` and some others) to an image will result in a “CIImage“ instance with the same `contentAverageLightLevel` property value.

func (*Image) ContentHeadroom added in v0.17.0

func (i *Image) ContentHeadroom() float32

ContentHeadroom returns the content headroom of the image. If the image headroom is unknown, then the value 0.0 will be returned. If the image headroom is known, then a value greater than or equal to 1.0 will be returned. A value of 1.0 will be returned if the image is SDR. A value greater than 1.0 will be returned if the image is HDR. The image headroom may known when a CIImage is first initialized. If the a CIImage is initialized using: * `NSURL` or `NSData` : the headroom may be determined by associated metadata or deduced from pixel format or colorSpace information. * `CGImage` : headroom may be determined by `CGImageGetHeadroomInfo()` or deduced from pixel format or colorSpace information. * `IOSurface` : then the headroom will be determined by `kIOSurfaceContentHeadroom`. or deduced from pixel format or colorSpace information. * `CVPixelBuffer` : then the headroom will be determined by `kCVImageBufferContentLightLevelInfoKey`. or deduced from pixel format or colorSpace information. * `BitmapData` : headroom may be deduced from pixel format or colorSpace information. If the image is the result of applying a “CIFilter-class“ or “CIKernel“, this method will return `0.0`. There are exceptions to this. Applying a `CIWarpKernel“ or certain “CIFilter-class“ (e.g. `CIGaussianBlur`, `CILanczosScaleTransform`, `CIAreaAverage` and some others) to an image will result in a “CIImage“ instance with the same `contentHeadroom` property value.

func (*Image) Definition added in v0.17.0

func (i *Image) Definition() *FilterShape

Definition returns the definition.

func (*Image) DepthData added in v0.17.0

func (i *Image) DepthData() obj.Object

DepthData returns the depth data.

func (*Image) Description added in v0.17.0

func (i *Image) Description() string

Description returns the object's -description text.

func (*Image) Extent added in v0.17.0

func (i *Image) Extent() corefoundation.CGRect

Extent returns a rectangle the defines the bounds of non-(0,0,0,0) pixels in the image. > Note: the “extent“ of `CIImage“ may be infinite or have a non-zero origin.

func (*Image) ImageByApplyingFilter added in v0.17.0

func (i *Image) ImageByApplyingFilter(filterName string) *Image

ImageByApplyingFilter applies the filter to an image and returns the output.

func (*Image) ImageByApplyingFilterWithInputParameters added in v0.17.0

func (i *Image) ImageByApplyingFilterWithInputParameters(filterName string, params map[string]obj.Object) *Image

ImageByApplyingFilterWithInputParameters returns a new image created by applying a filter to the original image with the specified name and parameters.

func (*Image) ImageByApplyingGainMap added in v0.17.0

func (i *Image) ImageByApplyingGainMap(gainmap *Image) *Image

ImageByApplyingGainMap create an image that applies a gain map Core Image image to the received Core Image image.

func (*Image) ImageByApplyingGainMapHeadroom added in v0.17.0

func (i *Image) ImageByApplyingGainMapHeadroom(gainmap *Image, headroom float32) *Image

ImageByApplyingGainMapHeadroom create an image that applies a gain map Core Image image with a specified headroom to the received Core Image image.

func (*Image) ImageByApplyingGaussianBlurWithSigma added in v0.17.0

func (i *Image) ImageByApplyingGaussianBlurWithSigma(sigma float64) *Image

ImageByApplyingGaussianBlurWithSigma create an image by applying a gaussian blur to the receiver.

func (*Image) ImageByApplyingOrientation added in v0.17.0

func (i *Image) ImageByApplyingOrientation(orientation int) *Image

ImageByApplyingOrientation returns a new image created by transforming the original image to the specified EXIF orientation.

func (*Image) ImageByApplyingTransform added in v0.17.0

func (i *Image) ImageByApplyingTransform(matrix corefoundation.CGAffineTransform) *Image

ImageByApplyingTransform returns a new image that represents the original image after applying an affine transform.

func (*Image) ImageByApplyingTransformHighQualityDownsample added in v0.17.0

func (i *Image) ImageByApplyingTransformHighQualityDownsample(matrix corefoundation.CGAffineTransform, highQualityDownsample bool) *Image

ImageByApplyingTransformHighQualityDownsample wraps the corresponding Objective-C method.

func (*Image) ImageByClampingToExtent added in v0.17.0

func (i *Image) ImageByClampingToExtent() *Image

ImageByClampingToExtent returns a new image created by making the pixel colors along its edges extend infinitely in all directions.

func (*Image) ImageByClampingToRect added in v0.17.0

func (i *Image) ImageByClampingToRect(rect corefoundation.CGRect) *Image

ImageByClampingToRect returns a new image created by cropping to a specified area, then making the pixel colors along the edges of the cropped image extend infinitely in all directions.

func (*Image) ImageByColorMatchingColorSpaceToWorkingSpace added in v0.17.0

func (i *Image) ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.CGColorSpaceRef) *Image

ImageByColorMatchingColorSpaceToWorkingSpace returns a new image created by color matching from the specified color space to the context’s working color space.

func (*Image) ImageByColorMatchingWorkingSpaceToColorSpace added in v0.17.0

func (i *Image) ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.CGColorSpaceRef) *Image

ImageByColorMatchingWorkingSpaceToColorSpace returns a new image created by color matching from the context’s working color space to the specified color space.

func (*Image) ImageByCompositingOverImage added in v0.17.0

func (i *Image) ImageByCompositingOverImage(dest *Image) *Image

ImageByCompositingOverImage returns a new image created by compositing the original image over the specified destination image.

func (*Image) ImageByConvertingLabToWorkingSpace added in v0.17.0

func (i *Image) ImageByConvertingLabToWorkingSpace() *Image

ImageByConvertingLabToWorkingSpace returns the image by converting lab to working space.

func (*Image) ImageByConvertingWorkingSpaceToLab added in v0.17.0

func (i *Image) ImageByConvertingWorkingSpaceToLab() *Image

ImageByConvertingWorkingSpaceToLab returns the image by converting working space to lab.

func (*Image) ImageByCroppingToRect added in v0.17.0

func (i *Image) ImageByCroppingToRect(rect corefoundation.CGRect) *Image

ImageByCroppingToRect returns a new image with a cropped portion of the original image.

func (*Image) ImageByInsertingIntermediate added in v0.17.0

func (i *Image) ImageByInsertingIntermediate() *Image

ImageByInsertingIntermediate create an image that inserts a intermediate that is cacheable

func (*Image) ImageByInsertingIntermediate2 added in v0.17.0

func (i *Image) ImageByInsertingIntermediate2(cache bool) *Image

ImageByInsertingIntermediate2 create an image that inserts a intermediate that is cacheable.

func (*Image) ImageByInsertingTiledIntermediate added in v0.17.0

func (i *Image) ImageByInsertingTiledIntermediate() *Image

ImageByInsertingTiledIntermediate create an image that inserts a intermediate that is cached in tiles

func (*Image) ImageByPremultiplyingAlpha added in v0.17.0

func (i *Image) ImageByPremultiplyingAlpha() *Image

ImageByPremultiplyingAlpha returns a new image created by multiplying the image’s RGB values by its alpha values.

func (*Image) ImageBySamplingLinear added in v0.17.0

func (i *Image) ImageBySamplingLinear() *Image

ImageBySamplingLinear create an image by changing the receiver’s sample mode to bilinear interpolation.

func (*Image) ImageBySamplingNearest added in v0.17.0

func (i *Image) ImageBySamplingNearest() *Image

ImageBySamplingNearest create an image by changing the receiver’s sample mode to nearest neighbor.

func (*Image) ImageBySettingAlphaOneInExtent added in v0.17.0

func (i *Image) ImageBySettingAlphaOneInExtent(extent corefoundation.CGRect) *Image

ImageBySettingAlphaOneInExtent returns a new image created by setting all alpha values to 1.0 within the specified rectangle and to 0.0 outside of that area.

func (*Image) ImageBySettingContentAverageLightLevel added in v0.17.0

func (i *Image) ImageBySettingContentAverageLightLevel(average float32) *Image

ImageBySettingContentAverageLightLevel create an image by changing the receiver’s contentAverageLightLevel property.

func (*Image) ImageBySettingContentHeadroom added in v0.17.0

func (i *Image) ImageBySettingContentHeadroom(headroom float32) *Image

ImageBySettingContentHeadroom create an image by changing the receiver’s contentHeadroom property.

func (*Image) ImageBySettingProperties added in v0.17.0

func (i *Image) ImageBySettingProperties(properties obj.Object) *Image

ImageBySettingProperties return a new image by changing the receiver’s metadata properties.

func (*Image) ImageByUnpremultiplyingAlpha added in v0.17.0

func (i *Image) ImageByUnpremultiplyingAlpha() *Image

ImageByUnpremultiplyingAlpha returns a new image created by dividing the image’s RGB values by its alpha values.

func (*Image) ImageTransformForOrientation added in v0.17.0

func (i *Image) ImageTransformForOrientation(orientation int) corefoundation.CGAffineTransform

ImageTransformForOrientation returns the transformation needed to reorient the image to the specified orientation.

func (*Image) IsEqual added in v0.17.0

func (i *Image) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Image) IsKind added in v0.17.0

func (i *Image) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Image) IsOpaque added in v0.17.0

func (i *Image) IsOpaque() bool

IsOpaque reports whether the image is known to have and alpha value of `1.0` over the entire image extent.

func (*Image) PixelBuffer added in v0.18.0

func (i *Image) PixelBuffer() unsafe.Pointer

PixelBuffer returns the pixel buffer.

func (*Image) PortraitEffectsMatte added in v0.17.0

func (i *Image) PortraitEffectsMatte() obj.Object

PortraitEffectsMatte returns the portrait effects matte.

func (*Image) Properties added in v0.17.0

func (i *Image) Properties() map[string]obj.Object

Properties returns the metadata properties dictionary of the image. If the “CIImage“ was created from `NSURL` or `NSData` then this dictionary is determined by calling `CGImageSourceCopyPropertiesAtIndex()`. If the “CIImage“ was created with the “kCIImageProperties“ option, then that dictionary is returned. If the “CIImage“ was created by applying “CIFilter-class“ or “CIKernel“ then the properties of the root inputImage will be returned.

func (*Image) RegionOfInterestForImageInRect added in v0.17.0

func (i *Image) RegionOfInterestForImageInRect(image *Image, rect corefoundation.CGRect) corefoundation.CGRect

RegionOfInterestForImageInRect returns the region of interest for the filter chain that generates the image.

func (*Image) SemanticSegmentationMatte added in v0.17.0

func (i *Image) SemanticSegmentationMatte() obj.Object

SemanticSegmentationMatte returns the semantic segmentation matte.

func (*Image) String added in v0.17.0

func (i *Image) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Image) URL added in v0.17.0

func (i *Image) URL() string

URL returns the URL.

type ImageAccumulator added in v0.17.0

type ImageAccumulator struct {
	objref.Handle
}

ImageAccumulator is an idiomatic wrapper over the Objective-C class CIImageAccumulator.

An object that manages feedback-based image processing for tasks such as painting or fluid simulation.

func ImageAccumulatorFromID added in v0.17.0

func ImageAccumulatorFromID(id objc.ID) *ImageAccumulator

ImageAccumulatorFromID adopts an existing Objective-C object as a ImageAccumulator (nil for 0), retaining it and registering a release finalizer.

func ImageAccumulatorWithExtentFormat added in v0.17.0

func ImageAccumulatorWithExtentFormat(extent corefoundation.CGRect, format int) *ImageAccumulator

ImageAccumulatorWithExtentFormat creates an image accumulator with the specified extent and pixel format.

func ImageAccumulatorWithExtentFormatColorSpace added in v0.17.0

func ImageAccumulatorWithExtentFormatColorSpace(extent corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef) *ImageAccumulator

ImageAccumulatorWithExtentFormatColorSpace creates an image accumulator with the specified extent, pixel format, and color space.

func NewImageAccumulatorWithExtentFormat added in v0.17.0

func NewImageAccumulatorWithExtentFormat(extent corefoundation.CGRect, format int) *ImageAccumulator

NewImageAccumulatorWithExtentFormat initializes an image accumulator with the specified extent and pixel format.

func NewImageAccumulatorWithExtentFormatColorSpace added in v0.17.0

func NewImageAccumulatorWithExtentFormatColorSpace(extent corefoundation.CGRect, format int, colorSpace coregraphics.CGColorSpaceRef) *ImageAccumulator

NewImageAccumulatorWithExtentFormatColorSpace initializes an image accumulator with the specified extent, pixel format, and color space.

func (*ImageAccumulator) Clear added in v0.17.0

func (ia *ImageAccumulator) Clear()

Clear resets the accumulator, discarding any pending updates and the current content.

func (*ImageAccumulator) Description added in v0.17.0

func (ia *ImageAccumulator) Description() string

Description returns the object's -description text.

func (*ImageAccumulator) Extent added in v0.17.0

func (ia *ImageAccumulator) Extent() corefoundation.CGRect

Extent returns the extent.

func (*ImageAccumulator) Format added in v0.17.0

func (ia *ImageAccumulator) Format() int

Format returns the format.

func (*ImageAccumulator) Image added in v0.17.0

func (ia *ImageAccumulator) Image() *Image

Image returns the current contents of the image accumulator.

func (*ImageAccumulator) IsEqual added in v0.17.0

func (ia *ImageAccumulator) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ImageAccumulator) IsKind added in v0.17.0

func (ia *ImageAccumulator) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ImageAccumulator) SetImage added in v0.17.0

func (ia *ImageAccumulator) SetImage(image *Image)

SetImage sets the contents of the image accumulator to the contents of the specified image object.

func (*ImageAccumulator) SetImageDirtyRect added in v0.17.0

func (ia *ImageAccumulator) SetImageDirtyRect(image *Image, dirtyRect corefoundation.CGRect)

SetImageDirtyRect updates an image accumulator with a subregion of an image object.

func (*ImageAccumulator) String added in v0.17.0

func (ia *ImageAccumulator) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ImageProcessorInput added in v0.17.0

type ImageProcessorInput interface {
	Region() corefoundation.CGRect
	BytesPerRow() int
	Format() int
	BaseAddress() unsafe.Pointer
	Surface() coregraphics.IOSurfaceRef
	PixelBuffer() unsafe.Pointer
	MetalTexture() obj.Object
	Digest() uint64
	RoiTileIndex() int
	RoiTileCount() int
}

ImageProcessorInput is the Go form of the Objective-C protocol CIImageProcessorInput.

type ImageProcessorKernel added in v0.17.0

type ImageProcessorKernel struct {
	objref.Handle
}

ImageProcessorKernel is an idiomatic wrapper over the Objective-C class CIImageProcessorKernel.

The abstract class you extend to create custom image processors that can integrate with Core Image workflows.

func ImageProcessorKernelFromID added in v0.17.0

func ImageProcessorKernelFromID(id objc.ID) *ImageProcessorKernel

ImageProcessorKernelFromID adopts an existing Objective-C object as a ImageProcessorKernel (nil for 0), retaining it and registering a release finalizer.

func NewImageProcessorKernel added in v0.17.0

func NewImageProcessorKernel() *ImageProcessorKernel

NewImageProcessorKernel creates a new ImageProcessorKernel.

func (*ImageProcessorKernel) Description added in v0.17.0

func (ipk *ImageProcessorKernel) Description() string

Description returns the object's -description text.

func (*ImageProcessorKernel) IsEqual added in v0.17.0

func (ipk *ImageProcessorKernel) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ImageProcessorKernel) IsKind added in v0.17.0

func (ipk *ImageProcessorKernel) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ImageProcessorKernel) String added in v0.17.0

func (ipk *ImageProcessorKernel) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ImageProcessorOutput added in v0.17.0

type ImageProcessorOutput interface {
	Region() corefoundation.CGRect
	BytesPerRow() int
	Format() int
	BaseAddress() unsafe.Pointer
	Surface() coregraphics.IOSurfaceRef
	PixelBuffer() unsafe.Pointer
	MetalTexture() obj.Object
	MetalCommandBuffer() obj.Object
	Digest() uint64
}

ImageProcessorOutput is the Go form of the Objective-C protocol CIImageProcessorOutput.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type Kernel added in v0.17.0

type Kernel struct {
	objref.Handle
}

Kernel is an idiomatic wrapper over the Objective-C class CIKernel.

Kernel is an abstract base — you do not construct it directly. Construct one of ColorKernel, WarpKernel and pass it where a Kernel is accepted.

A GPU-based image-processing routine used to create custom Core Image filters.

func CIKernelKernelWithString

func CIKernelKernelWithString(str string) *Kernel

CIKernelKernelWithString creates a single kernel object.

func KernelFromID added in v0.17.0

func KernelFromID(id objc.ID) *Kernel

KernelFromID adopts an existing Objective-C object as a Kernel (nil for 0), retaining it and registering a release finalizer.

func KernelWithFunctionNameFromMetalLibraryData added in v0.17.0

func KernelWithFunctionNameFromMetalLibraryData(name string, data []byte) (result *Kernel, err error)

KernelWithFunctionNameFromMetalLibraryData creates a single kernel object using a Metal Shading Language (MSL) kernel function.

func KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormat added in v0.17.0

func KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormat(name string, data []byte, format int) (result *Kernel, err error)

KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormat creates a single kernel object using a Metal Shading Language kernel function with optional pixel format.

func KernelsWithMetalString added in v0.17.0

func KernelsWithMetalString(source string) (result []*Kernel, err error)

KernelsWithMetalString load kernels from a Metal language string.

func KernelsWithString added in v0.17.0

func KernelsWithString(str string) []*Kernel

KernelsWithString creates and returns and array of CIKernel objects.

func (*Kernel) Description added in v0.17.0

func (k *Kernel) Description() string

Description returns the object's -description text.

func (*Kernel) IsEqual added in v0.17.0

func (k *Kernel) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Kernel) IsKind added in v0.17.0

func (k *Kernel) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Kernel) Name added in v0.17.0

func (k *Kernel) Name() string

Name returns the name.

func (*Kernel) String added in v0.17.0

func (k *Kernel) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type KernelProvider added in v0.17.0

type KernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

KernelProvider is accepted wherever a CIKernel (or one of its subclasses) is expected.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

type MDQueryOptionFlags int32
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MTLBuffer

type MTLBuffer interface {
}

MTLBuffer is the Go form of the Objective-C protocol MTLBuffer.

type MTLCommandBuffer

type MTLCommandBuffer interface {
}

MTLCommandBuffer is the Go form of the Objective-C protocol MTLCommandBuffer.

type MTLCommandQueue

type MTLCommandQueue interface {
}

MTLCommandQueue is the Go form of the Objective-C protocol MTLCommandQueue.

type MTLDevice

type MTLDevice interface {
}

MTLDevice is the Go form of the Objective-C protocol MTLDevice.

type MTLTexture

type MTLTexture interface {
}

MTLTexture is the Go form of the Objective-C protocol MTLTexture.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

type NXMouseButton int32
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type PDF417CodeDescriptor added in v0.17.0

type PDF417CodeDescriptor struct {
	BarcodeDescriptor
}

PDF417CodeDescriptor is an idiomatic wrapper over the Objective-C class CIPDF417CodeDescriptor.

It embeds BarcodeDescriptor, promoting that type's methods.

A concrete subclass of Core Image Barcode Descriptor that represents a PDF417 symbol.

func DescriptorWithPayloadIsCompactRowCountColumnCount added in v0.17.0

func DescriptorWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload []byte, isCompact bool, rowCount int, columnCount int) *PDF417CodeDescriptor

DescriptorWithPayloadIsCompactRowCountColumnCount creates an PDF417 code descriptor for the given payload and parameters.

func NewPDF417CodeDescriptorWithPayloadIsCompactRowCountColumnCount added in v0.17.0

func NewPDF417CodeDescriptorWithPayloadIsCompactRowCountColumnCount(errorCorrectedPayload []byte, isCompact bool, rowCount int, columnCount int) *PDF417CodeDescriptor

NewPDF417CodeDescriptorWithPayloadIsCompactRowCountColumnCount initializes an PDF417 code descriptor for the given payload and parameters.

func PDF417CodeDescriptorFromID added in v0.17.0

func PDF417CodeDescriptorFromID(id objc.ID) *PDF417CodeDescriptor

PDF417CodeDescriptorFromID adopts an existing Objective-C object as a PDF417CodeDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*PDF417CodeDescriptor) ColumnCount added in v0.17.0

func (pcd *PDF417CodeDescriptor) ColumnCount() int

ColumnCount returns the number of columns in the PDF417 code symbol. Valid column count values are from 1 to 30. This count excluded the columns used to indicate the symbol structure.

func (*PDF417CodeDescriptor) ErrorCorrectedPayload added in v0.17.0

func (pcd *PDF417CodeDescriptor) ErrorCorrectedPayload() []byte

ErrorCorrectedPayload returns the error-corrected payload containing the data encoded in the PDF417 code symbol. The first codeword indicates the number of data codewords in the errorCorrectedPayload. PDF417 codes are comprised of a start character on the left and a stop character on the right. Each row begins and ends with special characters indicating the current row as well as information about the dimensions of the PDF417 symbol. The errorCorrectedPayload represents the sequence of PDF417 codewords that make up the body of the message. The first codeword indicates the number of codewords in the message. This count includes the "count" codeword and any padding codewords, but does not include the error correction codewords. Each codeword is a 16-bit value in the range of 0...928. The sequence is to be interpreted as described in the PDF417 bar code symbology specification -- ISO/IEC 15438:2006(E).

func (*PDF417CodeDescriptor) IsCompact added in v0.17.0

func (pcd *PDF417CodeDescriptor) IsCompact() bool

IsCompact reports whether a boolean value telling if the PDF417 code is compact. Compact PDF417 symbols have abbreviated right-side guard bars.

func (*PDF417CodeDescriptor) RowCount added in v0.17.0

func (pcd *PDF417CodeDescriptor) RowCount() int

RowCount returns the number of rows in the PDF417 code symbol. Valid row count values are from 3 to 90.

type PMPageToPaperMappingType

type PMPageToPaperMappingType int32
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PlugIn added in v0.17.0

type PlugIn struct {
	objref.Handle
}

PlugIn is an idiomatic wrapper over the Objective-C class CIPlugIn.

The mechanism for loading image units in macOS.

func NewPlugIn added in v0.17.0

func NewPlugIn() *PlugIn

NewPlugIn creates a new PlugIn.

func PlugInFromID added in v0.17.0

func PlugInFromID(id objc.ID) *PlugIn

PlugInFromID adopts an existing Objective-C object as a PlugIn (nil for 0), retaining it and registering a release finalizer.

func (*PlugIn) Description added in v0.17.0

func (pi *PlugIn) Description() string

Description returns the object's -description text.

func (*PlugIn) IsEqual added in v0.17.0

func (pi *PlugIn) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PlugIn) IsKind added in v0.17.0

func (pi *PlugIn) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PlugIn) String added in v0.17.0

func (pi *PlugIn) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PlugInRegistration added in v0.17.0

type PlugInRegistration interface {
	Load(host unsafe.Pointer) bool
}

PlugInRegistration is the Go form of the Objective-C protocol CIPlugInRegistration.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QRCodeDescriptor added in v0.17.0

type QRCodeDescriptor struct {
	BarcodeDescriptor
}

QRCodeDescriptor is an idiomatic wrapper over the Objective-C class CIQRCodeDescriptor.

It embeds BarcodeDescriptor, promoting that type's methods.

A concrete subclass of the Core Image Barcode Descriptor that represents a square QR code symbol.

func DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel added in v0.17.0

func DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) *QRCodeDescriptor

DescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel creates a QR code descriptor for the given payload and parameters.

func NewQRCodeDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel added in v0.17.0

func NewQRCodeDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel(errorCorrectedPayload []byte, symbolVersion int, maskPattern uint8, errorCorrectionLevel QRCodeErrorCorrectionLevel) *QRCodeDescriptor

NewQRCodeDescriptorWithPayloadSymbolVersionMaskPatternErrorCorrectionLevel initializes a QR code descriptor for the given payload and parameters.

func QRCodeDescriptorFromID added in v0.17.0

func QRCodeDescriptorFromID(id objc.ID) *QRCodeDescriptor

QRCodeDescriptorFromID adopts an existing Objective-C object as a QRCodeDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*QRCodeDescriptor) ErrorCorrectedPayload added in v0.17.0

func (qcd *QRCodeDescriptor) ErrorCorrectedPayload() []byte

ErrorCorrectedPayload returns the error-corrected codeword payload that comprises the QR code symbol. QR Codes are formally specified in ISO/IEC 18004:2006(E). Section 6.4.10 "Bitstream to codeword conversion" specifies the set of 8-bit codewords in the symbol immediately prior to splitting the message into blocks and applying error correction. During decode, error correction is applied and if successful, the message is re-ordered to the state immediately following "Bitstream to codeword conversion." The `errorCorrectedPayload` corresponds to this sequence of 8-bit codewords.

func (*QRCodeDescriptor) ErrorCorrectionLevel added in v0.17.0

func (qcd *QRCodeDescriptor) ErrorCorrectionLevel() QRCodeErrorCorrectionLevel

ErrorCorrectionLevel returns the error correction level of the QR code symbol. QR Codes support four levels of Reed-Solomon error correction. The possible error correction levels are enumerated in “CIDataMatrixCodeECCVersion“.

func (*QRCodeDescriptor) MaskPattern added in v0.17.0

func (qcd *QRCodeDescriptor) MaskPattern() uint8

MaskPattern returns the data mask pattern for the QR code symbol. QR Codes support eight data mask patterns, which are used to avoid large black or large white areas inside the symbol body. Valid values range from 0 to 7.

func (*QRCodeDescriptor) SymbolVersion added in v0.17.0

func (qcd *QRCodeDescriptor) SymbolVersion() int

SymbolVersion returns the version of the QR code which corresponds to the size of the QR code symbol. ISO/IEC 18004 defines versions from 1 to 40, where a higher symbol version indicates a larger data-carrying capacity. This field is required in order to properly interpret the error corrected payload.

type QRCodeErrorCorrectionLevel added in v0.17.0

type QRCodeErrorCorrectionLevel int64

Constants indicating the percentage of the symbol that is dedicated to error correction.

const (
	// Indicates that approximately 20% of the symbol data is dedicated to error correction.
	QRCodeErrorCorrectionLevelL QRCodeErrorCorrectionLevel = 76
	// Indicates that approximately 37% of the symbol data is dedicated to error correction.
	QRCodeErrorCorrectionLevelM QRCodeErrorCorrectionLevel = 77
	// Indicates that approximately 55% of the symbol data is dedicated to error correction.
	QRCodeErrorCorrectionLevelQ QRCodeErrorCorrectionLevel = 81
	// Indicates that approximately 65% of the symbol data is dedicated to error correction.
	QRCodeErrorCorrectionLevelH QRCodeErrorCorrectionLevel = 72
)

func (QRCodeErrorCorrectionLevel) String added in v0.17.0

String returns the QRCodeErrorCorrectionLevel constant's name, or its numeric form when the value is not a known constant.

type QRCodeFeature added in v0.17.0

type QRCodeFeature struct {
	Feature
}

QRCodeFeature is an idiomatic wrapper over the Objective-C class CIQRCodeFeature.

It embeds Feature, promoting that type's methods.

Information about a Quick Response code detected in a still or video image.

func NewQRCodeFeature added in v0.17.0

func NewQRCodeFeature() *QRCodeFeature

NewQRCodeFeature creates a new QRCodeFeature.

func QRCodeFeatureFromID added in v0.17.0

func QRCodeFeatureFromID(id objc.ID) *QRCodeFeature

QRCodeFeatureFromID adopts an existing Objective-C object as a QRCodeFeature (nil for 0), retaining it and registering a release finalizer.

func (*QRCodeFeature) BottomLeft added in v0.17.0

func (qcf *QRCodeFeature) BottomLeft() corefoundation.CGPoint

BottomLeft returns the image coordinate of the lower-left corner of the detected QR code.

func (*QRCodeFeature) BottomRight added in v0.17.0

func (qcf *QRCodeFeature) BottomRight() corefoundation.CGPoint

BottomRight returns the image coordinate of the lower-right corner of the detected QR code.

func (*QRCodeFeature) MessageString added in v0.17.0

func (qcf *QRCodeFeature) MessageString() string

MessageString returns the string decoded from the detected barcode.

func (*QRCodeFeature) SymbolDescriptor added in v0.17.0

func (qcf *QRCodeFeature) SymbolDescriptor() *QRCodeDescriptor

SymbolDescriptor returns an abstract representation of a QR Code symbol. The property is a “CIQRCodeDescriptor“ instance that contains the payload, symbol version, mask pattern, and error correction level, so the QR Code can be reproduced.

func (*QRCodeFeature) TopLeft added in v0.17.0

func (qcf *QRCodeFeature) TopLeft() corefoundation.CGPoint

TopLeft returns the image coordinate of the upper-left corner of the detected QR code.

func (*QRCodeFeature) TopRight added in v0.17.0

func (qcf *QRCodeFeature) TopRight() corefoundation.CGPoint

TopRight returns the image coordinate of the upper-right corner of the detected QR code.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RAWFilter added in v0.17.0

type RAWFilter struct {
	Filter
}

RAWFilter is an idiomatic wrapper over the Objective-C class CIRAWFilter.

It embeds Filter, promoting that type's methods.

A filter subclass that produces an image by manipulating RAW image sensor data from a digital camera or scanner.

func FilterWithCVPixelBufferProperties added in v0.17.0

func FilterWithCVPixelBufferProperties(buffer unsafe.Pointer, properties obj.Object) *RAWFilter

FilterWithCVPixelBufferProperties creates a RAW filter from the pixel buffer and its properties that you specify.

func FilterWithImageDataIdentifierHint added in v0.17.0

func FilterWithImageDataIdentifierHint(data []byte, identifierHint string) *RAWFilter

FilterWithImageDataIdentifierHint creates a RAW filter from the image data and type hint that you specify.

func FilterWithImageURL added in v0.17.0

func FilterWithImageURL(url string) *RAWFilter

FilterWithImageURL creates a RAW filter from the image at the URL location that you specify.

func NewRAWFilter added in v0.17.0

func NewRAWFilter() *RAWFilter

NewRAWFilter creates a new RAWFilter.

func RAWFilterFromID added in v0.17.0

func RAWFilterFromID(id objc.ID) *RAWFilter

RAWFilterFromID adopts an existing Objective-C object as a RAWFilter (nil for 0), retaining it and registering a release finalizer.

func (*RAWFilter) BaselineExposure added in v0.17.0

func (rf *RAWFilter) BaselineExposure() float32

BaselineExposure returns the baseline exposure.

func (*RAWFilter) BoostAmount added in v0.17.0

func (rf *RAWFilter) BoostAmount() float32

BoostAmount returns the boost amount.

func (*RAWFilter) BoostShadowAmount added in v0.17.0

func (rf *RAWFilter) BoostShadowAmount() float32

BoostShadowAmount returns the boost shadow amount.

func (*RAWFilter) ColorNoiseReductionAmount added in v0.17.0

func (rf *RAWFilter) ColorNoiseReductionAmount() float32

ColorNoiseReductionAmount returns the color noise reduction amount.

func (*RAWFilter) ContrastAmount added in v0.17.0

func (rf *RAWFilter) ContrastAmount() float32

ContrastAmount returns the contrast amount.

func (*RAWFilter) DecoderVersion added in v0.17.0

func (rf *RAWFilter) DecoderVersion() *foundation.String

DecoderVersion returns the decoder version.

func (*RAWFilter) DetailAmount added in v0.17.0

func (rf *RAWFilter) DetailAmount() float32

DetailAmount returns the detail amount.

func (*RAWFilter) Exposure added in v0.17.0

func (rf *RAWFilter) Exposure() float32

Exposure returns the exposure.

func (*RAWFilter) ExtendedDynamicRangeAmount added in v0.17.0

func (rf *RAWFilter) ExtendedDynamicRangeAmount() float32

ExtendedDynamicRangeAmount returns the extended dynamic range amount.

func (*RAWFilter) IsColorNoiseReductionSupported added in v0.17.0

func (rf *RAWFilter) IsColorNoiseReductionSupported() bool

IsColorNoiseReductionSupported reports whether the object is color noise reduction supported.

func (*RAWFilter) IsContrastSupported added in v0.17.0

func (rf *RAWFilter) IsContrastSupported() bool

IsContrastSupported reports whether the object is contrast supported.

func (*RAWFilter) IsDetailSupported added in v0.17.0

func (rf *RAWFilter) IsDetailSupported() bool

IsDetailSupported reports whether the object is detail supported.

func (*RAWFilter) IsDraftModeEnabled added in v0.17.0

func (rf *RAWFilter) IsDraftModeEnabled() bool

IsDraftModeEnabled reports whether the object is draft mode enabled.

func (*RAWFilter) IsGamutMappingEnabled added in v0.17.0

func (rf *RAWFilter) IsGamutMappingEnabled() bool

IsGamutMappingEnabled reports whether the object is gamut mapping enabled.

func (*RAWFilter) IsHighlightRecoveryEnabled added in v0.17.0

func (rf *RAWFilter) IsHighlightRecoveryEnabled() bool

IsHighlightRecoveryEnabled reports whether the object is highlight recovery enabled.

func (*RAWFilter) IsHighlightRecoverySupported added in v0.17.0

func (rf *RAWFilter) IsHighlightRecoverySupported() bool

IsHighlightRecoverySupported reports whether the object is highlight recovery supported.

func (*RAWFilter) IsLensCorrectionEnabled added in v0.17.0

func (rf *RAWFilter) IsLensCorrectionEnabled() bool

IsLensCorrectionEnabled reports whether the object is lens correction enabled.

func (*RAWFilter) IsLensCorrectionSupported added in v0.17.0

func (rf *RAWFilter) IsLensCorrectionSupported() bool

IsLensCorrectionSupported reports whether the object is lens correction supported.

func (*RAWFilter) IsLocalToneMapSupported added in v0.17.0

func (rf *RAWFilter) IsLocalToneMapSupported() bool

IsLocalToneMapSupported reports whether the object is local tone map supported.

func (*RAWFilter) IsLuminanceNoiseReductionSupported added in v0.17.0

func (rf *RAWFilter) IsLuminanceNoiseReductionSupported() bool

IsLuminanceNoiseReductionSupported reports whether the object is luminance noise reduction supported.

func (*RAWFilter) IsMoireReductionSupported added in v0.17.0

func (rf *RAWFilter) IsMoireReductionSupported() bool

IsMoireReductionSupported reports whether the object is moire reduction supported.

func (*RAWFilter) IsSharpnessSupported added in v0.17.0

func (rf *RAWFilter) IsSharpnessSupported() bool

IsSharpnessSupported reports whether the object is sharpness supported.

func (*RAWFilter) LinearSpaceFilter added in v0.17.0

func (rf *RAWFilter) LinearSpaceFilter() *Filter

LinearSpaceFilter returns the linear space filter.

func (*RAWFilter) LocalToneMapAmount added in v0.17.0

func (rf *RAWFilter) LocalToneMapAmount() float32

LocalToneMapAmount returns the local tone map amount.

func (*RAWFilter) LuminanceNoiseReductionAmount added in v0.17.0

func (rf *RAWFilter) LuminanceNoiseReductionAmount() float32

LuminanceNoiseReductionAmount returns the luminance noise reduction amount.

func (*RAWFilter) MoireReductionAmount added in v0.17.0

func (rf *RAWFilter) MoireReductionAmount() float32

MoireReductionAmount returns the moire reduction amount.

func (*RAWFilter) NativeSize added in v0.17.0

func (rf *RAWFilter) NativeSize() corefoundation.CGSize

NativeSize returns the native size.

func (*RAWFilter) NeutralChromaticity added in v0.17.0

func (rf *RAWFilter) NeutralChromaticity() corefoundation.CGPoint

NeutralChromaticity returns the neutral chromaticity.

func (*RAWFilter) NeutralLocation added in v0.17.0

func (rf *RAWFilter) NeutralLocation() corefoundation.CGPoint

NeutralLocation returns the neutral location.

func (*RAWFilter) NeutralTemperature added in v0.17.0

func (rf *RAWFilter) NeutralTemperature() float32

NeutralTemperature returns the neutral temperature.

func (*RAWFilter) NeutralTint added in v0.17.0

func (rf *RAWFilter) NeutralTint() float32

NeutralTint returns the neutral tint.

func (*RAWFilter) PortraitEffectsMatte added in v0.17.0

func (rf *RAWFilter) PortraitEffectsMatte() *Image

PortraitEffectsMatte returns the portrait effects matte.

func (*RAWFilter) PreviewImage added in v0.17.0

func (rf *RAWFilter) PreviewImage() *Image

PreviewImage returns the preview image.

func (*RAWFilter) Properties added in v0.17.0

func (rf *RAWFilter) Properties() obj.Object

Properties returns the properties.

func (*RAWFilter) ScaleFactor added in v0.17.0

func (rf *RAWFilter) ScaleFactor() float32

ScaleFactor returns the scale factor.

func (*RAWFilter) SemanticSegmentationGlassesMatte added in v0.17.0

func (rf *RAWFilter) SemanticSegmentationGlassesMatte() *Image

SemanticSegmentationGlassesMatte returns the semantic segmentation glasses matte.

func (*RAWFilter) SemanticSegmentationHairMatte added in v0.17.0

func (rf *RAWFilter) SemanticSegmentationHairMatte() *Image

SemanticSegmentationHairMatte returns the semantic segmentation hair matte.

func (*RAWFilter) SemanticSegmentationSkinMatte added in v0.17.0

func (rf *RAWFilter) SemanticSegmentationSkinMatte() *Image

SemanticSegmentationSkinMatte returns the semantic segmentation skin matte.

func (*RAWFilter) SemanticSegmentationSkyMatte added in v0.17.0

func (rf *RAWFilter) SemanticSegmentationSkyMatte() *Image

SemanticSegmentationSkyMatte returns the semantic segmentation sky matte.

func (*RAWFilter) SemanticSegmentationTeethMatte added in v0.17.0

func (rf *RAWFilter) SemanticSegmentationTeethMatte() *Image

SemanticSegmentationTeethMatte returns the semantic segmentation teeth matte.

func (*RAWFilter) ShadowBias added in v0.17.0

func (rf *RAWFilter) ShadowBias() float32

ShadowBias returns the shadow bias.

func (*RAWFilter) SharpnessAmount added in v0.17.0

func (rf *RAWFilter) SharpnessAmount() float32

SharpnessAmount returns the sharpness amount.

func (*RAWFilter) SupportedDecoderVersions added in v0.17.0

func (rf *RAWFilter) SupportedDecoderVersions() []obj.Object

SupportedDecoderVersions returns the supported decoder versions.

SupportedDecoderVersions returns the collection as a Go slice.

func (*RAWFilter) WithBaselineExposure added in v0.17.0

func (rf *RAWFilter) WithBaselineExposure(baselineExposure float32) *RAWFilter

WithBaselineExposure sets a value that indicates the baseline exposure to apply to the image.

func (*RAWFilter) WithBoostAmount added in v0.17.0

func (rf *RAWFilter) WithBoostAmount(boostAmount float32) *RAWFilter

WithBoostAmount sets a value that indicates the amount of global tone curve to apply to the image.

func (*RAWFilter) WithBoostShadowAmount added in v0.17.0

func (rf *RAWFilter) WithBoostShadowAmount(boostShadowAmount float32) *RAWFilter

WithBoostShadowAmount sets a value that indicates the amount to boost the shadow areas of the image.

func (*RAWFilter) WithColorNoiseReductionAmount added in v0.17.0

func (rf *RAWFilter) WithColorNoiseReductionAmount(colorNoiseReductionAmount float32) *RAWFilter

WithColorNoiseReductionAmount sets a value that indicates the amount of chroma noise reduction to apply to the image.

func (*RAWFilter) WithContrastAmount added in v0.17.0

func (rf *RAWFilter) WithContrastAmount(contrastAmount float32) *RAWFilter

WithContrastAmount sets a value that indicates the amount of local contrast to apply to the edges of the image.

func (*RAWFilter) WithDecoderVersion added in v0.17.0

func (rf *RAWFilter) WithDecoderVersion(decoderVersion obj.Object) *RAWFilter

WithDecoderVersion sets a value that indicates the decoder version to use.

func (*RAWFilter) WithDetailAmount added in v0.17.0

func (rf *RAWFilter) WithDetailAmount(detailAmount float32) *RAWFilter

WithDetailAmount sets a value that indicates the amount of detail enhancement to apply to the edges of the image.

func (*RAWFilter) WithDraftModeEnabled added in v0.17.0

func (rf *RAWFilter) WithDraftModeEnabled(draftModeEnabled bool) *RAWFilter

WithDraftModeEnabled sets a Boolean that indicates whether to enable draft mode.

func (*RAWFilter) WithEnabled added in v0.17.0

func (rf *RAWFilter) WithEnabled(enabled bool) *RAWFilter

WithEnabled sets the enabled.

func (*RAWFilter) WithExposure added in v0.17.0

func (rf *RAWFilter) WithExposure(exposure float32) *RAWFilter

WithExposure sets a value that indicates the amount of exposure to apply to the image.

func (*RAWFilter) WithExtendedDynamicRangeAmount added in v0.17.0

func (rf *RAWFilter) WithExtendedDynamicRangeAmount(extendedDynamicRangeAmount float32) *RAWFilter

WithExtendedDynamicRangeAmount sets a value that indicates the amount of extended dynamic range (EDR) to apply to the image.

func (*RAWFilter) WithGamutMappingEnabled added in v0.17.0

func (rf *RAWFilter) WithGamutMappingEnabled(gamutMappingEnabled bool) *RAWFilter

WithGamutMappingEnabled sets a Boolean that indicates whether to enable gamut mapping.

func (*RAWFilter) WithHighlightRecoveryEnabled added in v0.17.0

func (rf *RAWFilter) WithHighlightRecoveryEnabled(highlightRecoveryEnabled bool) *RAWFilter

WithHighlightRecoveryEnabled sets the highlight recovery enabled.

func (*RAWFilter) WithLensCorrectionEnabled added in v0.17.0

func (rf *RAWFilter) WithLensCorrectionEnabled(lensCorrectionEnabled bool) *RAWFilter

WithLensCorrectionEnabled sets a Boolean that indicates whether to enable lens correction.

func (*RAWFilter) WithLinearSpaceFilter added in v0.17.0

func (rf *RAWFilter) WithLinearSpaceFilter(linearSpaceFilter FilterProvider) *RAWFilter

WithLinearSpaceFilter sets an optional filter you can apply to the RAW image while it’s in linear space.

func (*RAWFilter) WithLocalToneMapAmount added in v0.17.0

func (rf *RAWFilter) WithLocalToneMapAmount(localToneMapAmount float32) *RAWFilter

WithLocalToneMapAmount sets a value that indicates the amount of local tone curve to apply to the image.

func (*RAWFilter) WithLuminanceNoiseReductionAmount added in v0.17.0

func (rf *RAWFilter) WithLuminanceNoiseReductionAmount(luminanceNoiseReductionAmount float32) *RAWFilter

WithLuminanceNoiseReductionAmount sets a value that indicates the amount of luminance noise reduction to apply to the image.

func (*RAWFilter) WithMoireReductionAmount added in v0.17.0

func (rf *RAWFilter) WithMoireReductionAmount(moireReductionAmount float32) *RAWFilter

WithMoireReductionAmount sets a value that indicates the amount of moire artifact reduction to apply to high frequency areas of the image.

func (*RAWFilter) WithName added in v0.17.0

func (rf *RAWFilter) WithName(name string) *RAWFilter

WithName sets the name.

func (*RAWFilter) WithNeutralChromaticity added in v0.17.0

func (rf *RAWFilter) WithNeutralChromaticity(neutralChromaticity corefoundation.CGPoint) *RAWFilter

WithNeutralChromaticity sets a value that indicates the amount of white balance based on chromaticity values to apply to the image.

func (*RAWFilter) WithNeutralLocation added in v0.17.0

func (rf *RAWFilter) WithNeutralLocation(neutralLocation corefoundation.CGPoint) *RAWFilter

WithNeutralLocation sets a value that indicates the amount of white balance based on pixel coordinates to apply to the image.

func (*RAWFilter) WithNeutralTemperature added in v0.17.0

func (rf *RAWFilter) WithNeutralTemperature(neutralTemperature float32) *RAWFilter

WithNeutralTemperature sets a value that indicates the amount of white balance based on temperature values to apply to the image.

func (*RAWFilter) WithNeutralTint added in v0.17.0

func (rf *RAWFilter) WithNeutralTint(neutralTint float32) *RAWFilter

WithNeutralTint sets a value that indicates the amount of white balance based on tint values to apply to the image.

func (*RAWFilter) WithScaleFactor added in v0.17.0

func (rf *RAWFilter) WithScaleFactor(scaleFactor float32) *RAWFilter

WithScaleFactor sets a value that indicates the desired scale factor to draw the output image.

func (*RAWFilter) WithShadowBias added in v0.17.0

func (rf *RAWFilter) WithShadowBias(shadowBias float32) *RAWFilter

WithShadowBias sets a value that indicates the amount to subtract from the shadows in the image.

func (*RAWFilter) WithSharpnessAmount added in v0.17.0

func (rf *RAWFilter) WithSharpnessAmount(sharpnessAmount float32) *RAWFilter

WithSharpnessAmount sets a value that indicates the amount of sharpness to apply to the edges of the image.

type RectangleFeature added in v0.17.0

type RectangleFeature struct {
	Feature
}

RectangleFeature is an idiomatic wrapper over the Objective-C class CIRectangleFeature.

It embeds Feature, promoting that type's methods.

Information about a rectangular region detected in a still or video image.

func NewRectangleFeature added in v0.17.0

func NewRectangleFeature() *RectangleFeature

NewRectangleFeature creates a new RectangleFeature.

func RectangleFeatureFromID added in v0.17.0

func RectangleFeatureFromID(id objc.ID) *RectangleFeature

RectangleFeatureFromID adopts an existing Objective-C object as a RectangleFeature (nil for 0), retaining it and registering a release finalizer.

func (*RectangleFeature) BottomLeft added in v0.17.0

func (rf *RectangleFeature) BottomLeft() corefoundation.CGPoint

BottomLeft returns the image coordinate of the lower-left corner of the detected rectangle.

func (*RectangleFeature) BottomRight added in v0.17.0

func (rf *RectangleFeature) BottomRight() corefoundation.CGPoint

BottomRight returns the image coordinate of the lower-right corner of the detected rectangle.

func (*RectangleFeature) TopLeft added in v0.17.0

func (rf *RectangleFeature) TopLeft() corefoundation.CGPoint

TopLeft returns the image coordinate of the upper-left corner of the detected rectangle.

func (*RectangleFeature) TopRight added in v0.17.0

func (rf *RectangleFeature) TopRight() corefoundation.CGPoint

TopRight returns the image coordinate of the upper-right corner of the detected rectangle.

type RenderDestination added in v0.17.0

type RenderDestination struct {
	objref.Handle
}

RenderDestination is an idiomatic wrapper over the Objective-C class CIRenderDestination.

A specification for configuring all attributes of a render task’s destination and issuing asynchronous render tasks.

func NewRenderDestinationWithBitmapDataWidthHeightBytesPerRowFormat added in v0.17.0

func NewRenderDestinationWithBitmapDataWidthHeightBytesPerRowFormat(data unsafe.Pointer, width int, height int, bytesPerRow int, format int) *RenderDestination

NewRenderDestinationWithBitmapDataWidthHeightBytesPerRowFormat creates a render destination based on a client-managed buffer.

func NewRenderDestinationWithGLTextureTargetWidthHeight added in v0.17.0

func NewRenderDestinationWithGLTextureTargetWidthHeight(texture int, target int, width int, height int) *RenderDestination

NewRenderDestinationWithGLTextureTargetWidthHeight creates a render destination based on an OpenGL texture.

func NewRenderDestinationWithIOSurface added in v0.17.0

func NewRenderDestinationWithIOSurface(surface unsafe.Pointer) *RenderDestination

NewRenderDestinationWithIOSurface creates a render destination based on an IOSurface object.

func NewRenderDestinationWithPixelBuffer added in v0.17.0

func NewRenderDestinationWithPixelBuffer(pixelBuffer unsafe.Pointer) *RenderDestination

NewRenderDestinationWithPixelBuffer creates a render destination based on a Core Video pixel buffer.

func RenderDestinationFromID added in v0.17.0

func RenderDestinationFromID(id objc.ID) *RenderDestination

RenderDestinationFromID adopts an existing Objective-C object as a RenderDestination (nil for 0), retaining it and registering a release finalizer.

func (*RenderDestination) AlphaMode added in v0.17.0

AlphaMode returns the alpha mode.

func (*RenderDestination) BlendKernel added in v0.17.0

func (rd *RenderDestination) BlendKernel() *BlendKernel

BlendKernel returns the blend kernel.

func (*RenderDestination) BlendsInDestinationColorSpace added in v0.17.0

func (rd *RenderDestination) BlendsInDestinationColorSpace() bool

BlendsInDestinationColorSpace wraps the corresponding Objective-C method.

func (*RenderDestination) CaptureTraceURL added in v0.17.0

func (rd *RenderDestination) CaptureTraceURL() string

CaptureTraceURL returns tell the next render using this destination to capture a Metal trace. If this property is set to a file-based URL, then the next render using this destination will capture a Metal trace, deleting any existing file if present. This property is nil by default.

func (*RenderDestination) ColorSpace added in v0.17.0

ColorSpace returns the color space.

func (*RenderDestination) Description added in v0.17.0

func (rd *RenderDestination) Description() string

Description returns the object's -description text.

func (*RenderDestination) Height added in v0.17.0

func (rd *RenderDestination) Height() int

Height returns the height.

func (*RenderDestination) IsClamped added in v0.17.0

func (rd *RenderDestination) IsClamped() bool

IsClamped reports whether the object is clamped.

func (*RenderDestination) IsDithered added in v0.17.0

func (rd *RenderDestination) IsDithered() bool

IsDithered reports whether the object is dithered.

func (*RenderDestination) IsEqual added in v0.17.0

func (rd *RenderDestination) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RenderDestination) IsFlipped added in v0.17.0

func (rd *RenderDestination) IsFlipped() bool

IsFlipped reports whether the object is flipped.

func (*RenderDestination) IsKind added in v0.17.0

func (rd *RenderDestination) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RenderDestination) String added in v0.17.0

func (rd *RenderDestination) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*RenderDestination) Width added in v0.17.0

func (rd *RenderDestination) Width() int

Width returns the width.

func (*RenderDestination) WithAlphaMode added in v0.17.0

func (rd *RenderDestination) WithAlphaMode(alphaMode RenderDestinationAlphaMode) *RenderDestination

WithAlphaMode sets the render destination’s representation of alpha (transparency) values.

func (*RenderDestination) WithBlendKernel added in v0.17.0

func (rd *RenderDestination) WithBlendKernel(blendKernel *BlendKernel) *RenderDestination

WithBlendKernel sets the destination’s blend kernel.

func (*RenderDestination) WithBlendsInDestinationColorSpace added in v0.17.0

func (rd *RenderDestination) WithBlendsInDestinationColorSpace(blendsInDestinationColorSpace bool) *RenderDestination

WithBlendsInDestinationColorSpace sets indicator of whether to blend in the destination’s color space.

func (*RenderDestination) WithCaptureTraceURL added in v0.17.0

func (rd *RenderDestination) WithCaptureTraceURL(captureTraceURL string) *RenderDestination

WithCaptureTraceURL sets tell the next render using this destination to capture a Metal trace.

func (*RenderDestination) WithClamped added in v0.17.0

func (rd *RenderDestination) WithClamped(clamped bool) *RenderDestination

WithClamped sets indicator of whether or not the destination clamps.

func (*RenderDestination) WithColorSpace added in v0.17.0

func (rd *RenderDestination) WithColorSpace(colorSpace coregraphics.CGColorSpaceRef) *RenderDestination

WithColorSpace sets the destination’s color space.

func (*RenderDestination) WithDithered added in v0.17.0

func (rd *RenderDestination) WithDithered(dithered bool) *RenderDestination

WithDithered sets indicator of whether or not the destination dithers.

func (*RenderDestination) WithFlipped added in v0.17.0

func (rd *RenderDestination) WithFlipped(flipped bool) *RenderDestination

WithFlipped sets indicator of whether the destination is flipped.

type RenderDestinationAlphaMode added in v0.17.0

type RenderDestinationAlphaMode uint64

Different ways of representing alpha.

const (
	// Designates a destination with no alpha compositing.
	RenderDestinationAlphaNone RenderDestinationAlphaMode = 0
	// Designates a destination that expects premultiplied alpha values.
	RenderDestinationAlphaPremultiplied RenderDestinationAlphaMode = 1
	// Designates a destination that expects non-premultiplied alpha values.
	RenderDestinationAlphaUnpremultiplied RenderDestinationAlphaMode = 2
)

func (RenderDestinationAlphaMode) String added in v0.17.0

String returns the RenderDestinationAlphaMode constant's name, or its numeric form when the value is not a known constant.

type RenderInfo added in v0.17.0

type RenderInfo struct {
	objref.Handle
}

RenderInfo is an idiomatic wrapper over the Objective-C class CIRenderInfo.

An encapsulation of a render task’s timing, passes, and pixels processed.

func NewRenderInfo added in v0.17.0

func NewRenderInfo() *RenderInfo

NewRenderInfo creates a new RenderInfo.

func RenderInfoFromID added in v0.17.0

func RenderInfoFromID(id objc.ID) *RenderInfo

RenderInfoFromID adopts an existing Objective-C object as a RenderInfo (nil for 0), retaining it and registering a release finalizer.

func (*RenderInfo) Description added in v0.17.0

func (ri *RenderInfo) Description() string

Description returns the object's -description text.

func (*RenderInfo) IsEqual added in v0.17.0

func (ri *RenderInfo) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RenderInfo) IsKind added in v0.17.0

func (ri *RenderInfo) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RenderInfo) KernelCompileTime added in v0.17.0

func (ri *RenderInfo) KernelCompileTime() float64

KernelCompileTime returns the kernel compile time.

func (*RenderInfo) KernelExecutionTime added in v0.17.0

func (ri *RenderInfo) KernelExecutionTime() float64

KernelExecutionTime returns the kernel execution time.

func (*RenderInfo) PassCount added in v0.17.0

func (ri *RenderInfo) PassCount() int

PassCount returns the pass count.

func (*RenderInfo) PixelsProcessed added in v0.17.0

func (ri *RenderInfo) PixelsProcessed() int

PixelsProcessed returns the pixels processed.

func (*RenderInfo) String added in v0.17.0

func (ri *RenderInfo) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type RenderTask added in v0.17.0

type RenderTask struct {
	objref.Handle
}

RenderTask is an idiomatic wrapper over the Objective-C class CIRenderTask.

A single render task.

func NewRenderTask added in v0.17.0

func NewRenderTask() *RenderTask

NewRenderTask creates a new RenderTask.

func RenderTaskFromID added in v0.17.0

func RenderTaskFromID(id objc.ID) *RenderTask

RenderTaskFromID adopts an existing Objective-C object as a RenderTask (nil for 0), retaining it and registering a release finalizer.

func (*RenderTask) Description added in v0.17.0

func (rt_ *RenderTask) Description() string

Description returns the object's -description text.

func (*RenderTask) IsEqual added in v0.17.0

func (rt_ *RenderTask) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RenderTask) IsKind added in v0.17.0

func (rt_ *RenderTask) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RenderTask) String added in v0.17.0

func (rt_ *RenderTask) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*RenderTask) WaitUntilCompleted added in v0.17.0

func (rt_ *RenderTask) WaitUntilCompleted() (result *RenderInfo, err error)

WaitUntilCompleted waits until the CIRenderTask finishes and returns.

type Sampler added in v0.17.0

type Sampler struct {
	objref.Handle
}

Sampler is an idiomatic wrapper over the Objective-C class CISampler.

An object that retrieves pixel samples for processing by a filter kernel.

func NewSamplerWithImage added in v0.17.0

func NewSamplerWithImage(im *Image) *Sampler

NewSamplerWithImage initializes a sampler with an image object.

func NewSamplerWithImageKeysAndValues added in v0.17.0

func NewSamplerWithImageKeysAndValues(im *Image, key0 obj.Object) *Sampler

NewSamplerWithImageKeysAndValues initializes the sampler with an image object using options specified as key-value pairs.

func NewSamplerWithImageOptions added in v0.17.0

func NewSamplerWithImageOptions(im *Image, dict obj.Object) *Sampler

NewSamplerWithImageOptions initializes the sampler with an image object using options specified in a dictionary.

func SamplerFromID added in v0.17.0

func SamplerFromID(id objc.ID) *Sampler

SamplerFromID adopts an existing Objective-C object as a Sampler (nil for 0), retaining it and registering a release finalizer.

func SamplerWithImage added in v0.17.0

func SamplerWithImage(im *Image) *Sampler

SamplerWithImage creates and returns a sampler that references an image.

func SamplerWithImageOptions added in v0.17.0

func SamplerWithImageOptions(im *Image, dict obj.Object) *Sampler

SamplerWithImageOptions creates and returns a sampler that references an image using options specified in a dictionary.

func (*Sampler) Definition added in v0.17.0

func (s *Sampler) Definition() *FilterShape

Definition returns the definition.

func (*Sampler) Description added in v0.17.0

func (s *Sampler) Description() string

Description returns the object's -description text.

func (*Sampler) Extent added in v0.17.0

func (s *Sampler) Extent() corefoundation.CGRect

Extent returns the extent.

func (*Sampler) IsEqual added in v0.17.0

func (s *Sampler) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Sampler) IsKind added in v0.17.0

func (s *Sampler) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Sampler) String added in v0.17.0

func (s *Sampler) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TextFeature added in v0.17.0

type TextFeature struct {
	Feature
}

TextFeature is an idiomatic wrapper over the Objective-C class CITextFeature.

It embeds Feature, promoting that type's methods.

Information about a text that was detected in a still or video image.

func NewTextFeature added in v0.17.0

func NewTextFeature() *TextFeature

NewTextFeature creates a new TextFeature.

func TextFeatureFromID added in v0.17.0

func TextFeatureFromID(id objc.ID) *TextFeature

TextFeatureFromID adopts an existing Objective-C object as a TextFeature (nil for 0), retaining it and registering a release finalizer.

func (*TextFeature) BottomLeft added in v0.17.0

func (tf *TextFeature) BottomLeft() corefoundation.CGPoint

BottomLeft returns the image coordinate of the lower-left corner of the detected text.

func (*TextFeature) BottomRight added in v0.17.0

func (tf *TextFeature) BottomRight() corefoundation.CGPoint

BottomRight returns the image coordinate of the lower-right corner of the detected text.

func (*TextFeature) SubFeatures added in v0.17.0

func (tf *TextFeature) SubFeatures() obj.Object

SubFeatures returns an array containing additional features detected within the feature. A text detector can identify both a major region that is likely to contain text as well as the areas within that region that likely to contain individual text features. Such features might be single characters, groups of closely-packed characters, or entire words. To detect sub-features, “/CIDetector/featuresInImage:options:“ needs to be called with the “CIDetectorReturnSubFeatures“ option set to true.

func (*TextFeature) TopLeft added in v0.17.0

func (tf *TextFeature) TopLeft() corefoundation.CGPoint

TopLeft returns the image coordinate of the upper-left corner of the detected text.

func (*TextFeature) TopRight added in v0.17.0

func (tf *TextFeature) TopRight() corefoundation.CGPoint

TopRight returns the image coordinate of the upper-right corner of the detected text.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type Vector added in v0.17.0

type Vector struct {
	objref.Handle
}

Vector is an idiomatic wrapper over the Objective-C class CIVector.

The Core Image class that defines a vector object.

func NewVectorWithCGAffineTransform added in v0.17.0

func NewVectorWithCGAffineTransform(t corefoundation.CGAffineTransform) *Vector

NewVectorWithCGAffineTransform initialize a Core Image vector object with six values provided by a CGAffineTransform structure.

func NewVectorWithCGPoint added in v0.17.0

func NewVectorWithCGPoint(p corefoundation.CGPoint) *Vector

NewVectorWithCGPoint initialize a Core Image vector object with two values provided by a CGPoint structure.

func NewVectorWithCGRect added in v0.17.0

func NewVectorWithCGRect(r corefoundation.CGRect) *Vector

NewVectorWithCGRect initialize a Core Image vector object with four values provided by a CGRect structure.

func NewVectorWithString added in v0.17.0

func NewVectorWithString(representation string) *Vector

NewVectorWithString initialize a Core Image vector object with values provided in a string representation.

func NewVectorWithX added in v0.17.0

func NewVectorWithX(x float64) *Vector

NewVectorWithX initialize a Core Image vector object with one value.

func NewVectorWithXY added in v0.17.0

func NewVectorWithXY(x float64, y float64) *Vector

NewVectorWithXY initialize a Core Image vector object with two values.

func NewVectorWithXYZ added in v0.17.0

func NewVectorWithXYZ(x float64, y float64, z float64) *Vector

NewVectorWithXYZ initialize a Core Image vector object with three values.

func NewVectorWithXYZW added in v0.17.0

func NewVectorWithXYZW(x float64, y float64, z float64, w float64) *Vector

NewVectorWithXYZW initialize a Core Image vector object with four values.

func RoiTileArrayForInputArgumentsOutputRect added in v0.17.0

func RoiTileArrayForInputArgumentsOutputRect(inputIndex int, arguments map[string]obj.Object, outputRect corefoundation.CGRect) []*Vector

RoiTileArrayForInputArgumentsOutputRect override this class method to implement your processor’s tiled ROI callback.

func VectorFromID added in v0.17.0

func VectorFromID(id objc.ID) *Vector

VectorFromID adopts an existing Objective-C object as a Vector (nil for 0), retaining it and registering a release finalizer.

func VectorWithCGAffineTransform added in v0.17.0

func VectorWithCGAffineTransform(t corefoundation.CGAffineTransform) *Vector

VectorWithCGAffineTransform create a Core Image vector object that is initialized with six values provided by a CGAffineTransform structure.

func VectorWithCGPoint added in v0.17.0

func VectorWithCGPoint(p corefoundation.CGPoint) *Vector

VectorWithCGPoint create a Core Image vector object that is initialized with two values provided by a CGPoint structure.

func VectorWithCGRect added in v0.17.0

func VectorWithCGRect(r corefoundation.CGRect) *Vector

VectorWithCGRect create a Core Image vector object that is initialized with four values provided by a CGRect structure.

func VectorWithString added in v0.17.0

func VectorWithString(representation string) *Vector

VectorWithString create a Core Image vector object with values provided in a string representation.

func VectorWithValuesCount added in v0.17.0

func VectorWithValuesCount(count int) (result *Vector, values float64)

VectorWithValuesCount create a Core Image vector object that is initialized with the specified values.

func VectorWithX added in v0.17.0

func VectorWithX(x_ float64) *Vector

VectorWithX create a Core Image vector object that is initialized with one value.

func VectorWithXY added in v0.17.0

func VectorWithXY(x_ float64, y float64) *Vector

VectorWithXY create a Core Image vector object that is initialized with two values.

func VectorWithXYZ added in v0.17.0

func VectorWithXYZ(x_ float64, y float64, z float64) *Vector

VectorWithXYZ create a Core Image vector object that is initialized with three values.

func VectorWithXYZW added in v0.17.0

func VectorWithXYZW(x_ float64, y float64, z float64, w float64) *Vector

VectorWithXYZW create a Core Image vector object that is initialized with four values.

func (*Vector) CGAffineTransformValue added in v0.17.0

func (v_ *Vector) CGAffineTransformValue() corefoundation.CGAffineTransform

CGAffineTransformValue returns the values in the vector as a `CGAffineTransformValue` structure. - Returns: Reading this property creates a `CGAffineTransformValue` structure from the first six values in the vector.

func (*Vector) CGPointValue added in v0.17.0

func (v_ *Vector) CGPointValue() corefoundation.CGPoint

CGPointValue returns the values in the vector as a `CGPoint` structure. - Returns: Reading this property returns a `CGPoint` structure from the `X` and `Y` values from the vector.

func (*Vector) CGRectValue added in v0.17.0

func (v_ *Vector) CGRectValue() corefoundation.CGRect

CGRectValue returns the values in the vector as a `CGRect` structure. - Returns: Reading this property creates a `CGRect` structure whose origin is the `X`, `Y`, `Z` and `W` values from the vector.

func (*Vector) Count added in v0.17.0

func (v_ *Vector) Count() int

Count returns the number of items in the vector.

func (*Vector) Description added in v0.17.0

func (v_ *Vector) Description() string

Description returns the object's -description text.

func (*Vector) IsEqual added in v0.17.0

func (v_ *Vector) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Vector) IsKind added in v0.17.0

func (v_ *Vector) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Vector) String added in v0.17.0

func (v_ *Vector) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Vector) StringRepresentation added in v0.17.0

func (v_ *Vector) StringRepresentation() string

StringRepresentation returns a formatted string with all the values of a `CIVector`. Some example string representations of vectors: `CIVector` | `stringRepresentation` ---------------------------------------- | -------------- `[CIVector vectorWithX:1.0 Y:0.5 Z:0.3]` | `"[1.0 0.5 0.3]"` `[CIVector vectorWithX:10.0 Y:23.0]` | `"[10.0 23.0]"` To create a “CIVector“ object from a string representation, use the “vectorWithString:“ method.

func (*Vector) ValueAtIndex added in v0.17.0

func (v_ *Vector) ValueAtIndex(index int) float64

ValueAtIndex returns a value from a specific position in the vector.

func (*Vector) W added in v0.17.0

func (v_ *Vector) W() float64

W returns the value located in the forth position in the vector.

func (*Vector) X added in v0.17.0

func (v_ *Vector) X() float64

X returns the value located in the first position in the vector.

func (*Vector) Y added in v0.17.0

func (v_ *Vector) Y() float64

Y returns the value located in the second position in the vector.

func (*Vector) Z added in v0.17.0

func (v_ *Vector) Z() float64

Z returns the value located in the third position in the vector.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type WarpKernel added in v0.17.0

type WarpKernel struct {
	Kernel
}

WarpKernel is an idiomatic wrapper over the Objective-C class CIWarpKernel.

It embeds Kernel, promoting that type's methods.

A GPU-based image-processing routine that processes only the geometry information in an image, used to create custom Core Image filters.

func CIWarpKernelKernelWithString

func CIWarpKernelKernelWithString(str string) *WarpKernel

CIWarpKernelKernelWithString creates a warp kernel object from the specified kernel source code.

func NewWarpKernel added in v0.17.0

func NewWarpKernel() *WarpKernel

NewWarpKernel creates a new WarpKernel.

func WarpKernelFromID added in v0.17.0

func WarpKernelFromID(id objc.ID) *WarpKernel

WarpKernelFromID adopts an existing Objective-C object as a WarpKernel (nil for 0), retaining it and registering a release finalizer.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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