colorsync

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package colorsync provides Go bindings for the ColorSync framework.

Reproduce colors accurately across a range of input, output, and display devices.

ColorSync is the color-management engine on Apple platforms. For most apps, color management happens automatically through higher-level frameworks such as Core Graphics and Core Image. Use ColorSync directly when your app needs to manage color itself; for example, a professional photo, print, or video app that builds custom transforms, or a tool that inspects and calibrates the profiles assigned to devices and displays.

Color conversion

Profile and HDR metadata

System color management

Supporting types and conventions

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// See: https://developer.apple.com/documentation/ColorSync/kCMMApplyTransformProcName
	KCMMApplyTransformProcName string
	// See: https://developer.apple.com/documentation/ColorSync/kCMMCreateTransformPropertyProcName
	KCMMCreateTransformPropertyProcName string
	// See: https://developer.apple.com/documentation/ColorSync/kCMMInitializeLinkProfileProcName
	KCMMInitializeLinkProfileProcName string
	// See: https://developer.apple.com/documentation/ColorSync/kCMMInitializeTransformProcName
	KCMMInitializeTransformProcName string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncACESCGLinearProfile
	KColorSyncACESCGLinearProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncAdobeRGB1998Profile
	KColorSyncAdobeRGB1998Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncBestQuality
	KColorSyncBestQuality string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncBlackPointCompensation
	KColorSyncBlackPointCompensation string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncCameraDeviceClass
	KColorSyncCameraDeviceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversion1DLut
	KColorSyncConversion1DLut string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversion3DLut
	KColorSyncConversion3DLut string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionBPC
	KColorSyncConversionBPC string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionChannelID
	KColorSyncConversionChannelID string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionGridPoints
	KColorSyncConversionGridPoints string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionInpChan
	KColorSyncConversionInpChan string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionMatrix
	KColorSyncConversionMatrix string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionNDLut
	KColorSyncConversionNDLut string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionOutChan
	KColorSyncConversionOutChan string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionParamCurve0
	KColorSyncConversionParamCurve0 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionParamCurve1
	KColorSyncConversionParamCurve1 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionParamCurve2
	KColorSyncConversionParamCurve2 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionParamCurve3
	KColorSyncConversionParamCurve3 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConversionParamCurve4
	KColorSyncConversionParamCurve4 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConvertQuality
	KColorSyncConvertQuality string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncConvertUseExtendedRange
	KColorSyncConvertUseExtendedRange string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncCustomProfiles
	KColorSyncCustomProfiles string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDCIP3Profile
	KColorSyncDCIP3Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceClass
	KColorSyncDeviceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceDefaultProfileID
	KColorSyncDeviceDefaultProfileID string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceDescription
	KColorSyncDeviceDescription string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceDescriptions
	KColorSyncDeviceDescriptions string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceHostScope
	KColorSyncDeviceHostScope string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceID
	KColorSyncDeviceID string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceModeDescription
	KColorSyncDeviceModeDescription string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceModeDescriptions
	KColorSyncDeviceModeDescriptions string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfileID
	KColorSyncDeviceProfileID string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfileIsCurrent
	KColorSyncDeviceProfileIsCurrent string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfileIsDefault
	KColorSyncDeviceProfileIsDefault string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfileIsFactory
	KColorSyncDeviceProfileIsFactory string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfileURL
	KColorSyncDeviceProfileURL string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceProfilesNotification
	KColorSyncDeviceProfilesNotification string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceRegisteredNotification
	KColorSyncDeviceRegisteredNotification string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceUnregisteredNotification
	KColorSyncDeviceUnregisteredNotification string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDeviceUserScope
	KColorSyncDeviceUserScope string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDisplayDeviceClass
	KColorSyncDisplayDeviceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDisplayDeviceProfilesNotification
	KColorSyncDisplayDeviceProfilesNotification string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDisplayP3Profile
	KColorSyncDisplayP3Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDoNotSubstituteProfiles
	KColorSyncDoNotSubstituteProfiles string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncDraftQuality
	KColorSyncDraftQuality string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncExtendedRange
	KColorSyncExtendedRange string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncFactoryProfiles
	KColorSyncFactoryProfiles string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncFixedPointRange
	KColorSyncFixedPointRange string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericCMYKProfile
	KColorSyncGenericCMYKProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericGrayGamma22Profile
	KColorSyncGenericGrayGamma22Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericGrayProfile
	KColorSyncGenericGrayProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericLabProfile
	KColorSyncGenericLabProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericRGBProfile
	KColorSyncGenericRGBProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncGenericXYZProfile
	KColorSyncGenericXYZProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncHDRDerivative
	KColorSyncHDRDerivative string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncHLGDerivative
	KColorSyncHLGDerivative string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncITUR2020Profile
	KColorSyncITUR2020Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncITUR709Profile
	KColorSyncITUR709Profile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncNormalQuality
	KColorSyncNormalQuality string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncPQDerivative
	KColorSyncPQDerivative string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncPreferredCMM
	KColorSyncPreferredCMM string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncPrinterDeviceClass
	KColorSyncPrinterDeviceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfile
	KColorSyncProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileCacheSeed
	KColorSyncProfileCacheSeed string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileClass
	KColorSyncProfileClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileColorSpace
	KColorSyncProfileColorSpace string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileComputerDomain
	KColorSyncProfileComputerDomain string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileDescription
	KColorSyncProfileDescription string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileHeader
	KColorSyncProfileHeader string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileHostScope
	KColorSyncProfileHostScope string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileIsValid
	KColorSyncProfileIsValid string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileMD5Digest
	KColorSyncProfileMD5Digest string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfilePCS
	KColorSyncProfilePCS string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileRepositoryChangeNotification
	KColorSyncProfileRepositoryChangeNotification string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileURL
	KColorSyncProfileURL string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileUserDomain
	KColorSyncProfileUserDomain string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncProfileUserScope
	KColorSyncProfileUserScope string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncROMMRGBProfile
	KColorSyncROMMRGBProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRegistrationUpdateWindowServer
	KColorSyncRegistrationUpdateWindowServer string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntent
	KColorSyncRenderingIntent string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntentAbsolute
	KColorSyncRenderingIntentAbsolute string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntentPerceptual
	KColorSyncRenderingIntentPerceptual string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntentRelative
	KColorSyncRenderingIntentRelative string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntentSaturation
	KColorSyncRenderingIntentSaturation string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncRenderingIntentUseProfileHeader
	KColorSyncRenderingIntentUseProfileHeader string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSRGBProfile
	KColorSyncSRGBProfile string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncScannerDeviceClass
	KColorSyncScannerDeviceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigAToB0Tag
	KColorSyncSigAToB0Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigAToB1Tag
	KColorSyncSigAToB1Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigAToB2Tag
	KColorSyncSigAToB2Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigAbstractClass
	KColorSyncSigAbstractClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigBToA0Tag
	KColorSyncSigBToA0Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigBToA1Tag
	KColorSyncSigBToA1Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigBToA2Tag
	KColorSyncSigBToA2Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigBlueColorantTag
	KColorSyncSigBlueColorantTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigBlueTRCTag
	KColorSyncSigBlueTRCTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigCmykData
	KColorSyncSigCmykData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigColorSpaceClass
	KColorSyncSigColorSpaceClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigCopyrightTag
	KColorSyncSigCopyrightTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigDeviceMfgDescTag
	KColorSyncSigDeviceMfgDescTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigDeviceModelDescTag
	KColorSyncSigDeviceModelDescTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigDisplayClass
	KColorSyncSigDisplayClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigGamutTag
	KColorSyncSigGamutTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigGrayData
	KColorSyncSigGrayData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigGrayTRCTag
	KColorSyncSigGrayTRCTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigGreenColorantTag
	KColorSyncSigGreenColorantTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigGreenTRCTag
	KColorSyncSigGreenTRCTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigInputClass
	KColorSyncSigInputClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigLabData
	KColorSyncSigLabData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigLinkClass
	KColorSyncSigLinkClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigMediaBlackPointTag
	KColorSyncSigMediaBlackPointTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigMediaWhitePointTag
	KColorSyncSigMediaWhitePointTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigNamedColor2Tag
	KColorSyncSigNamedColor2Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigNamedColorClass
	KColorSyncSigNamedColorClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigOutputClass
	KColorSyncSigOutputClass string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigPreview0Tag
	KColorSyncSigPreview0Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigPreview1Tag
	KColorSyncSigPreview1Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigPreview2Tag
	KColorSyncSigPreview2Tag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigProfileDescriptionTag
	KColorSyncSigProfileDescriptionTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigProfileSequenceDescTag
	KColorSyncSigProfileSequenceDescTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigRedColorantTag
	KColorSyncSigRedColorantTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigRedTRCTag
	KColorSyncSigRedTRCTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigRgbData
	KColorSyncSigRgbData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigTechnologyTag
	KColorSyncSigTechnologyTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigViewingCondDescTag
	KColorSyncSigViewingCondDescTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigViewingConditionsTag
	KColorSyncSigViewingConditionsTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncSigXYZData
	KColorSyncSigXYZData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformCodeFragmentMD5
	KColorSyncTransformCodeFragmentMD5 string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformCodeFragmentType
	KColorSyncTransformCodeFragmentType string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformCreator
	KColorSyncTransformCreator string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformDeviceToDevice
	KColorSyncTransformDeviceToDevice string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformDeviceToPCS
	KColorSyncTransformDeviceToPCS string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformDstSpace
	KColorSyncTransformDstSpace string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformFullConversionData
	KColorSyncTransformFullConversionData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformGamutCheck
	KColorSyncTransformGamutCheck string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformInfo
	KColorSyncTransformInfo string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformPCSToDevice
	KColorSyncTransformPCSToDevice string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformPCSToPCS
	KColorSyncTransformPCSToPCS string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformParametricConversionData
	KColorSyncTransformParametricConversionData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformProfileSequnce
	KColorSyncTransformProfileSequnce string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformSimplifiedConversionData
	KColorSyncTransformSimplifiedConversionData string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformSrcSpace
	KColorSyncTransformSrcSpace string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformTag
	KColorSyncTransformTag string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncTransformUseITU709OETF
	KColorSyncTransformUseITU709OETF string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncWaitForCacheReply
	KColorSyncWaitForCacheReply string
	// See: https://developer.apple.com/documentation/ColorSync/kColorSyncWebSafeColorsProfile
	KColorSyncWebSafeColorsProfile string
)

