Mac OS 9
CMApplication.h File Reference

Color Matching Interfaces. More...

#include <MacTypes.h>
#include <Files.h>
#include <CMICCProfile.h>
#include <MacErrors.h>
#include <CMTypes.h>
#include <CFString.h>
#include <CFDictionary.h>
#include <Quickdraw.h>

Go to the source code of this file.

Data Structures

union  CMAppleProfileHeader
 
struct  CMConcatProfileSet
 
struct  NCMConcatProfileSpec
 
struct  NCMConcatProfileSet
 
struct  CMRGBColor
 
struct  CMCMYKColor
 
struct  CMCMYColor
 
struct  CMHLSColor
 
struct  CMHSVColor
 
struct  CMLabColor
 
struct  CMLuvColor
 
struct  CMYxyColor
 
struct  CMGrayColor
 
struct  CMMultichannel5Color
 
struct  CMMultichannel6Color
 
struct  CMMultichannel7Color
 
struct  CMMultichannel8Color
 
struct  CMNamedColor
 
union  CMColor
 
struct  CMProfileSearchRecord
 
struct  CMSearchRecord
 
struct  CMMInfo
 
struct  CMMInfoRecord
 
struct  CMCWInfoRecord
 
struct  CMProfileIdentifier
 
struct  CMBitmap
 
struct  CMFileLocation
 
struct  CMHandleLocation
 
struct  CMPtrLocation
 
struct  CMProcedureLocation
 
struct  CMPathLocation
 
struct  CMBufferLocation
 
union  CMProfLoc
 
struct  CMProfileLocation
 
struct  CMProfileIterateData
 

Macros

#define _DECLARE_CS_QD_API_   1
 
#define NewCMProfileIterateUPP(userRoutine)
 
#define NewCMMIterateUPP(userRoutine)
 
#define DisposeCMProfileIterateUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeCMMIterateUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define InvokeCMProfileIterateUPP(iterateData, refCon, userUPP)
 
#define InvokeCMMIterateUPP(iterateData, refCon, userUPP)
 
#define NewCMProfileIterateProc(userRoutine)   NewCMProfileIterateUPP(userRoutine)
 
#define NewCMMIterateProc(userRoutine)   NewCMMIterateUPP(userRoutine)
 
#define CallCMProfileIterateProc(userRoutine, iterateData, refCon)    InvokeCMProfileIterateUPP(iterateData, refCon, userRoutine)
 
#define CallCMMIterateProc(userRoutine, iterateData, refCon)    InvokeCMMIterateUPP(iterateData, refCon, userRoutine)
 

Typedefs

typedef union CMAppleProfileHeader CMAppleProfileHeader
 
typedef struct CMConcatProfileSet CMConcatProfileSet
 
typedef struct NCMConcatProfileSpec NCMConcatProfileSpec
 
typedef struct NCMConcatProfileSet NCMConcatProfileSet
 
typedef struct CMRGBColor CMRGBColor
 
typedef struct CMCMYKColor CMCMYKColor
 
typedef struct CMCMYColor CMCMYColor
 
typedef struct CMHLSColor CMHLSColor
 
typedef struct CMHSVColor CMHSVColor
 
typedef struct CMLabColor CMLabColor
 
typedef struct CMLuvColor CMLuvColor
 
typedef struct CMYxyColor CMYxyColor
 
typedef struct CMGrayColor CMGrayColor
 
typedef struct CMMultichannel5Color CMMultichannel5Color
 
typedef struct CMMultichannel6Color CMMultichannel6Color
 
typedef struct CMMultichannel7Color CMMultichannel7Color
 
typedef struct CMMultichannel8Color CMMultichannel8Color
 
typedef struct CMNamedColor CMNamedColor
 
typedef union CMColor CMColor
 
typedef struct CMProfileSearchRecord CMProfileSearchRecord
 
typedef CMProfileSearchRecordCMProfileSearchRecordPtr
 
typedef CMProfileSearchRecordPtrCMProfileSearchRecordHandle
 
typedef struct CMSearchRecord CMSearchRecord
 
typedef struct CMMInfo CMMInfo
 
typedef struct CMMInfoRecord CMMInfoRecord
 
typedef struct CMCWInfoRecord CMCWInfoRecord
 
typedef struct CMProfileIdentifier CMProfileIdentifier
 
typedef CMProfileIdentifierCMProfileIdentifierPtr
 
typedef UInt32 CMBitmapColorSpace
 
typedef struct CMBitmap CMBitmap
 
typedef UInt32 CMChromaticAdaptation
 
typedef struct CMFileLocation CMFileLocation
 
typedef struct CMHandleLocation CMHandleLocation
 
typedef struct CMPtrLocation CMPtrLocation
 
typedef struct CMProcedureLocation CMProcedureLocation
 
typedef struct CMPathLocation CMPathLocation
 
typedef struct CMBufferLocation CMBufferLocation
 
typedef union CMProfLoc CMProfLoc
 
typedef struct CMProfileLocation CMProfileLocation
 
typedef unsigned char CMProfileMD5[16]
 
typedef CMProfileMD5 * CMProfileMD5Ptr
 
typedef struct CMProfileIterateData CMProfileIterateData
 
typedef void * refCon
 

Enumerations

enum  { kDefaultCMMSignature = FOUR_CHAR_CODE('appl') }
 
enum  { cmTrap = 0xABEE }
 
enum  {
  cmBeginProfile = 220 , cmEndProfile = 221 , cmEnableMatching = 222 , cmDisableMatching = 223 ,
  cmComment = 224
}
 
enum  { cmBeginProfileSel = 0 , cmContinueProfileSel = 1 , cmEndProfileSel = 2 , cmProfileIdentifierSel = 3 }
 
