colorsync

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 7 Imported by: 0

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 CGDisplayCreateUUIDFromDisplayID

func CGDisplayCreateUUIDFromDisplayID(displayID uint32) corefoundation.CFUUID

CGDisplayCreateUUIDFromDisplayID.

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

func ColorSyncAPIVersion

func ColorSyncAPIVersion() uint32

ColorSyncAPIVersion returns the version of the ColorSync API.

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

func ColorSyncCMMCopyCMMIdentifier

func ColorSyncCMMCopyCMMIdentifier(arg0 unsafe.Pointer) corefoundation.CFStringRef

ColorSyncCMMCopyCMMIdentifier copies the identifier of a CMM.

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.

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.

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.

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

func ColorSyncCMMGetTypeID

func ColorSyncCMMGetTypeID() uint

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

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.

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.

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.

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.

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.

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.

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.

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.

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

func ColorSyncProfileCopyData

ColorSyncProfileCopyData copies the flattened data from a profile.

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.

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

func ColorSyncProfileCopyHeader

func ColorSyncProfileCopyHeader(prof coregraphics.ColorSyncProfileRef) corefoundation.CFDataRef

ColorSyncProfileCopyHeader copies the header from a profile.

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

func ColorSyncProfileCopyTagSignatures

func ColorSyncProfileCopyTagSignatures(prof coregraphics.ColorSyncProfileRef) corefoundation.CFArrayRef

ColorSyncProfileCopyTagSignatures copies the tag signatures of a profile.

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

func ColorSyncProfileCreate

ColorSyncProfileCreate creates a profile from ICC profile data.

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.

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.

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.

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

func ColorSyncProfileCreateMutable

func ColorSyncProfileCreateMutable() unsafe.Pointer

ColorSyncProfileCreateMutable creates an empty mutable profile.

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.

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

func ColorSyncProfileCreateWithDisplayID

func ColorSyncProfileCreateWithDisplayID(displayID uint32) coregraphics.ColorSyncProfileRef

ColorSyncProfileCreateWithDisplayID creates a profile for the specified display.

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.

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.

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.

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.

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.

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].

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

func ColorSyncProfileGetTypeID

func ColorSyncProfileGetTypeID() uint

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

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

func ColorSyncProfileInstall

ColorSyncProfileInstall installs a profile in the specified domain.

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.

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.

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.

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.

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.

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.

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.

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

func ColorSyncProfileUninstall

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

ColorSyncProfileUninstall uninstalls a profile.

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.

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.

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.

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.

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.

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.

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

func ColorSyncTransformGetTypeID

func ColorSyncTransformGetTypeID() uint

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

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.

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.

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

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.

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

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