Functions

func BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the ColorSync symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func CGDisplayCreateUUIDFromDisplayID

func CGDisplayCreateUUIDFromDisplayID(displayID uint32) corefoundation.CFUUID

CGDisplayCreateUUIDFromDisplayID.

It panics if CGDisplayCreateUUIDFromDisplayID is unavailable at run time; use TryCGDisplayCreateUUIDFromDisplayID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/CGDisplayCreateUUIDFromDisplayID(_:)

func CGDisplayGetDisplayIDFromUUID

func CGDisplayGetDisplayIDFromUUID(uuid corefoundation.CFUUIDRef) uint32

CGDisplayGetDisplayIDFromUUID.

It panics if CGDisplayGetDisplayIDFromUUID is unavailable at run time; use TryCGDisplayGetDisplayIDFromUUID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/CGDisplayGetDisplayIDFromUUID(_:)

func ColorSyncAPIVersion

func ColorSyncAPIVersion() uint32

ColorSyncAPIVersion returns the version of the ColorSync API.

It panics if ColorSyncAPIVersion is unavailable at run time; use TryColorSyncAPIVersion to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncAPIVersion()

func ColorSyncCMMCopyCMMIdentifier

func ColorSyncCMMCopyCMMIdentifier(arg0 unsafe.Pointer) corefoundation.CFStringRef

ColorSyncCMMCopyCMMIdentifier copies the identifier of a CMM.

It panics if ColorSyncCMMCopyCMMIdentifier is unavailable at run time; use TryColorSyncCMMCopyCMMIdentifier to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMCopyCMMIdentifier(_:)

func ColorSyncCMMCopyLocalizedName

func ColorSyncCMMCopyLocalizedName(arg0 unsafe.Pointer) corefoundation.CFStringRef

ColorSyncCMMCopyLocalizedName copies the localized name of a CMM.

It panics if ColorSyncCMMCopyLocalizedName is unavailable at run time; use TryColorSyncCMMCopyLocalizedName to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMCopyLocalizedName(_:)

func ColorSyncCMMCreate

func ColorSyncCMMCreate(cmmBundle corefoundation.CFBundleRef) unsafe.Pointer

ColorSyncCMMCreate creates a CMM object from a CMM bundle.

It panics if ColorSyncCMMCreate is unavailable at run time; use TryColorSyncCMMCreate to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMCreate(_:)

func ColorSyncCMMGetBundle

func ColorSyncCMMGetBundle(arg0 unsafe.Pointer) corefoundation.CFBundle

ColorSyncCMMGetBundle returns the bundle associated with a CMM.

It panics if ColorSyncCMMGetBundle is unavailable at run time; use TryColorSyncCMMGetBundle to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMGetBundle(_:)

func ColorSyncCMMGetTypeID

func ColorSyncCMMGetTypeID() uint

ColorSyncCMMGetTypeID returns the [CFTypeID] for [ColorSyncCMM]s.

It panics if ColorSyncCMMGetTypeID is unavailable at run time; use TryColorSyncCMMGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMGetTypeID()

func ColorSyncCreateCodeFragment

func ColorSyncCreateCodeFragment(profileSequence corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) corefoundation.CFTypeRef

ColorSyncCreateCodeFragment creates a code fragment from a sequence of profiles.

It panics if ColorSyncCreateCodeFragment is unavailable at run time; use TryColorSyncCreateCodeFragment to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCreateCodeFragment(_:_:)

func ColorSyncDeviceCopyDeviceInfo

func ColorSyncDeviceCopyDeviceInfo(deviceClass corefoundation.CFStringRef, devID corefoundation.CFUUIDRef) corefoundation.CFDictionaryRef

ColorSyncDeviceCopyDeviceInfo copies information about a device, resolved for the current host and current user.