enum  {
  cmMatchCMMType = 0x00000001 , cmMatchApplProfileVersion = 0x00000002 , cmMatchDataType = 0x00000004 , cmMatchDeviceType = 0x00000008 ,
  cmMatchDeviceManufacturer = 0x00000010 , cmMatchDeviceModel = 0x00000020 , cmMatchDeviceAttributes = 0x00000040 , cmMatchFlags = 0x00000080 ,
  cmMatchOptions = 0x00000100 , cmMatchWhite = 0x00000200 , cmMatchBlack = 0x00000400
}
 
enum  {
  cmMatchAnyProfile = 0x00000000 , cmMatchProfileCMMType = 0x00000001 , cmMatchProfileClass = 0x00000002 , cmMatchDataColorSpace = 0x00000004 ,
  cmMatchProfileConnectionSpace = 0x00000008 , cmMatchManufacturer = 0x00000010 , cmMatchModel = 0x00000020 , cmMatchAttributes = 0x00000040 ,
  cmMatchProfileFlags = 0x00000080
}
 
enum  { cmPS7bit = 1 , cmPS8bit = 2 }
 
enum  { cmEmbedWholeProfile = 0x00000000 , cmEmbedProfileIdentifier = 0x00000001 }
 
enum  {
  cmOpenReadSpool = 1 , cmOpenWriteSpool = 2 , cmReadSpool = 3 , cmWriteSpool = 4 ,
  cmCloseSpool = 5
}
 
enum  {
  cmOpenReadAccess = 1 , cmOpenWriteAccess = 2 , cmReadAccess = 3 , cmWriteAccess = 4 ,
  cmCloseAccess = 5 , cmCreateNewAccess = 6 , cmAbortWriteAccess = 7 , cmBeginAccess = 8 ,
  cmEndAccess = 9
}
 
enum  { cmInputUse = FOUR_CHAR_CODE('inpt') , cmOutputUse = FOUR_CHAR_CODE('outp') , cmDisplayUse = FOUR_CHAR_CODE('dply') , cmProofUse = FOUR_CHAR_CODE('pruf') }
 
enum  {
  kNoTransform = 0 , kUseAtoB = 1 , kUseBtoA = 2 , kUseBtoB = 3 ,
  kDeviceToPCS = kUseAtoB , kPCSToDevice = kUseBtoA , kPCSToPCS = kUseBtoB , kUseProfileIntent
}
 
enum  {
  cmColorSpaceSpaceMask = 0x0000003F , cmColorSpacePremulAlphaMask = 0x00000040 , cmColorSpaceAlphaMask = 0x00000080 , cmColorSpaceSpaceAndAlphaMask = 0x000000FF ,
  cmColorSpacePackingMask = 0x0000FF00 , cmColorSpaceEncodingMask = 0x000F0000 , cmColorSpaceReservedMask = (long)0xFFF00000
}
 
enum  {
  cmNoColorPacking = 0x0000 , cmWord5ColorPacking = 0x0500 , cmWord565ColorPacking = 0x0600 , cmLong8ColorPacking = 0x0800 ,
  cmLong10ColorPacking = 0x0A00 , cmAlphaFirstPacking = 0x1000 , cmOneBitDirectPacking = 0x0B00 , cmAlphaLastPacking = 0x0000 ,
  cm8_8ColorPacking = 0x2800 , cm16_8ColorPacking = 0x2000 , cm24_8ColorPacking = 0x2100 , cm32_8ColorPacking = cmLong8ColorPacking ,
  cm40_8ColorPacking = 0x2200 , cm48_8ColorPacking = 0x2300 , cm56_8ColorPacking = 0x2400 , cm64_8ColorPacking = 0x2500 ,
  cm32_16ColorPacking = 0x2600 , cm48_16ColorPacking = 0x2900 , cm64_16ColorPacking = 0x2A00 , cm32_32ColorPacking = 0x2700 ,
  cmLittleEndianPacking = 0x4000 , cmReverseChannelPacking = 0x8000
}
 
enum  { cmSRGB16ChannelEncoding }
 
enum  {
  cmNoSpace = 0x0000 , cmRGBSpace = 0x0001 , cmCMYKSpace = 0x0002 , cmHSVSpace = 0x0003 ,
  cmHLSSpace = 0x0004 , cmYXYSpace = 0x0005 , cmXYZSpace = 0x0006 , cmLUVSpace = 0x0007 ,
  cmLABSpace = 0x0008 , cmReservedSpace1 = 0x0009 , cmGraySpace = 0x000A , cmReservedSpace2 = 0x000B ,
  cmGamutResultSpace = 0x000C , cmNamedIndexedSpace = 0x0010 , cmMCFiveSpace = 0x0011 , cmMCSixSpace = 0x0012 ,
  cmMCSevenSpace = 0x0013 , cmMCEightSpace = 0x0014 , cmAlphaPmulSpace = 0x0040 , cmAlphaSpace = 0x0080 ,
  cmRGBASpace = cmRGBSpace + cmAlphaSpace , cmGrayASpace = cmGraySpace + cmAlphaSpace , cmRGBAPmulSpace = cmRGBASpace + cmAlphaPmulSpace , cmGrayAPmulSpace = cmGrayASpace + cmAlphaPmulSpace
}
 