It panics if ColorSyncDeviceCopyDeviceInfo is unavailable at run time; use TryColorSyncDeviceCopyDeviceInfo to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncDeviceCopyDeviceInfo(_:_:)

func ColorSyncDeviceSetCustomProfiles

func ColorSyncDeviceSetCustomProfiles(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, profileInfo corefoundation.CFDictionaryRef) bool

ColorSyncDeviceSetCustomProfiles sets custom profiles for a device in lieu of its factory profiles.

It panics if ColorSyncDeviceSetCustomProfiles is unavailable at run time; use TryColorSyncDeviceSetCustomProfiles to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncDeviceSetCustomProfiles(_:_:_:)

func ColorSyncIterateDeviceProfiles

func ColorSyncIterateDeviceProfiles(callBack ColorSyncDeviceProfileIterateCallback, userInfo unsafe.Pointer)

ColorSyncIterateDeviceProfiles iterates over the profiles registered for all devices, invoking a callback for each.

It panics if ColorSyncIterateDeviceProfiles is unavailable at run time; use TryColorSyncIterateDeviceProfiles to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncIterateDeviceProfiles(_:_:)

func ColorSyncIterateInstalledCMMs

func ColorSyncIterateInstalledCMMs(callBack ColorSyncCMMIterateCallback, userInfo unsafe.Pointer)

ColorSyncIterateInstalledCMMs iterates over the installed CMMs, invoking a callback for each one.

It panics if ColorSyncIterateInstalledCMMs is unavailable at run time; use TryColorSyncIterateInstalledCMMs to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncIterateInstalledCMMs(_:_:)

func ColorSyncIterateInstalledProfiles

func ColorSyncIterateInstalledProfiles(callBack ColorSyncProfileIterateCallback, seed *uint32, userInfo unsafe.Pointer, err *corefoundation.CFErrorRef)

ColorSyncIterateInstalledProfiles iterates over the installed profiles.

It panics if ColorSyncIterateInstalledProfiles is unavailable at run time; use TryColorSyncIterateInstalledProfiles to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncIterateInstalledProfiles(_:_:_:_:)

func ColorSyncIterateInstalledProfilesWithOptions

func ColorSyncIterateInstalledProfilesWithOptions(callBack ColorSyncProfileIterateCallback, seed *uint32, userInfo unsafe.Pointer, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef)

ColorSyncIterateInstalledProfilesWithOptions iterates over the installed profiles, using the given options.

It panics if ColorSyncIterateInstalledProfilesWithOptions is unavailable at run time; use TryColorSyncIterateInstalledProfilesWithOptions to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncIterateInstalledProfilesWithOptions(_:_:_:_:_:)

func ColorSyncProfileContainsTag

func ColorSyncProfileContainsTag(prof coregraphics.ColorSyncProfileRef, signature corefoundation.CFStringRef) bool

ColorSyncProfileContainsTag returns a Boolean value indicating whether a profile contains a given tag.

It panics if ColorSyncProfileContainsTag is unavailable at run time; use TryColorSyncProfileContainsTag to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileContainsTag(_:_:)

func ColorSyncProfileCopyData

ColorSyncProfileCopyData copies the flattened data from a profile.

It panics if ColorSyncProfileCopyData is unavailable at run time; use TryColorSyncProfileCopyData to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCopyData(_:_:)

func ColorSyncProfileCopyDescriptionString

func ColorSyncProfileCopyDescriptionString(prof coregraphics.ColorSyncProfileRef) corefoundation.CFStringRef

ColorSyncProfileCopyDescriptionString copies the localized description string of a profile.

It panics if ColorSyncProfileCopyDescriptionString is unavailable at run time; use TryColorSyncProfileCopyDescriptionString to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCopyDescriptionString(_:)

func ColorSyncProfileCopyHeader

func ColorSyncProfileCopyHeader(prof coregraphics.ColorSyncProfileRef) corefoundation.CFDataRef

ColorSyncProfileCopyHeader copies the header from a profile.

It panics if ColorSyncProfileCopyHeader is unavailable at run time; use TryColorSyncProfileCopyHeader to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCopyHeader(_:)

func ColorSyncProfileCopyTag

func ColorSyncProfileCopyTag(prof coregraphics.ColorSyncProfileRef, signature corefoundation.CFStringRef) corefoundation.CFDataRef

ColorSyncProfileCopyTag copies a tag from a profile.

It panics if ColorSyncProfileCopyTag is unavailable at run time; use TryColorSyncProfileCopyTag to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCopyTag(_:_:)

func ColorSyncProfileCopyTagSignatures

func ColorSyncProfileCopyTagSignatures(prof coregraphics.ColorSyncProfileRef) corefoundation.CFArrayRef

ColorSyncProfileCopyTagSignatures copies the tag signatures of a profile.

It panics if ColorSyncProfileCopyTagSignatures is unavailable at run time; use TryColorSyncProfileCopyTagSignatures to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCopyTagSignatures(_:)

func ColorSyncProfileCreate

ColorSyncProfileCreate creates a profile from ICC profile data.

It panics if ColorSyncProfileCreate is unavailable at run time; use TryColorSyncProfileCreate to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreate(_:_:)

func ColorSyncProfileCreateDeviceProfile

func ColorSyncProfileCreateDeviceProfile(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, profileID corefoundation.CFTypeRef) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateDeviceProfile creates a profile for a device registered with ColorSync.

It panics if ColorSyncProfileCreateDeviceProfile is unavailable at run time; use TryColorSyncProfileCreateDeviceProfile to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateDeviceProfile(_:_:_:)

func ColorSyncProfileCreateDisplayTransferTablesFromVCGT

func ColorSyncProfileCreateDisplayTransferTablesFromVCGT(profile coregraphics.ColorSyncProfileRef, nSamplesPerChannel *uintptr) corefoundation.CFDataRef

ColorSyncProfileCreateDisplayTransferTablesFromVCGT creates display transfer tables from the profile’s `vcgt` tag.

It panics if ColorSyncProfileCreateDisplayTransferTablesFromVCGT is unavailable at run time; use TryColorSyncProfileCreateDisplayTransferTablesFromVCGT to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateDisplayTransferTablesFromVCGT(_:_:)