enum  {
  cmGray8Space = cmGraySpace + cm8_8ColorPacking , cmGray16Space = cmGraySpace , cmGray16LSpace = cmGraySpace + cmLittleEndianPacking , cmGrayA16Space = cmGrayASpace + cm16_8ColorPacking ,
  cmGrayA32Space = cmGrayASpace , cmGrayA32LSpace = cmGrayASpace + cmLittleEndianPacking , cmGrayA16PmulSpace = cmGrayAPmulSpace + cm16_8ColorPacking , cmGrayA32PmulSpace = cmGrayAPmulSpace ,
  cmGrayA32LPmulSpace = cmGrayAPmulSpace + cmLittleEndianPacking , cmRGB16Space = cmRGBSpace + cmWord5ColorPacking , cmRGB16LSpace = cmRGBSpace + cmWord5ColorPacking + cmLittleEndianPacking , cmRGB565Space = cmRGBSpace + cmWord565ColorPacking ,
  cmRGB565LSpace = cmRGBSpace + cmWord565ColorPacking + cmLittleEndianPacking , cmRGB24Space = cmRGBSpace + cm24_8ColorPacking , cmRGB32Space = cmRGBSpace + cm32_8ColorPacking , cmRGB48Space = cmRGBSpace + cm48_16ColorPacking ,
  cmRGB48LSpace = cmRGBSpace + cm48_16ColorPacking + cmLittleEndianPacking , cmARGB32Space = cmRGBASpace + cm32_8ColorPacking + cmAlphaFirstPacking , cmARGB64Space = cmRGBASpace + cm64_16ColorPacking + cmAlphaFirstPacking , cmARGB64LSpace ,
  cmRGBA32Space = cmRGBASpace + cm32_8ColorPacking + cmAlphaLastPacking , cmRGBA64Space = cmRGBASpace + cm64_16ColorPacking + cmAlphaLastPacking , cmRGBA64LSpace , cmARGB32PmulSpace ,
  cmARGB64PmulSpace , cmARGB64LPmulSpace , cmRGBA32PmulSpace = cmRGBAPmulSpace + cm32_8ColorPacking + cmAlphaLastPacking , cmRGBA64PmulSpace ,
  cmRGBA64LPmulSpace , cmCMYK32Space = cmCMYKSpace + cm32_8ColorPacking , cmCMYK64Space = cmCMYKSpace + cm64_16ColorPacking , cmCMYK64LSpace = cmCMYKSpace + cm64_16ColorPacking + cmLittleEndianPacking ,
  cmHSV32Space = cmHSVSpace + cmLong10ColorPacking , cmHLS32Space = cmHLSSpace + cmLong10ColorPacking , cmYXY32Space = cmYXYSpace + cmLong10ColorPacking , cmXYZ24Space = cmXYZSpace + cm24_8ColorPacking ,
  cmXYZ32Space = cmXYZSpace + cmLong10ColorPacking , cmXYZ48Space = cmXYZSpace + cm48_16ColorPacking , cmXYZ48LSpace = cmXYZSpace + cm48_16ColorPacking + cmLittleEndianPacking , cmLUV32Space = cmLUVSpace + cmLong10ColorPacking ,
  cmLAB24Space = cmLABSpace + cm24_8ColorPacking , cmLAB32Space = cmLABSpace + cmLong10ColorPacking , cmLAB48Space = cmLABSpace + cm48_16ColorPacking , cmLAB48LSpace = cmLABSpace + cm48_16ColorPacking + cmLittleEndianPacking ,
  cmGamutResult1Space = cmOneBitDirectPacking + cmGamutResultSpace , cmNamedIndexed32Space = cm32_32ColorPacking + cmNamedIndexedSpace , cmNamedIndexed32LSpace , cmMCFive8Space = cm40_8ColorPacking + cmMCFiveSpace ,
  cmMCSix8Space = cm48_8ColorPacking + cmMCSixSpace , cmMCSeven8Space = cm56_8ColorPacking + cmMCSevenSpace , cmMCEight8Space = cm64_8ColorPacking + cmMCEightSpace
}
 
enum  { cmUseDefaultChromaticAdaptation = 0 , cmLinearChromaticAdaptation = 1 , cmVonKriesChromaticAdaptation = 2 , cmBradfordChromaticAdaptation = 3 }
 
enum  { CS_MAX_PATH = 256 }
 
enum  {
  cmNoProfileBase = 0 , cmFileBasedProfile = 1 , cmHandleBasedProfile = 2 , cmPtrBasedProfile = 3 ,
  cmProcedureBasedProfile = 4 , cmPathBasedProfile = 5 , cmBufferBasedProfile = 6
}
 
enum  { cmOriginalProfileLocationSize = 2 + CS_MAX_PATH , cmCurrentProfileLocationSize = 2 + CS_MAX_PATH }
 
enum  { cmProfileIterateDataVersion1 = 0x00010000 , cmProfileIterateDataVersion2 = 0x00020000 , cmProfileIterateDataVersion3 = 0x00030000 }
 
enum  { uppCMProfileIterateProcInfo = 0x000003E0 }
 
enum  { uppCMMIterateProcInfo = 0x000003E0 }
 

Functions