func ColorSyncProfileCreateLink(profileInfo corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateLink creates a device link profile from an array of profiles.

It panics if ColorSyncProfileCreateLink is unavailable at run time; use TryColorSyncProfileCreateLink to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateLink(_:_:)

func ColorSyncProfileCreateMutable

func ColorSyncProfileCreateMutable() unsafe.Pointer

ColorSyncProfileCreateMutable creates an empty mutable profile.

It panics if ColorSyncProfileCreateMutable is unavailable at run time; use TryColorSyncProfileCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateMutable()

func ColorSyncProfileCreateMutableCopy

func ColorSyncProfileCreateMutableCopy(prof coregraphics.ColorSyncProfileRef) unsafe.Pointer

ColorSyncProfileCreateMutableCopy creates a mutable copy of a profile.

It panics if ColorSyncProfileCreateMutableCopy is unavailable at run time; use TryColorSyncProfileCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateMutableCopy(_:)

func ColorSyncProfileCreateWithDisplayID

func ColorSyncProfileCreateWithDisplayID(displayID uint32) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateWithDisplayID creates a profile for the specified display.

It panics if ColorSyncProfileCreateWithDisplayID is unavailable at run time; use TryColorSyncProfileCreateWithDisplayID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateWithDisplayID(_:)

func ColorSyncProfileCreateWithName

func ColorSyncProfileCreateWithName(name corefoundation.CFStringRef) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateWithName creates a profile from a predefined profile name.

It panics if ColorSyncProfileCreateWithName is unavailable at run time; use TryColorSyncProfileCreateWithName to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateWithName(_:)

func ColorSyncProfileCreateWithURL

func ColorSyncProfileCreateWithURL(url corefoundation.CFURLRef, err *corefoundation.CFErrorRef) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateWithURL creates a profile from ICC profile data at a URL.

It panics if ColorSyncProfileCreateWithURL is unavailable at run time; use TryColorSyncProfileCreateWithURL to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateWithURL(_:_:)

func ColorSyncProfileCreateWithURLAndOptions

func ColorSyncProfileCreateWithURLAndOptions(url corefoundation.CFURLRef, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateWithURLAndOptions creates a profile from ICC profile data at a URL, using the given options.

It panics if ColorSyncProfileCreateWithURLAndOptions is unavailable at run time; use TryColorSyncProfileCreateWithURLAndOptions to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileCreateWithURLAndOptions(_:_:_:)

func ColorSyncProfileEstimateGamma

func ColorSyncProfileEstimateGamma(prof coregraphics.ColorSyncProfileRef, err *corefoundation.CFErrorRef) float32

ColorSyncProfileEstimateGamma estimates the gamma of a profile.

It panics if ColorSyncProfileEstimateGamma is unavailable at run time; use TryColorSyncProfileEstimateGamma to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileEstimateGamma(_:_:)

func ColorSyncProfileEstimateGammaWithDisplayID

func ColorSyncProfileEstimateGammaWithDisplayID(displayID int32, err *corefoundation.CFErrorRef) float32

ColorSyncProfileEstimateGammaWithDisplayID estimates the gamma of the profile for the specified display.

It panics if ColorSyncProfileEstimateGammaWithDisplayID is unavailable at run time; use TryColorSyncProfileEstimateGammaWithDisplayID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileEstimateGammaWithDisplayID(_:_:)

func ColorSyncProfileGetDisplayTransferFormulaFromVCGT

func ColorSyncProfileGetDisplayTransferFormulaFromVCGT(profile coregraphics.ColorSyncProfileRef, redMin []float32, redMax []float32, redGamma []float32, greenMin []float32, greenMax []float32, greenGamma []float32, blueMin []float32, blueMax []float32, blueGamma []float32) bool

ColorSyncProfileGetDisplayTransferFormulaFromVCGT converts the profile’s `vcgt` tag to formula components used by [CGSetDisplayTransferByFormula].

It panics if ColorSyncProfileGetDisplayTransferFormulaFromVCGT is unavailable at run time; use TryColorSyncProfileGetDisplayTransferFormulaFromVCGT to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileGetDisplayTransferFormulaFromVCGT(_:_:_:_:_:_:_:_:_:_:)

func ColorSyncProfileGetTypeID

func ColorSyncProfileGetTypeID() uint

ColorSyncProfileGetTypeID returns the unique identifier for the ColorSync profile opaque type.

It panics if ColorSyncProfileGetTypeID is unavailable at run time; use TryColorSyncProfileGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileGetTypeID()

func ColorSyncProfileGetURL

ColorSyncProfileGetURL returns the URL of a profile.

It panics if ColorSyncProfileGetURL is unavailable at run time; use TryColorSyncProfileGetURL to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileGetURL(_:_:)

func ColorSyncProfileInstall

ColorSyncProfileInstall installs a profile in the specified domain.

It panics if ColorSyncProfileInstall is unavailable at run time; use TryColorSyncProfileInstall to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileInstall(_:_:_:_:)

func ColorSyncProfileIsHLGBased

func ColorSyncProfileIsHLGBased(arg0 coregraphics.ColorSyncProfileRef) bool

ColorSyncProfileIsHLGBased returns a Boolean value indicating whether the profile uses ITU BT.2100 HLG transfer functions.

It panics if ColorSyncProfileIsHLGBased is unavailable at run time; use TryColorSyncProfileIsHLGBased to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileIsHLGBased(_:)

func ColorSyncProfileIsMatrixBased

func ColorSyncProfileIsMatrixBased(arg0 coregraphics.ColorSyncProfileRef) bool

ColorSyncProfileIsMatrixBased returns a Boolean value indicating whether the profile is matrix-based.

It panics if ColorSyncProfileIsMatrixBased is unavailable at run time; use TryColorSyncProfileIsMatrixBased to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileIsMatrixBased(_:)

func ColorSyncProfileIsPQBased

func ColorSyncProfileIsPQBased(arg0 coregraphics.ColorSyncProfileRef) bool

ColorSyncProfileIsPQBased returns a Boolean value indicating whether the profile uses ITU BT.2100 PQ transfer functions.

It panics if ColorSyncProfileIsPQBased is unavailable at run time; use TryColorSyncProfileIsPQBased to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileIsPQBased(_:)

func ColorSyncProfileIsWideGamut

func ColorSyncProfileIsWideGamut(arg0 coregraphics.ColorSyncProfileRef) bool

ColorSyncProfileIsWideGamut returns a Boolean value indicating whether the display profile describes a wide-gamut color space.

It panics if ColorSyncProfileIsWideGamut is unavailable at run time; use TryColorSyncProfileIsWideGamut to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileIsWideGamut(_:)

func ColorSyncProfileRemoveTag

func ColorSyncProfileRemoveTag(prof unsafe.Pointer, signature corefoundation.CFStringRef)

ColorSyncProfileRemoveTag removes a tag from a mutable profile.

It panics if ColorSyncProfileRemoveTag is unavailable at run time; use TryColorSyncProfileRemoveTag to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileRemoveTag(_:_:)

func ColorSyncProfileSetHeader

func ColorSyncProfileSetHeader(prof unsafe.Pointer, header corefoundation.CFDataRef)

ColorSyncProfileSetHeader sets the header of a mutable profile.

It panics if ColorSyncProfileSetHeader is unavailable at run time; use TryColorSyncProfileSetHeader to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileSetHeader(_:_:)

func ColorSyncProfileSetTag

func ColorSyncProfileSetTag(prof unsafe.Pointer, signature corefoundation.CFStringRef, data corefoundation.CFDataRef)

ColorSyncProfileSetTag sets a tag in a mutable profile.

It panics if ColorSyncProfileSetTag is unavailable at run time; use TryColorSyncProfileSetTag to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileSetTag(_:_:_:)

func ColorSyncProfileUninstall

func ColorSyncProfileUninstall(profile coregraphics.ColorSyncProfileRef, err *corefoundation.CFErrorRef) bool

ColorSyncProfileUninstall uninstalls a profile.

It panics if ColorSyncProfileUninstall is unavailable at run time; use TryColorSyncProfileUninstall to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileUninstall(_:_:)

func ColorSyncProfileVerify

func ColorSyncProfileVerify(prof coregraphics.ColorSyncProfileRef, errors *corefoundation.CFErrorRef, warnings *corefoundation.CFErrorRef) bool

ColorSyncProfileVerify verifies whether a profile can be used.

It panics if ColorSyncProfileVerify is unavailable at run time; use TryColorSyncProfileVerify to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileVerify(_:_:_:)

func ColorSyncRegisterDevice

func ColorSyncRegisterDevice(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, deviceInfo corefoundation.CFDictionaryRef) bool

ColorSyncRegisterDevice registers a device of the given class with ColorSync.

It panics if ColorSyncRegisterDevice is unavailable at run time; use TryColorSyncRegisterDevice to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncRegisterDevice(_:_:_:)

func ColorSyncTransformConvert

func ColorSyncTransformConvert(transform unsafe.Pointer, width uintptr, height uintptr, dst unsafe.Pointer, dstDepth ColorSyncDataDepth, dstLayout uint32, dstBytesPerRow uintptr, src unsafe.Pointer, srcDepth ColorSyncDataDepth, srcLayout uint32, srcBytesPerRow uintptr, options corefoundation.CFDictionaryRef) bool

ColorSyncTransformConvert converts color data from a source layout to a destination layout using a color transform.

It panics if ColorSyncTransformConvert is unavailable at run time; use TryColorSyncTransformConvert to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformConvert(_:_:_:_:_:_:_:_:_:_:_:_:)

func ColorSyncTransformCopyProperty

func ColorSyncTransformCopyProperty(transform unsafe.Pointer, key corefoundation.CFTypeRef, options corefoundation.CFDictionaryRef) corefoundation.CFTypeRef

ColorSyncTransformCopyProperty copies a property from a color transform.

It panics if ColorSyncTransformCopyProperty is unavailable at run time; use TryColorSyncTransformCopyProperty to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformCopyProperty(_:_:_:)

func ColorSyncTransformCreate

func ColorSyncTransformCreate(profileSequence corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) unsafe.Pointer

ColorSyncTransformCreate creates a color transform from a sequence of profiles.

It panics if ColorSyncTransformCreate is unavailable at run time; use TryColorSyncTransformCreate to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformCreate(_:_:)

func ColorSyncTransformGetProfileSequence

func ColorSyncTransformGetProfileSequence(transform unsafe.Pointer) corefoundation.CFArrayRef

ColorSyncTransformGetProfileSequence returns the profile sequence used to create a color transform.

It panics if ColorSyncTransformGetProfileSequence is unavailable at run time; use TryColorSyncTransformGetProfileSequence to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformGetProfileSequence(_:)

func ColorSyncTransformGetTypeID

func ColorSyncTransformGetTypeID() uint

ColorSyncTransformGetTypeID returns the type identifier for the [ColorSyncTransform] opaque type.

It panics if ColorSyncTransformGetTypeID is unavailable at run time; use TryColorSyncTransformGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformGetTypeID()

func ColorSyncTransformSetProperty

func ColorSyncTransformSetProperty(transform unsafe.Pointer, key corefoundation.CFTypeRef, property corefoundation.CFTypeRef)

ColorSyncTransformSetProperty sets a property on a color transform.

It panics if ColorSyncTransformSetProperty is unavailable at run time; use TryColorSyncTransformSetProperty to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncTransformSetProperty(_:_:_:)

func ColorSyncUnregisterDevice

func ColorSyncUnregisterDevice(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef) bool

ColorSyncUnregisterDevice unregisters a device of the given class and identifier.

It panics if ColorSyncUnregisterDevice is unavailable at run time; use TryColorSyncUnregisterDevice to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncUnregisterDevice(_:_:)

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in ColorSync, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

func TryCGDisplayCreateUUIDFromDisplayID

func TryCGDisplayCreateUUIDFromDisplayID(displayID uint32) (corefoundation.CFUUID, error)

TryCGDisplayCreateUUIDFromDisplayID is like CGDisplayCreateUUIDFromDisplayID but returns an error instead of panicking if CGDisplayCreateUUIDFromDisplayID is unavailable at run time.

func TryCGDisplayGetDisplayIDFromUUID

func TryCGDisplayGetDisplayIDFromUUID(uuid corefoundation.CFUUIDRef) (uint32, error)

TryCGDisplayGetDisplayIDFromUUID is like CGDisplayGetDisplayIDFromUUID but returns an error instead of panicking if CGDisplayGetDisplayIDFromUUID is unavailable at run time.

func TryColorSyncAPIVersion

func TryColorSyncAPIVersion() (uint32, error)

TryColorSyncAPIVersion is like ColorSyncAPIVersion but returns an error instead of panicking if ColorSyncAPIVersion is unavailable at run time.

func TryColorSyncCMMCopyCMMIdentifier

func TryColorSyncCMMCopyCMMIdentifier(arg0 unsafe.Pointer) (corefoundation.CFStringRef, error)

TryColorSyncCMMCopyCMMIdentifier is like ColorSyncCMMCopyCMMIdentifier but returns an error instead of panicking if ColorSyncCMMCopyCMMIdentifier is unavailable at run time.

func TryColorSyncCMMCopyLocalizedName

func TryColorSyncCMMCopyLocalizedName(arg0 unsafe.Pointer) (corefoundation.CFStringRef, error)

TryColorSyncCMMCopyLocalizedName is like ColorSyncCMMCopyLocalizedName but returns an error instead of panicking if ColorSyncCMMCopyLocalizedName is unavailable at run time.

func TryColorSyncCMMCreate

func TryColorSyncCMMCreate(cmmBundle corefoundation.CFBundleRef) (unsafe.Pointer, error)

TryColorSyncCMMCreate is like ColorSyncCMMCreate but returns an error instead of panicking if ColorSyncCMMCreate is unavailable at run time.

func TryColorSyncCMMGetBundle

func TryColorSyncCMMGetBundle(arg0 unsafe.Pointer) (corefoundation.CFBundle, error)

TryColorSyncCMMGetBundle is like ColorSyncCMMGetBundle but returns an error instead of panicking if ColorSyncCMMGetBundle is unavailable at run time.

func TryColorSyncCMMGetTypeID

func TryColorSyncCMMGetTypeID() (uint, error)

TryColorSyncCMMGetTypeID is like ColorSyncCMMGetTypeID but returns an error instead of panicking if ColorSyncCMMGetTypeID is unavailable at run time.

func TryColorSyncCreateCodeFragment

func TryColorSyncCreateCodeFragment(profileSequence corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) (corefoundation.CFTypeRef, error)

TryColorSyncCreateCodeFragment is like ColorSyncCreateCodeFragment but returns an error instead of panicking if ColorSyncCreateCodeFragment is unavailable at run time.

func TryColorSyncDeviceCopyDeviceInfo

func TryColorSyncDeviceCopyDeviceInfo(deviceClass corefoundation.CFStringRef, devID corefoundation.CFUUIDRef) (corefoundation.CFDictionaryRef, error)

TryColorSyncDeviceCopyDeviceInfo is like ColorSyncDeviceCopyDeviceInfo but returns an error instead of panicking if ColorSyncDeviceCopyDeviceInfo is unavailable at run time.

func TryColorSyncDeviceSetCustomProfiles

func TryColorSyncDeviceSetCustomProfiles(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, profileInfo corefoundation.CFDictionaryRef) (bool, error)

TryColorSyncDeviceSetCustomProfiles is like ColorSyncDeviceSetCustomProfiles but returns an error instead of panicking if ColorSyncDeviceSetCustomProfiles is unavailable at run time.

func TryColorSyncIterateDeviceProfiles

func TryColorSyncIterateDeviceProfiles(callBack ColorSyncDeviceProfileIterateCallback, userInfo unsafe.Pointer) error

TryColorSyncIterateDeviceProfiles is like ColorSyncIterateDeviceProfiles but returns an error instead of panicking if ColorSyncIterateDeviceProfiles is unavailable at run time.

func TryColorSyncIterateInstalledCMMs

func TryColorSyncIterateInstalledCMMs(callBack ColorSyncCMMIterateCallback, userInfo unsafe.Pointer) error

TryColorSyncIterateInstalledCMMs is like ColorSyncIterateInstalledCMMs but returns an error instead of panicking if ColorSyncIterateInstalledCMMs is unavailable at run time.

func TryColorSyncIterateInstalledProfiles

func TryColorSyncIterateInstalledProfiles(callBack ColorSyncProfileIterateCallback, seed *uint32, userInfo unsafe.Pointer, err *corefoundation.CFErrorRef) error

TryColorSyncIterateInstalledProfiles is like ColorSyncIterateInstalledProfiles but returns an error instead of panicking if ColorSyncIterateInstalledProfiles is unavailable at run time.

func TryColorSyncIterateInstalledProfilesWithOptions

func TryColorSyncIterateInstalledProfilesWithOptions(callBack ColorSyncProfileIterateCallback, seed *uint32, userInfo unsafe.Pointer, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) error

TryColorSyncIterateInstalledProfilesWithOptions is like ColorSyncIterateInstalledProfilesWithOptions but returns an error instead of panicking if ColorSyncIterateInstalledProfilesWithOptions is unavailable at run time.

func TryColorSyncProfileContainsTag

func TryColorSyncProfileContainsTag(prof coregraphics.ColorSyncProfileRef, signature corefoundation.CFStringRef) (bool, error)

TryColorSyncProfileContainsTag is like ColorSyncProfileContainsTag but returns an error instead of panicking if ColorSyncProfileContainsTag is unavailable at run time.

func TryColorSyncProfileCopyData

func TryColorSyncProfileCopyData(prof coregraphics.ColorSyncProfileRef, err *corefoundation.CFErrorRef) (corefoundation.CFDataRef, error)

TryColorSyncProfileCopyData is like ColorSyncProfileCopyData but returns an error instead of panicking if ColorSyncProfileCopyData is unavailable at run time.

func TryColorSyncProfileCopyDescriptionString

func TryColorSyncProfileCopyDescriptionString(prof coregraphics.ColorSyncProfileRef) (corefoundation.CFStringRef, error)

TryColorSyncProfileCopyDescriptionString is like ColorSyncProfileCopyDescriptionString but returns an error instead of panicking if ColorSyncProfileCopyDescriptionString is unavailable at run time.

func TryColorSyncProfileCopyHeader

func TryColorSyncProfileCopyHeader(prof coregraphics.ColorSyncProfileRef) (corefoundation.CFDataRef, error)

TryColorSyncProfileCopyHeader is like ColorSyncProfileCopyHeader but returns an error instead of panicking if ColorSyncProfileCopyHeader is unavailable at run time.

func TryColorSyncProfileCopyTag

func TryColorSyncProfileCopyTag(prof coregraphics.ColorSyncProfileRef, signature corefoundation.CFStringRef) (corefoundation.CFDataRef, error)

TryColorSyncProfileCopyTag is like ColorSyncProfileCopyTag but returns an error instead of panicking if ColorSyncProfileCopyTag is unavailable at run time.

func TryColorSyncProfileCopyTagSignatures

func TryColorSyncProfileCopyTagSignatures(prof coregraphics.ColorSyncProfileRef) (corefoundation.CFArrayRef, error)

TryColorSyncProfileCopyTagSignatures is like ColorSyncProfileCopyTagSignatures but returns an error instead of panicking if ColorSyncProfileCopyTagSignatures is unavailable at run time.

func TryColorSyncProfileCreate

TryColorSyncProfileCreate is like ColorSyncProfileCreate but returns an error instead of panicking if ColorSyncProfileCreate is unavailable at run time.

func TryColorSyncProfileCreateDeviceProfile

func TryColorSyncProfileCreateDeviceProfile(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, profileID corefoundation.CFTypeRef) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateDeviceProfile is like ColorSyncProfileCreateDeviceProfile but returns an error instead of panicking if ColorSyncProfileCreateDeviceProfile is unavailable at run time.

func TryColorSyncProfileCreateDisplayTransferTablesFromVCGT

func TryColorSyncProfileCreateDisplayTransferTablesFromVCGT(profile coregraphics.ColorSyncProfileRef, nSamplesPerChannel *uintptr) (corefoundation.CFDataRef, error)

TryColorSyncProfileCreateDisplayTransferTablesFromVCGT is like ColorSyncProfileCreateDisplayTransferTablesFromVCGT but returns an error instead of panicking if ColorSyncProfileCreateDisplayTransferTablesFromVCGT is unavailable at run time.

func TryColorSyncProfileCreateLink(profileInfo corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateLink is like ColorSyncProfileCreateLink but returns an error instead of panicking if ColorSyncProfileCreateLink is unavailable at run time.

func TryColorSyncProfileCreateMutable

func TryColorSyncProfileCreateMutable() (unsafe.Pointer, error)

TryColorSyncProfileCreateMutable is like ColorSyncProfileCreateMutable but returns an error instead of panicking if ColorSyncProfileCreateMutable is unavailable at run time.

func TryColorSyncProfileCreateMutableCopy

func TryColorSyncProfileCreateMutableCopy(prof coregraphics.ColorSyncProfileRef) (unsafe.Pointer, error)

TryColorSyncProfileCreateMutableCopy is like ColorSyncProfileCreateMutableCopy but returns an error instead of panicking if ColorSyncProfileCreateMutableCopy is unavailable at run time.

func TryColorSyncProfileCreateWithDisplayID

func TryColorSyncProfileCreateWithDisplayID(displayID uint32) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateWithDisplayID is like ColorSyncProfileCreateWithDisplayID but returns an error instead of panicking if ColorSyncProfileCreateWithDisplayID is unavailable at run time.

func TryColorSyncProfileCreateWithName

func TryColorSyncProfileCreateWithName(name corefoundation.CFStringRef) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateWithName is like ColorSyncProfileCreateWithName but returns an error instead of panicking if ColorSyncProfileCreateWithName is unavailable at run time.

func TryColorSyncProfileCreateWithURL

func TryColorSyncProfileCreateWithURL(url corefoundation.CFURLRef, err *corefoundation.CFErrorRef) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateWithURL is like ColorSyncProfileCreateWithURL but returns an error instead of panicking if ColorSyncProfileCreateWithURL is unavailable at run time.

func TryColorSyncProfileCreateWithURLAndOptions

func TryColorSyncProfileCreateWithURLAndOptions(url corefoundation.CFURLRef, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) (coregraphics.ColorSyncProfileRef, error)

TryColorSyncProfileCreateWithURLAndOptions is like ColorSyncProfileCreateWithURLAndOptions but returns an error instead of panicking if ColorSyncProfileCreateWithURLAndOptions is unavailable at run time.

func TryColorSyncProfileEstimateGamma

func TryColorSyncProfileEstimateGamma(prof coregraphics.ColorSyncProfileRef, err *corefoundation.CFErrorRef) (float32, error)

TryColorSyncProfileEstimateGamma is like ColorSyncProfileEstimateGamma but returns an error instead of panicking if ColorSyncProfileEstimateGamma is unavailable at run time.

func TryColorSyncProfileEstimateGammaWithDisplayID

func TryColorSyncProfileEstimateGammaWithDisplayID(displayID int32, err *corefoundation.CFErrorRef) (float32, error)

TryColorSyncProfileEstimateGammaWithDisplayID is like ColorSyncProfileEstimateGammaWithDisplayID but returns an error instead of panicking if ColorSyncProfileEstimateGammaWithDisplayID is unavailable at run time.

func TryColorSyncProfileGetDisplayTransferFormulaFromVCGT

func TryColorSyncProfileGetDisplayTransferFormulaFromVCGT(profile coregraphics.ColorSyncProfileRef, redMin []float32, redMax []float32, redGamma []float32, greenMin []float32, greenMax []float32, greenGamma []float32, blueMin []float32, blueMax []float32, blueGamma []float32) (bool, error)

TryColorSyncProfileGetDisplayTransferFormulaFromVCGT is like ColorSyncProfileGetDisplayTransferFormulaFromVCGT but returns an error instead of panicking if ColorSyncProfileGetDisplayTransferFormulaFromVCGT is unavailable at run time.

func TryColorSyncProfileGetTypeID

func TryColorSyncProfileGetTypeID() (uint, error)

TryColorSyncProfileGetTypeID is like ColorSyncProfileGetTypeID but returns an error instead of panicking if ColorSyncProfileGetTypeID is unavailable at run time.

func TryColorSyncProfileGetURL

TryColorSyncProfileGetURL is like ColorSyncProfileGetURL but returns an error instead of panicking if ColorSyncProfileGetURL is unavailable at run time.

func TryColorSyncProfileInstall

func TryColorSyncProfileInstall(profile coregraphics.ColorSyncProfileRef, domain corefoundation.CFStringRef, subpath corefoundation.CFStringRef, err *corefoundation.CFErrorRef) (bool, error)

TryColorSyncProfileInstall is like ColorSyncProfileInstall but returns an error instead of panicking if ColorSyncProfileInstall is unavailable at run time.

func TryColorSyncProfileIsHLGBased

func TryColorSyncProfileIsHLGBased(arg0 coregraphics.ColorSyncProfileRef) (bool, error)

TryColorSyncProfileIsHLGBased is like ColorSyncProfileIsHLGBased but returns an error instead of panicking if ColorSyncProfileIsHLGBased is unavailable at run time.

func TryColorSyncProfileIsMatrixBased

func TryColorSyncProfileIsMatrixBased(arg0 coregraphics.ColorSyncProfileRef) (bool, error)

TryColorSyncProfileIsMatrixBased is like ColorSyncProfileIsMatrixBased but returns an error instead of panicking if ColorSyncProfileIsMatrixBased is unavailable at run time.

func TryColorSyncProfileIsPQBased

func TryColorSyncProfileIsPQBased(arg0 coregraphics.ColorSyncProfileRef) (bool, error)

TryColorSyncProfileIsPQBased is like ColorSyncProfileIsPQBased but returns an error instead of panicking if ColorSyncProfileIsPQBased is unavailable at run time.

func TryColorSyncProfileIsWideGamut

func TryColorSyncProfileIsWideGamut(arg0 coregraphics.ColorSyncProfileRef) (bool, error)

TryColorSyncProfileIsWideGamut is like ColorSyncProfileIsWideGamut but returns an error instead of panicking if ColorSyncProfileIsWideGamut is unavailable at run time.

func TryColorSyncProfileRemoveTag

func TryColorSyncProfileRemoveTag(prof unsafe.Pointer, signature corefoundation.CFStringRef) error

TryColorSyncProfileRemoveTag is like ColorSyncProfileRemoveTag but returns an error instead of panicking if ColorSyncProfileRemoveTag is unavailable at run time.

func TryColorSyncProfileSetHeader

func TryColorSyncProfileSetHeader(prof unsafe.Pointer, header corefoundation.CFDataRef) error

TryColorSyncProfileSetHeader is like ColorSyncProfileSetHeader but returns an error instead of panicking if ColorSyncProfileSetHeader is unavailable at run time.

func TryColorSyncProfileSetTag

func TryColorSyncProfileSetTag(prof unsafe.Pointer, signature corefoundation.CFStringRef, data corefoundation.CFDataRef) error

TryColorSyncProfileSetTag is like ColorSyncProfileSetTag but returns an error instead of panicking if ColorSyncProfileSetTag is unavailable at run time.

func TryColorSyncProfileUninstall

func TryColorSyncProfileUninstall(profile coregraphics.ColorSyncProfileRef, err *corefoundation.CFErrorRef) (bool, error)

TryColorSyncProfileUninstall is like ColorSyncProfileUninstall but returns an error instead of panicking if ColorSyncProfileUninstall is unavailable at run time.

func TryColorSyncProfileVerify

func TryColorSyncProfileVerify(prof coregraphics.ColorSyncProfileRef, errors *corefoundation.CFErrorRef, warnings *corefoundation.CFErrorRef) (bool, error)

TryColorSyncProfileVerify is like ColorSyncProfileVerify but returns an error instead of panicking if ColorSyncProfileVerify is unavailable at run time.

func TryColorSyncRegisterDevice

func TryColorSyncRegisterDevice(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef, deviceInfo corefoundation.CFDictionaryRef) (bool, error)

TryColorSyncRegisterDevice is like ColorSyncRegisterDevice but returns an error instead of panicking if ColorSyncRegisterDevice is unavailable at run time.

func TryColorSyncTransformConvert

func TryColorSyncTransformConvert(transform unsafe.Pointer, width uintptr, height uintptr, dst unsafe.Pointer, dstDepth ColorSyncDataDepth, dstLayout uint32, dstBytesPerRow uintptr, src unsafe.Pointer, srcDepth ColorSyncDataDepth, srcLayout uint32, srcBytesPerRow uintptr, options corefoundation.CFDictionaryRef) (bool, error)

TryColorSyncTransformConvert is like ColorSyncTransformConvert but returns an error instead of panicking if ColorSyncTransformConvert is unavailable at run time.

func TryColorSyncTransformCopyProperty

func TryColorSyncTransformCopyProperty(transform unsafe.Pointer, key corefoundation.CFTypeRef, options corefoundation.CFDictionaryRef) (corefoundation.CFTypeRef, error)

TryColorSyncTransformCopyProperty is like ColorSyncTransformCopyProperty but returns an error instead of panicking if ColorSyncTransformCopyProperty is unavailable at run time.

func TryColorSyncTransformCreate

func TryColorSyncTransformCreate(profileSequence corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) (unsafe.Pointer, error)

TryColorSyncTransformCreate is like ColorSyncTransformCreate but returns an error instead of panicking if ColorSyncTransformCreate is unavailable at run time.

func TryColorSyncTransformGetProfileSequence

func TryColorSyncTransformGetProfileSequence(transform unsafe.Pointer) (corefoundation.CFArrayRef, error)

TryColorSyncTransformGetProfileSequence is like ColorSyncTransformGetProfileSequence but returns an error instead of panicking if ColorSyncTransformGetProfileSequence is unavailable at run time.

func TryColorSyncTransformGetTypeID

func TryColorSyncTransformGetTypeID() (uint, error)

TryColorSyncTransformGetTypeID is like ColorSyncTransformGetTypeID but returns an error instead of panicking if ColorSyncTransformGetTypeID is unavailable at run time.

func TryColorSyncTransformSetProperty

func TryColorSyncTransformSetProperty(transform unsafe.Pointer, key corefoundation.CFTypeRef, property corefoundation.CFTypeRef) error

TryColorSyncTransformSetProperty is like ColorSyncTransformSetProperty but returns an error instead of panicking if ColorSyncTransformSetProperty is unavailable at run time.

func TryColorSyncUnregisterDevice

func TryColorSyncUnregisterDevice(deviceClass corefoundation.CFStringRef, deviceID corefoundation.CFUUIDRef) (bool, error)

TryColorSyncUnregisterDevice is like ColorSyncUnregisterDevice but returns an error instead of panicking if ColorSyncUnregisterDevice is unavailable at run time.

Types

type CMMApplyTransformProc

CMMApplyTransformProc is a function a CMM provider implements to apply a color transform to image data.

See: https://developer.apple.com/documentation/ColorSync/CMMApplyTransformProc

type CMMCreateTransformPropertyProc

type CMMCreateTransformPropertyProc = func(uintptr, unsafe.Pointer, uintptr) unsafe.Pointer

CMMCreateTransformPropertyProc is a function a CMM provider implements to create a transform property for a given key.

See: https://developer.apple.com/documentation/ColorSync/CMMCreateTransformPropertyProc

type CMMInitializeLinkProfileProc

type CMMInitializeLinkProfileProc = func(uintptr, uintptr, uintptr) bool

CMMInitializeLinkProfileProc is a function a CMM provider implements to initialize a device-link profile.

See: https://developer.apple.com/documentation/ColorSync/CMMInitializeLinkProfileProc

type CMMInitializeTransformProc

type CMMInitializeTransformProc = func(uintptr, uintptr, uintptr) bool

CMMInitializeTransformProc is a function a CMM provider implements to initialize a color transform.

See: https://developer.apple.com/documentation/ColorSync/CMMInitializeTransformProc

type ColorSyncAlphaInfo

type ColorSyncAlphaInfo uint32

See: https://developer.apple.com/documentation/ColorSync/ColorSyncAlphaInfo

const (
	KColorSyncAlphaFirst              ColorSyncAlphaInfo = 4
	KColorSyncAlphaLast               ColorSyncAlphaInfo = 3
	KColorSyncAlphaNone               ColorSyncAlphaInfo = 0
	KColorSyncAlphaNoneSkipFirst      ColorSyncAlphaInfo = 6
	KColorSyncAlphaNoneSkipLast       ColorSyncAlphaInfo = 5
	KColorSyncAlphaPremultipliedFirst ColorSyncAlphaInfo = 2
	KColorSyncAlphaPremultipliedLast  ColorSyncAlphaInfo = 1
)

func (ColorSyncAlphaInfo) String

func (e ColorSyncAlphaInfo) String() string

type ColorSyncCMMIterateCallback

type ColorSyncCMMIterateCallback = func(cmm uintptr, userInfo unsafe.Pointer) bool

ColorSyncCMMIterateCallback is a callback that the framework invokes for each installed CMM during iteration.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncCMMIterateCallback

type ColorSyncDataDepth

type ColorSyncDataDepth uint32

See: https://developer.apple.com/documentation/ColorSync/ColorSyncDataDepth

const (
	KColorSync10BitInteger         ColorSyncDataDepth = 8
	KColorSync16BitFloat           ColorSyncDataDepth = 4
	KColorSync16BitInteger         ColorSyncDataDepth = 3
	KColorSync1BitGamut            ColorSyncDataDepth = 1
	KColorSync32BitFloat           ColorSyncDataDepth = 7
	KColorSync32BitInteger         ColorSyncDataDepth = 5
	KColorSync32BitNamedColorIndex ColorSyncDataDepth = 6
	KColorSync8BitInteger          ColorSyncDataDepth = 2
)

func (ColorSyncDataDepth) String

func (e ColorSyncDataDepth) String() string

type ColorSyncDeviceProfileIterateCallback

type ColorSyncDeviceProfileIterateCallback = func(colorSyncDeviceProfileInfo uintptr, userInfo unsafe.Pointer) bool

ColorSyncDeviceProfileIterateCallback is a callback that ColorSync invokes for each device profile during iteration.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncDeviceProfileIterateCallback

type ColorSyncMD5

type ColorSyncMD5 struct {
	Digest [16]uint8
}

ColorSyncMD5 - An MD5 digest that uniquely identifies a profile, as defined by the ICC specification.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/ColorSync/ColorSyncMD5

func ColorSyncProfileGetMD5

func ColorSyncProfileGetMD5(prof coregraphics.ColorSyncProfileRef) ColorSyncMD5

ColorSyncProfileGetMD5 returns the MD5 digest for a profile.

It panics if ColorSyncProfileGetMD5 is unavailable at run time; use TryColorSyncProfileGetMD5 to get an error instead.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileGetMD5(_:)

func TryColorSyncProfileGetMD5

func TryColorSyncProfileGetMD5(prof coregraphics.ColorSyncProfileRef) (ColorSyncMD5, error)

TryColorSyncProfileGetMD5 is like ColorSyncProfileGetMD5 but returns an error instead of panicking if ColorSyncProfileGetMD5 is unavailable at run time.

type ColorSyncProfileIterateCallback

type ColorSyncProfileIterateCallback = func(profileInfo uintptr, userInfo unsafe.Pointer) bool

ColorSyncProfileIterateCallback is a callback that the framework invokes for each installed profile during iteration.

See: https://developer.apple.com/documentation/ColorSync/ColorSyncProfileIterateCallback

type KColorSync

type KColorSync uint32
const (
	KColorSyncAlphaInfoMask     KColorSync = 0x1f
	KColorSyncByteOrder16Big    KColorSync = 12288
	KColorSyncByteOrder16Little KColorSync = 4096
	KColorSyncByteOrder32Big    KColorSync = 16384
	KColorSyncByteOrder32Little KColorSync = 8192
	KColorSyncByteOrderDefault  KColorSync = 0
	KColorSyncByteOrderMask     KColorSync = 0x7000
)

func (KColorSync) String

func (e KColorSync) String() string

Jump to

Keyboard shortcuts

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