typedef CALLBACK_API (OSErr, CMProfileIterateProcPtr)(CMProfileIterateData *iterateData
 
typedef CALLBACK_API (OSErr, CMMIterateProcPtr)(CMMInfo *iterateData
 
typedef STACK_UPP_TYPE (CMProfileIterateProcPtr) CMProfileIterateUPP
 
typedef STACK_UPP_TYPE (CMMIterateProcPtr) CMMIterateUPP
 
CMProfileIterateUPP NewCMProfileIterateUPP (CMProfileIterateProcPtr userRoutine)
 
CMMIterateUPP NewCMMIterateUPP (CMMIterateProcPtr userRoutine)
 
void DisposeCMProfileIterateUPP (CMProfileIterateUPP userUPP)
 
void DisposeCMMIterateUPP (CMMIterateUPP userUPP)
 
OSErr InvokeCMProfileIterateUPP (CMProfileIterateData *iterateData, void *refCon, CMProfileIterateUPP userUPP)
 
OSErr InvokeCMMIterateUPP (CMMInfo *iterateData, void *refCon, CMMIterateUPP userUPP)
 
CMError CMNewProfile (CMProfileRef *prof, const CMProfileLocation *theProfile)
 
CMError CMOpenProfile (CMProfileRef *prof, const CMProfileLocation *theProfile)
 
CMError CMCloseProfile (CMProfileRef prof)
 
CMError CMUpdateProfile (CMProfileRef prof)
 
CMError CMCopyProfile (CMProfileRef *targetProf, const CMProfileLocation *targetLocation, CMProfileRef srcProf)
 
CMError CMValidateProfile (CMProfileRef prof, Boolean *valid, Boolean *preferredCMMnotfound)
 
CMError CMGetProfileLocation (CMProfileRef prof, CMProfileLocation *theProfile)
 
CMError NCMGetProfileLocation (CMProfileRef prof, CMProfileLocation *theProfile, UInt32 *locationSize)
 
CMError CMFlattenProfile (CMProfileRef prof, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
 
CMError CMGetProfileHeader (CMProfileRef prof, CMAppleProfileHeader *header)
 
CMError CMSetProfileHeader (CMProfileRef prof, const CMAppleProfileHeader *header)
 
CMError CMProfileElementExists (CMProfileRef prof, OSType tag, Boolean *found)
 
CMError CMCountProfileElements (CMProfileRef prof, UInt32 *elementCount)
 
CMError CMGetProfileElement (CMProfileRef prof, OSType tag, UInt32 *elementSize, void *elementData)
 
CMError CMSetProfileElement (CMProfileRef prof, OSType tag, UInt32 elementSize, const void *elementData)
 
CMError CMSetProfileElementSize (CMProfileRef prof, OSType tag, UInt32 elementSize)
 
CMError CMSetProfileElementReference (CMProfileRef prof, OSType elementTag, OSType referenceTag)
 
CMError CMGetPartialProfileElement (CMProfileRef prof, OSType tag, UInt32 offset, UInt32 *byteCount, void *elementData)
 
CMError CMSetPartialProfileElement (CMProfileRef prof, OSType tag, UInt32 offset, UInt32 byteCount, const void *elementData)
 
CMError CMGetIndProfileElementInfo (CMProfileRef prof, UInt32 index, OSType *tag, UInt32 *elementSize, Boolean *refs)
 
CMError CMGetIndProfileElement (CMProfileRef prof, UInt32 index, UInt32 *elementSize, void *elementData)
 
CMError CMRemoveProfileElement (CMProfileRef prof, OSType tag)
 
CMError CMGetScriptProfileDescription (CMProfileRef prof, Str255 name, ScriptCode *code)
 
CMError CMGetProfileDescriptions (CMProfileRef prof, char *aName, UInt32 *aCount, Str255 mName, ScriptCode *mCode, UniChar *uName, UniCharCount *uCount)
 
CMError CMSetProfileDescriptions (CMProfileRef prof, const char *aName, UInt32 aCount, ConstStr255Param mName, ScriptCode mCode, const UniChar *uName, UniCharCount uCount)
 
CMError CMCopyProfileLocalizedStringDictionary (CMProfileRef prof, OSType tag, CFDictionaryRef *theDict)
 
CMError CMSetProfileLocalizedStringDictionary (CMProfileRef prof, OSType tag, CFDictionaryRef theDict)
 
CMError CMCopyProfileLocalizedString (CMProfileRef prof, OSType tag, CFStringRef reqLocale, CFStringRef *locale, CFStringRef *str)
 
CMError CMCloneProfileRef (CMProfileRef prof)
 
CMError CMGetProfileRefCount (CMProfileRef prof, long *count)
 
CMError CMProfileModified (CMProfileRef prof, Boolean *modified)
 
CMError CMGetProfileMD5 (CMProfileRef prof, CMProfileMD5 digest)
 
CMError CMGetNamedColorInfo (CMProfileRef prof, UInt32 *deviceChannels, OSType *deviceColorSpace, OSType *PCSColorSpace, UInt32 *count, StringPtr prefix, StringPtr suffix)
 
CMError CMGetNamedColorValue (CMProfileRef prof, StringPtr name, CMColor *deviceColor, CMColor *PCSColor)
 
CMError CMGetIndNamedColorValue (CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor)
 
CMError CMGetNamedColorIndex (CMProfileRef prof, StringPtr name, UInt32 *index)
 
CMError CMGetNamedColorName (CMProfileRef prof, UInt32 index, StringPtr name)
 
CMError NCWNewColorWorld (CMWorldRef *cw, CMProfileRef src, CMProfileRef dst)
 
CMError CWConcatColorWorld (CMWorldRef *cw, CMConcatProfileSet *profileSet)
 
CMError CWNewLinkProfile (CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
 
CMError NCWConcatColorWorld (CMWorldRef *cw, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
 
CMError NCWNewLinkProfile (CMProfileRef *prof, const CMProfileLocation *targetLocation, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
 
void CWDisposeColorWorld (CMWorldRef cw)
 
CMError CWMatchColors (CMWorldRef cw, CMColor *myColors, UInt32 count)
 
CMError CWCheckColors (CMWorldRef cw, CMColor *myColors, UInt32 count, UInt32 *result)
 
CMError CWMatchBitmap (CMWorldRef cw, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
 
CMError CWCheckBitmap (CMWorldRef cw, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
 
CMError CMCreateProfileIdentifier (CMProfileRef prof, CMProfileIdentifierPtr ident, UInt32 *size)
 
CMError CMGetSystemProfile (CMProfileRef *prof)
 
CMError CMSetSystemProfile (const FSSpec *profileFileSpec)
 
CMError NCMSetSystemProfile (const CMProfileLocation *profLoc)
 
CMError CMGetDefaultProfileBySpace (OSType dataColorSpace, CMProfileRef *prof)
 
CMError CMSetDefaultProfileBySpace (OSType dataColorSpace, CMProfileRef prof)
 
CMError CMGetDefaultProfileByUse (OSType use, CMProfileRef *prof)
 
CMError CMSetDefaultProfileByUse (OSType use, CMProfileRef prof)
 
CMError CMNewProfileSearch (CMSearchRecord *searchSpec, void *refCon, UInt32 *count, CMProfileSearchRef *searchResult)
 
CMError CMUpdateProfileSearch (CMProfileSearchRef search, void *refCon, UInt32 *count)
 
void CMDisposeProfileSearch (CMProfileSearchRef search)
 
CMError CMSearchGetIndProfile (CMProfileSearchRef search, UInt32 index, CMProfileRef *prof)
 
CMError CMSearchGetIndProfileFileSpec (CMProfileSearchRef search, UInt32 index, FSSpec *profileFile)
 
CMError CMProfileIdentifierFolderSearch (CMProfileIdentifierPtr ident, UInt32 *matchedCount, CMProfileSearchRef *searchResult)
 
CMError CMProfileIdentifierListSearch (CMProfileIdentifierPtr ident, CMProfileRef *profileList, UInt32 listSize, UInt32 *matchedCount, CMProfileRef *matchedList)
 
CMError CMIterateColorSyncFolder (CMProfileIterateUPP proc, UInt32 *seed, UInt32 *count, void *refCon)
 
CMError NCMUnflattenProfile (CMProfileLocation *targetLocation, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
 
CMError CMGetCWInfo (CMWorldRef cw, CMCWInfoRecord *info)
 
CMError CMGetPreferredCMM (OSType *cmmType, Boolean *preferredCMMnotfound)
 
CMError CMIterateCMMInfo (CMMIterateUPP proc, UInt32 *count, void *refCon)
 
CMError CMGetColorSyncVersion (UInt32 *version)
 
CMError CMLaunchControlPanel (UInt32 flags)
 
CMError CMConvertXYZToLab (const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
 
CMError CMConvertLabToXYZ (const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
 
CMError CMConvertXYZToLuv (const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
 
CMError CMConvertLuvToXYZ (const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
 
CMError CMConvertXYZToYxy (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertYxyToXYZ (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertRGBToHLS (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertHLSToRGB (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertRGBToHSV (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertHSVToRGB (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertRGBToGray (const CMColor *src, CMColor *dst, UInt32 count)
 
CMError CMConvertXYZToFixedXYZ (const CMXYZColor *src, CMFixedXYZColor *dst, UInt32 count)
 
CMError CMConvertFixedXYZToXYZ (const CMFixedXYZColor *src, CMXYZColor *dst, UInt32 count)
 
CMError CMConvertXYZToXYZ (const CMColor *src, const CMXYZColor *srcIlluminant, CMColor *dst, const CMXYZColor *dstIlluminant, CMChromaticAdaptation method, UInt32 count)
 
CMError CMGetPS2ColorSpace (CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
 
CMError CMGetPS2ColorRenderingIntent (CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
 
CMError CMGetPS2ColorRendering (CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
 
CMError CMGetPS2ColorRenderingVMSize (CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize, Boolean *preferredCMMnotfound)
 

Detailed Description

Color Matching Interfaces.

Introduced In: ColorSync 3.0
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1992-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Macro Definition Documentation

◆ InvokeCMMIterateUPP

#define InvokeCMMIterateUPP (   iterateData,
  refCon,
  userUPP 
)
Value:
(OSErr) CALL_TWO_PARAMETER_UPP((userUPP), uppCMMIterateProcInfo, \
(iterateData), (refCon))

◆ InvokeCMProfileIterateUPP

#define InvokeCMProfileIterateUPP (   iterateData,
  refCon,
  userUPP 
)
Value:
(OSErr) CALL_TWO_PARAMETER_UPP((userUPP), uppCMProfileIterateProcInfo, \
(iterateData), (refCon))

◆ NewCMMIterateUPP

#define NewCMMIterateUPP (   userRoutine)
Value:
(CMMIterateUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppCMMIterateProcInfo, GetCurrentArchitecture())
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)

◆ NewCMProfileIterateUPP

#define NewCMProfileIterateUPP (   userRoutine)
Value:
(CMProfileIterateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
uppCMProfileIterateProcInfo, \
GetCurrentArchitecture())

Function Documentation

◆ CMCloneProfileRef()

CMError CMCloneProfileRef ( CMProfileRef  prof)

CMCloneProfileRef()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMCloseProfile()

CMError CMCloseProfile ( CMProfileRef  prof)

CMCloseProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertFixedXYZToXYZ()

CMError CMConvertFixedXYZToXYZ ( const CMFixedXYZColor src,
CMXYZColor dst,
UInt32  count 
)

CMConvertFixedXYZToXYZ()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertHLSToRGB()

CMError CMConvertHLSToRGB ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertHLSToRGB()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertHSVToRGB()

CMError CMConvertHSVToRGB ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertHSVToRGB()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertLabToXYZ()

CMError CMConvertLabToXYZ ( const CMColor src,
const CMXYZColor white,
CMColor dst,
UInt32  count 
)

CMConvertLabToXYZ()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertLuvToXYZ()

CMError CMConvertLuvToXYZ ( const CMColor src,
const CMXYZColor white,
CMColor dst,
UInt32  count 
)

CMConvertLuvToXYZ()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertRGBToGray()

CMError CMConvertRGBToGray ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertRGBToGray()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertRGBToHLS()

CMError CMConvertRGBToHLS ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertRGBToHLS()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertRGBToHSV()

CMError CMConvertRGBToHSV ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertRGBToHSV()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertXYZToFixedXYZ()

CMError CMConvertXYZToFixedXYZ ( const CMXYZColor src,
CMFixedXYZColor dst,
UInt32  count 
)

CMConvertXYZToFixedXYZ()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertXYZToLab()

CMError CMConvertXYZToLab ( const CMColor src,
const CMXYZColor white,
CMColor dst,
UInt32  count 
)

CMConvertXYZToLab()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertXYZToLuv()

CMError CMConvertXYZToLuv ( const CMColor src,
const CMXYZColor white,
CMColor dst,
UInt32  count 
)

CMConvertXYZToLuv()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertXYZToXYZ()

CMError CMConvertXYZToXYZ ( const CMColor src,
const CMXYZColor srcIlluminant,
CMColor dst,
const CMXYZColor dstIlluminant,
CMChromaticAdaptation  method,
UInt32  count 
)

CMConvertXYZToXYZ()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in 3.1 and later

◆ CMConvertXYZToYxy()

CMError CMConvertXYZToYxy ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertXYZToYxy()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMConvertYxyToXYZ()

CMError CMConvertYxyToXYZ ( const CMColor src,
CMColor dst,
UInt32  count 
)

CMConvertYxyToXYZ()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMCopyProfile()

CMError CMCopyProfile ( CMProfileRef *  targetProf,
const CMProfileLocation targetLocation,
CMProfileRef  srcProf 
)

CMCopyProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMCopyProfileLocalizedString()

CMError CMCopyProfileLocalizedString ( CMProfileRef  prof,
OSType  tag,
CFStringRef  reqLocale,
CFStringRef *  locale,
CFStringRef *  str 
)

CMCopyProfileLocalizedString()

Non-Carbon CFM: in ColorSyncLib 3.1 and later
Carbon Lib: not available
Mac OS X: in 3.1 and later

◆ CMCopyProfileLocalizedStringDictionary()

CMError CMCopyProfileLocalizedStringDictionary ( CMProfileRef  prof,
OSType  tag,
CFDictionaryRef *  theDict 
)

CMCopyProfileLocalizedStringDictionary()

Non-Carbon CFM: in ColorSyncLib 3.1 and later
Carbon Lib: not available
Mac OS X: in 3.1 and later

◆ CMCountProfileElements()

CMError CMCountProfileElements ( CMProfileRef  prof,
UInt32 *  elementCount 
)

CMCountProfileElements()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMCreateProfileIdentifier()

CMError CMCreateProfileIdentifier ( CMProfileRef  prof,
CMProfileIdentifierPtr  ident,
UInt32 *  size 
)

CMCreateProfileIdentifier()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMDisposeProfileSearch()

void CMDisposeProfileSearch ( CMProfileSearchRef  search)

CMDisposeProfileSearch()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMFlattenProfile()

CMError CMFlattenProfile ( CMProfileRef  prof,
UInt32  flags,
CMFlattenUPP  proc,
void *  refCon,
Boolean preferredCMMnotfound 
)

CMFlattenProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetColorSyncVersion()

CMError CMGetColorSyncVersion ( UInt32 *  version)

CMGetColorSyncVersion()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetCWInfo()

CMError CMGetCWInfo ( CMWorldRef  cw,
CMCWInfoRecord info 
)

CMGetCWInfo()

Non-Carbon CFM: in ColorSyncLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetDefaultProfileBySpace()

CMError CMGetDefaultProfileBySpace ( OSType  dataColorSpace,
CMProfileRef *  prof 
)

CMGetDefaultProfileBySpace()

Non-Carbon CFM: in ColorSyncLib 2.5 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetDefaultProfileByUse()

CMError CMGetDefaultProfileByUse ( OSType  use,
CMProfileRef *  prof 
)

CMGetDefaultProfileByUse()

Non-Carbon CFM: in ColorSyncLib 3.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetIndNamedColorValue()

CMError CMGetIndNamedColorValue ( CMProfileRef  prof,
UInt32  index,
CMColor deviceColor,
CMColor PCSColor 
)

CMGetIndNamedColorValue()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetIndProfileElement()

CMError CMGetIndProfileElement ( CMProfileRef  prof,
UInt32  index,
UInt32 *  elementSize,
void *  elementData 
)

CMGetIndProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetIndProfileElementInfo()

CMError CMGetIndProfileElementInfo ( CMProfileRef  prof,
UInt32  index,
OSType *  tag,
UInt32 *  elementSize,
Boolean refs 
)

CMGetIndProfileElementInfo()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetNamedColorIndex()

CMError CMGetNamedColorIndex ( CMProfileRef  prof,
StringPtr  name,
UInt32 *  index 
)

CMGetNamedColorIndex()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetNamedColorInfo()

CMError CMGetNamedColorInfo ( CMProfileRef  prof,
UInt32 *  deviceChannels,
OSType *  deviceColorSpace,
OSType *  PCSColorSpace,
UInt32 *  count,
StringPtr  prefix,
StringPtr  suffix 
)

CMGetNamedColorInfo()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetNamedColorName()

CMError CMGetNamedColorName ( CMProfileRef  prof,
UInt32  index,
StringPtr  name 
)

CMGetNamedColorName()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetNamedColorValue()

CMError CMGetNamedColorValue ( CMProfileRef  prof,
StringPtr  name,
CMColor deviceColor,
CMColor PCSColor 
)

CMGetNamedColorValue()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPartialProfileElement()

CMError CMGetPartialProfileElement ( CMProfileRef  prof,
OSType  tag,
UInt32  offset,
UInt32 *  byteCount,
void *  elementData 
)

CMGetPartialProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPreferredCMM()

CMError CMGetPreferredCMM ( OSType *  cmmType,
Boolean preferredCMMnotfound 
)

CMGetPreferredCMM()

Non-Carbon CFM: in ColorSyncLib 2.5 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetProfileDescriptions()

CMError CMGetProfileDescriptions ( CMProfileRef  prof,
char *  aName,
UInt32 *  aCount,
Str255  mName,
ScriptCode *  mCode,
UniChar *  uName,
UniCharCount *  uCount 
)

CMGetProfileDescriptions()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetProfileElement()

CMError CMGetProfileElement ( CMProfileRef  prof,
OSType  tag,
UInt32 *  elementSize,
void *  elementData 
)

CMGetProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetProfileHeader()

CMError CMGetProfileHeader ( CMProfileRef  prof,
CMAppleProfileHeader header 
)

CMGetProfileHeader()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetProfileLocation()

CMError CMGetProfileLocation ( CMProfileRef  prof,
CMProfileLocation theProfile 
)

CMGetProfileLocation()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetProfileMD5()

CMError CMGetProfileMD5 ( CMProfileRef  prof,
CMProfileMD5  digest 
)

CMGetProfileMD5()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in 3.1 and later

◆ CMGetProfileRefCount()

CMError CMGetProfileRefCount ( CMProfileRef  prof,
long *  count 
)

CMGetProfileRefCount()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPS2ColorRendering()

CMError CMGetPS2ColorRendering ( CMProfileRef  srcProf,
CMProfileRef  dstProf,
UInt32  flags,
CMFlattenUPP  proc,
void *  refCon,
Boolean preferredCMMnotfound 
)

CMGetPS2ColorRendering()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPS2ColorRenderingIntent()

CMError CMGetPS2ColorRenderingIntent ( CMProfileRef  srcProf,
UInt32  flags,
CMFlattenUPP  proc,
void *  refCon,
Boolean preferredCMMnotfound 
)

CMGetPS2ColorRenderingIntent()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPS2ColorRenderingVMSize()

CMError CMGetPS2ColorRenderingVMSize ( CMProfileRef  srcProf,
CMProfileRef  dstProf,
UInt32 *  vmSize,
Boolean preferredCMMnotfound 
)

CMGetPS2ColorRenderingVMSize()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetPS2ColorSpace()

CMError CMGetPS2ColorSpace ( CMProfileRef  srcProf,
UInt32  flags,
CMFlattenUPP  proc,
void *  refCon,
Boolean preferredCMMnotfound 
)

CMGetPS2ColorSpace()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetScriptProfileDescription()

CMError CMGetScriptProfileDescription ( CMProfileRef  prof,
Str255  name,
ScriptCode *  code 
)

CMGetScriptProfileDescription()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMGetSystemProfile()

CMError CMGetSystemProfile ( CMProfileRef *  prof)

CMGetSystemProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMIterateCMMInfo()

CMError CMIterateCMMInfo ( CMMIterateUPP  proc,
UInt32 *  count,
void *  refCon 
)

CMIterateCMMInfo()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMIterateColorSyncFolder()

CMError CMIterateColorSyncFolder ( CMProfileIterateUPP  proc,
UInt32 *  seed,
UInt32 *  count,
void *  refCon 
)

CMIterateColorSyncFolder()

Non-Carbon CFM: in ColorSyncLib 2.5 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMLaunchControlPanel()

CMError CMLaunchControlPanel ( UInt32  flags)

CMLaunchControlPanel()

Non-Carbon CFM: in ColorSyncLib 3.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMNewProfile()

CMError CMNewProfile ( CMProfileRef *  prof,
const CMProfileLocation theProfile 
)

CMNewProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMNewProfileSearch()

CMError CMNewProfileSearch ( CMSearchRecord searchSpec,
void *  refCon,
UInt32 *  count,
CMProfileSearchRef *  searchResult 
)

CMNewProfileSearch()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMOpenProfile()

CMError CMOpenProfile ( CMProfileRef *  prof,
const CMProfileLocation theProfile 
)

CMOpenProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMProfileElementExists()

CMError CMProfileElementExists ( CMProfileRef  prof,
OSType  tag,
Boolean found 
)

CMProfileElementExists()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMProfileIdentifierFolderSearch()

CMError CMProfileIdentifierFolderSearch ( CMProfileIdentifierPtr  ident,
UInt32 *  matchedCount,
CMProfileSearchRef *  searchResult 
)

CMProfileIdentifierFolderSearch()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMProfileIdentifierListSearch()

CMError CMProfileIdentifierListSearch ( CMProfileIdentifierPtr  ident,
CMProfileRef *  profileList,
UInt32  listSize,
UInt32 *  matchedCount,
CMProfileRef *  matchedList 
)

CMProfileIdentifierListSearch()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMProfileModified()

CMError CMProfileModified ( CMProfileRef  prof,
Boolean modified 
)

CMProfileModified()

Non-Carbon CFM: in ColorSyncLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMRemoveProfileElement()

CMError CMRemoveProfileElement ( CMProfileRef  prof,
OSType  tag 
)

CMRemoveProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSearchGetIndProfile()

CMError CMSearchGetIndProfile ( CMProfileSearchRef  search,
UInt32  index,
CMProfileRef *  prof 
)

CMSearchGetIndProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSearchGetIndProfileFileSpec()

CMError CMSearchGetIndProfileFileSpec ( CMProfileSearchRef  search,
UInt32  index,
FSSpec *  profileFile 
)

CMSearchGetIndProfileFileSpec()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetDefaultProfileBySpace()

CMError CMSetDefaultProfileBySpace ( OSType  dataColorSpace,
CMProfileRef  prof 
)

CMSetDefaultProfileBySpace()

Non-Carbon CFM: in ColorSyncLib 2.5 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetDefaultProfileByUse()

CMError CMSetDefaultProfileByUse ( OSType  use,
CMProfileRef  prof 
)

CMSetDefaultProfileByUse()

Non-Carbon CFM: in ColorSyncLib 3.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetPartialProfileElement()

CMError CMSetPartialProfileElement ( CMProfileRef  prof,
OSType  tag,
UInt32  offset,
UInt32  byteCount,
const void *  elementData 
)

CMSetPartialProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileDescriptions()

CMError CMSetProfileDescriptions ( CMProfileRef  prof,
const char *  aName,
UInt32  aCount,
ConstStr255Param  mName,
ScriptCode  mCode,
const UniChar *  uName,
UniCharCount  uCount 
)

CMSetProfileDescriptions()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileElement()

CMError CMSetProfileElement ( CMProfileRef  prof,
OSType  tag,
UInt32  elementSize,
const void *  elementData 
)

CMSetProfileElement()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileElementReference()

CMError CMSetProfileElementReference ( CMProfileRef  prof,
OSType  elementTag,
OSType  referenceTag 
)

CMSetProfileElementReference()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileElementSize()

CMError CMSetProfileElementSize ( CMProfileRef  prof,
OSType  tag,
UInt32  elementSize 
)

CMSetProfileElementSize()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileHeader()

CMError CMSetProfileHeader ( CMProfileRef  prof,
const CMAppleProfileHeader header 
)

CMSetProfileHeader()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMSetProfileLocalizedStringDictionary()

CMError CMSetProfileLocalizedStringDictionary ( CMProfileRef  prof,
OSType  tag,
CFDictionaryRef  theDict 
)

CMSetProfileLocalizedStringDictionary()

Non-Carbon CFM: in ColorSyncLib 3.1 and later
Carbon Lib: not available
Mac OS X: in 3.1 and later

◆ CMSetSystemProfile()

CMError CMSetSystemProfile ( const FSSpec *  profileFileSpec)

CMSetSystemProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMUpdateProfile()

CMError CMUpdateProfile ( CMProfileRef  prof)

CMUpdateProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMUpdateProfileSearch()

CMError CMUpdateProfileSearch ( CMProfileSearchRef  search,
void *  refCon,
UInt32 *  count 
)

CMUpdateProfileSearch()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CMValidateProfile()

CMError CMValidateProfile ( CMProfileRef  prof,
Boolean valid,
Boolean preferredCMMnotfound 
)

CMValidateProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWCheckBitmap()

CMError CWCheckBitmap ( CMWorldRef  cw,
const CMBitmap bitmap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
CMBitmap resultBitmap 
)

CWCheckBitmap()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWCheckColors()

CMError CWCheckColors ( CMWorldRef  cw,
CMColor myColors,
UInt32  count,
UInt32 *  result 
)

CWCheckColors()

Non-Carbon CFM: in ColorSyncLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWConcatColorWorld()

CMError CWConcatColorWorld ( CMWorldRef *  cw,
CMConcatProfileSet profileSet 
)

CWConcatColorWorld()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWDisposeColorWorld()

void CWDisposeColorWorld ( CMWorldRef  cw)

CWDisposeColorWorld()

Non-Carbon CFM: in ColorSyncLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWMatchBitmap()

CMError CWMatchBitmap ( CMWorldRef  cw,
CMBitmap bitmap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
CMBitmap matchedBitmap 
)

CWMatchBitmap()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWMatchColors()

CMError CWMatchColors ( CMWorldRef  cw,
CMColor myColors,
UInt32  count 
)

CWMatchColors()

Non-Carbon CFM: in ColorSyncLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ CWNewLinkProfile()

CMError CWNewLinkProfile ( CMProfileRef *  prof,
const CMProfileLocation targetLocation,
CMConcatProfileSet profileSet 
)

CWNewLinkProfile()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ DisposeCMMIterateUPP()

void DisposeCMMIterateUPP ( CMMIterateUPP  userUPP)

DisposeCMMIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ DisposeCMProfileIterateUPP()

void DisposeCMProfileIterateUPP ( CMProfileIterateUPP  userUPP)

DisposeCMProfileIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ InvokeCMMIterateUPP()

OSErr InvokeCMMIterateUPP ( CMMInfo iterateData,
void *  refCon,
CMMIterateUPP  userUPP 
)

InvokeCMMIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ InvokeCMProfileIterateUPP()

OSErr InvokeCMProfileIterateUPP ( CMProfileIterateData iterateData,
void *  refCon,
CMProfileIterateUPP  userUPP 
)

InvokeCMProfileIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCMGetProfileLocation()

CMError NCMGetProfileLocation ( CMProfileRef  prof,
CMProfileLocation theProfile,
UInt32 *  locationSize 
)

NCMGetProfileLocation()

Non-Carbon CFM: in ColorSyncLib 2.5 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCMSetSystemProfile()

CMError NCMSetSystemProfile ( const CMProfileLocation profLoc)

NCMSetSystemProfile()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCMUnflattenProfile()

CMError NCMUnflattenProfile ( CMProfileLocation targetLocation,
CMFlattenUPP  proc,
void *  refCon,
Boolean preferredCMMnotfound 
)

NCMUnflattenProfile()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCWConcatColorWorld()

CMError NCWConcatColorWorld ( CMWorldRef *  cw,
NCMConcatProfileSet profileSet,
CMConcatCallBackUPP  proc,
void *  refCon 
)

NCWConcatColorWorld()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCWNewColorWorld()

CMError NCWNewColorWorld ( CMWorldRef *  cw,
CMProfileRef  src,
CMProfileRef  dst 
)

NCWNewColorWorld()

Non-Carbon CFM: in ColorSyncLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NCWNewLinkProfile()

CMError NCWNewLinkProfile ( CMProfileRef *  prof,
const CMProfileLocation targetLocation,
NCMConcatProfileSet profileSet,
CMConcatCallBackUPP  proc,
void *  refCon 
)

NCWNewLinkProfile()

Non-Carbon CFM: in ColorSyncLib 2.6 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NewCMMIterateUPP()

CMMIterateUPP NewCMMIterateUPP ( CMMIterateProcPtr  userRoutine)

NewCMMIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later

◆ NewCMProfileIterateUPP()

CMProfileIterateUPP NewCMProfileIterateUPP ( CMProfileIterateProcPtr  userRoutine)

NewCMProfileIterateUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in 3.0 and later