19 #ifndef __CMAPPLICATION__
20 #define __CMAPPLICATION__
30 #ifndef __CMICCPROFILE__
46 #ifndef __CFDICTIONARY__
47 #include <CFDictionary.h>
50 #define _DECLARE_CS_QD_API_ 1
55 #if TARGET_API_MAC_OS8
79 #if PRAGMA_STRUCT_ALIGN
80 #pragma options align = mac68k
81 #elif PRAGMA_STRUCT_PACKPUSH
83 #elif PRAGMA_STRUCT_PACK
89 kDefaultCMMSignature = FOUR_CHAR_CODE(
'appl')
101 cmBeginProfile = 220,
103 cmEnableMatching = 222,
104 cmDisableMatching = 223,
111 cmBeginProfileSel = 0,
112 cmContinueProfileSel = 1,
114 cmProfileIdentifierSel = 3
120 cmMatchCMMType = 0x00000001,
121 cmMatchApplProfileVersion = 0x00000002,
122 cmMatchDataType = 0x00000004,
123 cmMatchDeviceType = 0x00000008,
124 cmMatchDeviceManufacturer = 0x00000010,
125 cmMatchDeviceModel = 0x00000020,
126 cmMatchDeviceAttributes = 0x00000040,
127 cmMatchFlags = 0x00000080,
128 cmMatchOptions = 0x00000100,
129 cmMatchWhite = 0x00000200,
130 cmMatchBlack = 0x00000400
136 cmMatchAnyProfile = 0x00000000,
137 cmMatchProfileCMMType = 0x00000001,
138 cmMatchProfileClass = 0x00000002,
139 cmMatchDataColorSpace = 0x00000004,
140 cmMatchProfileConnectionSpace = 0x00000008,
141 cmMatchManufacturer = 0x00000010,
142 cmMatchModel = 0x00000020,
143 cmMatchAttributes = 0x00000040,
144 cmMatchProfileFlags = 0x00000080
157 cmEmbedWholeProfile = 0x00000000,
158 cmEmbedProfileIdentifier = 0x00000001
165 cmOpenWriteSpool = 2,
174 cmOpenReadAccess = 1,
175 cmOpenWriteAccess = 2,
179 cmCreateNewAccess = 6,
180 cmAbortWriteAccess = 7,
188 cmInputUse = FOUR_CHAR_CODE(
'inpt'),
189 cmOutputUse = FOUR_CHAR_CODE(
'outp'),
190 cmDisplayUse = FOUR_CHAR_CODE(
'dply'),
191 cmProofUse = FOUR_CHAR_CODE(
'pruf')
206 CMProfileRef profileSet[1];
212 UInt32 renderingIntent;
234 kDeviceToPCS = kUseAtoB,
235 kPCSToDevice = kUseBtoA,
236 kPCSToPCS = kUseBtoB,
326 UInt32 namedColorIndex;
363 OSType dataColorSpace;
364 OSType profileConnectionSpace;
365 UInt32 deviceManufacturer;
367 UInt32 deviceAttributes[2];
370 CMProfileFilterUPP filter;
380 unsigned char ASCIIName[32];
381 unsigned char ASCIIDesc[256];
382 UniCharCount UniCodeNameCount;
383 UniChar UniCodeName[32];
384 UniCharCount UniCodeDescCount;
385 UniChar UniCodeDesc[256];
406 UInt32 ASCIIProfileDescriptionLen;
407 char ASCIIProfileDescription[1];
414 cmColorSpaceSpaceMask = 0x0000003F,
415 cmColorSpacePremulAlphaMask = 0x00000040,
416 cmColorSpaceAlphaMask = 0x00000080,
417 cmColorSpaceSpaceAndAlphaMask = 0x000000FF,
418 cmColorSpacePackingMask = 0x0000FF00,
419 cmColorSpaceEncodingMask = 0x000F0000,
420 cmColorSpaceReservedMask = (long)0xFFF00000
426 cmNoColorPacking = 0x0000,
427 cmWord5ColorPacking = 0x0500,
428 cmWord565ColorPacking = 0x0600,
429 cmLong8ColorPacking = 0x0800,
430 cmLong10ColorPacking = 0x0A00,
431 cmAlphaFirstPacking = 0x1000,
432 cmOneBitDirectPacking = 0x0B00,
433 cmAlphaLastPacking = 0x0000,
434 cm8_8ColorPacking = 0x2800,
435 cm16_8ColorPacking = 0x2000,
436 cm24_8ColorPacking = 0x2100,
437 cm32_8ColorPacking = cmLong8ColorPacking,
438 cm40_8ColorPacking = 0x2200,
439 cm48_8ColorPacking = 0x2300,
440 cm56_8ColorPacking = 0x2400,
441 cm64_8ColorPacking = 0x2500,
442 cm32_16ColorPacking = 0x2600,
443 cm48_16ColorPacking = 0x2900,
444 cm64_16ColorPacking = 0x2A00,
445 cm32_32ColorPacking = 0x2700,
446 cmLittleEndianPacking = 0x4000,
447 cmReverseChannelPacking = 0x8000
453 cmSRGB16ChannelEncoding =
462 cmCMYKSpace = 0x0002,
469 cmReservedSpace1 = 0x0009,
470 cmGraySpace = 0x000A,
471 cmReservedSpace2 = 0x000B,
472 cmGamutResultSpace = 0x000C,
473 cmNamedIndexedSpace = 0x0010,
474 cmMCFiveSpace = 0x0011,
475 cmMCSixSpace = 0x0012,
476 cmMCSevenSpace = 0x0013,
477 cmMCEightSpace = 0x0014,
478 cmAlphaPmulSpace = 0x0040,
479 cmAlphaSpace = 0x0080,
480 cmRGBASpace = cmRGBSpace + cmAlphaSpace,
481 cmGrayASpace = cmGraySpace + cmAlphaSpace,
482 cmRGBAPmulSpace = cmRGBASpace + cmAlphaPmulSpace,
483 cmGrayAPmulSpace = cmGrayASpace + cmAlphaPmulSpace
491 cmGray8Space = cmGraySpace + cm8_8ColorPacking,
492 cmGray16Space = cmGraySpace,
493 cmGray16LSpace = cmGraySpace + cmLittleEndianPacking,
494 cmGrayA16Space = cmGrayASpace + cm16_8ColorPacking,
495 cmGrayA32Space = cmGrayASpace,
496 cmGrayA32LSpace = cmGrayASpace + cmLittleEndianPacking,
497 cmGrayA16PmulSpace = cmGrayAPmulSpace + cm16_8ColorPacking,
498 cmGrayA32PmulSpace = cmGrayAPmulSpace,
499 cmGrayA32LPmulSpace = cmGrayAPmulSpace + cmLittleEndianPacking,
500 cmRGB16Space = cmRGBSpace + cmWord5ColorPacking,
501 cmRGB16LSpace = cmRGBSpace + cmWord5ColorPacking + cmLittleEndianPacking,
502 cmRGB565Space = cmRGBSpace + cmWord565ColorPacking,
503 cmRGB565LSpace = cmRGBSpace + cmWord565ColorPacking + cmLittleEndianPacking,
504 cmRGB24Space = cmRGBSpace + cm24_8ColorPacking,
505 cmRGB32Space = cmRGBSpace + cm32_8ColorPacking,
506 cmRGB48Space = cmRGBSpace + cm48_16ColorPacking,
507 cmRGB48LSpace = cmRGBSpace + cm48_16ColorPacking + cmLittleEndianPacking,
508 cmARGB32Space = cmRGBASpace + cm32_8ColorPacking + cmAlphaFirstPacking,
509 cmARGB64Space = cmRGBASpace + cm64_16ColorPacking + cmAlphaFirstPacking,
510 cmARGB64LSpace = cmRGBASpace + cm64_16ColorPacking + cmAlphaFirstPacking +
511 cmLittleEndianPacking,
512 cmRGBA32Space = cmRGBASpace + cm32_8ColorPacking + cmAlphaLastPacking,
513 cmRGBA64Space = cmRGBASpace + cm64_16ColorPacking + cmAlphaLastPacking,
514 cmRGBA64LSpace = cmRGBASpace + cm64_16ColorPacking + cmAlphaLastPacking +
515 cmLittleEndianPacking,
517 cmRGBAPmulSpace + cm32_8ColorPacking + cmAlphaFirstPacking,
519 cmRGBAPmulSpace + cm64_16ColorPacking + cmAlphaFirstPacking,
520 cmARGB64LPmulSpace = cmRGBAPmulSpace + cm64_16ColorPacking +
521 cmAlphaFirstPacking + cmLittleEndianPacking,
522 cmRGBA32PmulSpace = cmRGBAPmulSpace + cm32_8ColorPacking + cmAlphaLastPacking,
524 cmRGBAPmulSpace + cm64_16ColorPacking + cmAlphaLastPacking,
525 cmRGBA64LPmulSpace = cmRGBAPmulSpace + cm64_16ColorPacking +
526 cmAlphaLastPacking + cmLittleEndianPacking,
527 cmCMYK32Space = cmCMYKSpace + cm32_8ColorPacking,
528 cmCMYK64Space = cmCMYKSpace + cm64_16ColorPacking,
529 cmCMYK64LSpace = cmCMYKSpace + cm64_16ColorPacking + cmLittleEndianPacking,
530 cmHSV32Space = cmHSVSpace + cmLong10ColorPacking,
531 cmHLS32Space = cmHLSSpace + cmLong10ColorPacking,
532 cmYXY32Space = cmYXYSpace + cmLong10ColorPacking,
533 cmXYZ24Space = cmXYZSpace + cm24_8ColorPacking,
534 cmXYZ32Space = cmXYZSpace + cmLong10ColorPacking,
535 cmXYZ48Space = cmXYZSpace + cm48_16ColorPacking,
536 cmXYZ48LSpace = cmXYZSpace + cm48_16ColorPacking + cmLittleEndianPacking,
537 cmLUV32Space = cmLUVSpace + cmLong10ColorPacking,
538 cmLAB24Space = cmLABSpace + cm24_8ColorPacking,
539 cmLAB32Space = cmLABSpace + cmLong10ColorPacking,
540 cmLAB48Space = cmLABSpace + cm48_16ColorPacking,
541 cmLAB48LSpace = cmLABSpace + cm48_16ColorPacking + cmLittleEndianPacking,
542 cmGamutResult1Space = cmOneBitDirectPacking + cmGamutResultSpace,
543 cmNamedIndexed32Space = cm32_32ColorPacking + cmNamedIndexedSpace,
544 cmNamedIndexed32LSpace =
545 cm32_32ColorPacking + cmNamedIndexedSpace + cmLittleEndianPacking,
546 cmMCFive8Space = cm40_8ColorPacking + cmMCFiveSpace,
547 cmMCSix8Space = cm48_8ColorPacking + cmMCSixSpace,
548 cmMCSeven8Space = cm56_8ColorPacking + cmMCSevenSpace,
549 cmMCEight8Space = cm64_8ColorPacking + cmMCEightSpace
552 typedef UInt32 CMBitmapColorSpace;
560 CMBitmapColorSpace space;
567 typedef UInt32 CMChromaticAdaptation;
570 cmUseDefaultChromaticAdaptation = 0,
571 cmLinearChromaticAdaptation = 1,
572 cmVonKriesChromaticAdaptation = 2,
573 cmBradfordChromaticAdaptation = 3
585 cmFileBasedProfile = 1,
586 cmHandleBasedProfile = 2,
587 cmPtrBasedProfile = 3,
588 cmProcedureBasedProfile = 4,
589 cmPathBasedProfile = 5,
590 cmBufferBasedProfile = 6
610 CMProfileAccessUPP proc;
644 cmOriginalProfileLocationSize = 72,
645 cmCurrentProfileLocationSize = 2 + CS_MAX_PATH
651 cmOriginalProfileLocationSize = 2 + CS_MAX_PATH,
652 cmCurrentProfileLocationSize = 2 + CS_MAX_PATH
659 typedef unsigned char CMProfileMD5[16];
660 typedef CMProfileMD5 *CMProfileMD5Ptr;
664 cmProfileIterateDataVersion1 = 0x00010000,
665 cmProfileIterateDataVersion2 = 0x00020000,
666 cmProfileIterateDataVersion3 = 0x00030000
676 UniCharCount uniCodeNameCount;
677 UniChar *uniCodeName;
678 unsigned char *asciiName;
680 CMProfileMD5 *digest;
684 typedef CALLBACK_API(OSErr,
687 typedef CALLBACK_API(OSErr, CMMIterateProcPtr)(
CMMInfo *iterateData,
689 typedef STACK_UPP_TYPE(CMProfileIterateProcPtr) CMProfileIterateUPP;
701 #if !OPAQUE_UPP_TYPES
704 uppCMProfileIterateProcInfo = 0x000003E0
707 inline CMProfileIterateUPP
711 uppCMProfileIterateProcInfo,
712 GetCurrentArchitecture());
715 #define NewCMProfileIterateUPP(userRoutine) \
716 (CMProfileIterateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
717 uppCMProfileIterateProcInfo, \
718 GetCurrentArchitecture())
732 #if !OPAQUE_UPP_TYPES
735 uppCMMIterateProcInfo = 0x000003E0
741 (ProcPtr)(userRoutine), uppCMMIterateProcInfo, GetCurrentArchitecture());
744 #define NewCMMIterateUPP(userRoutine) \
745 (CMMIterateUPP) NewRoutineDescriptor( \
746 (ProcPtr)(userRoutine), uppCMMIterateProcInfo, GetCurrentArchitecture())
760 #if !OPAQUE_UPP_TYPES
767 #define DisposeCMProfileIterateUPP(userUPP) DisposeRoutineDescriptor(userUPP)
781 #if !OPAQUE_UPP_TYPES
788 #define DisposeCMMIterateUPP(userUPP) DisposeRoutineDescriptor(userUPP)
802 CMProfileIterateUPP userUPP);
803 #if !OPAQUE_UPP_TYPES
807 CMProfileIterateUPP userUPP)
809 return (OSErr)CALL_TWO_PARAMETER_UPP(userUPP, uppCMProfileIterateProcInfo,
810 iterateData, refCon);
813 #define InvokeCMProfileIterateUPP(iterateData, refCon, userUPP) \
814 (OSErr) CALL_TWO_PARAMETER_UPP((userUPP), uppCMProfileIterateProcInfo, \
815 (iterateData), (refCon))
829 #if !OPAQUE_UPP_TYPES
832 CMMIterateUPP userUPP)
834 return (OSErr)CALL_TWO_PARAMETER_UPP(userUPP, uppCMMIterateProcInfo,
835 iterateData, refCon);
838 #define InvokeCMMIterateUPP(iterateData, refCon, userUPP) \
839 (OSErr) CALL_TWO_PARAMETER_UPP((userUPP), uppCMMIterateProcInfo, \
840 (iterateData), (refCon))
844 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
846 #define NewCMProfileIterateProc(userRoutine) NewCMProfileIterateUPP(userRoutine)
847 #define NewCMMIterateProc(userRoutine) NewCMMIterateUPP(userRoutine)
848 #define CallCMProfileIterateProc(userRoutine, iterateData, refCon) \
849 InvokeCMProfileIterateUPP(iterateData, refCon, userRoutine)
850 #define CallCMMIterateProc(userRoutine, iterateData, refCon) \
851 InvokeCMMIterateUPP(iterateData, refCon, userRoutine)
909 CMProfileRef srcProf);
921 Boolean *preferredCMMnotfound);
944 UInt32 *locationSize);
956 void *refCon,
Boolean *preferredCMMnotfound);
959 #if CALL_NOT_IN_CARBON
969 CMUnflattenProfile(FSSpec *resultFileSpec, CMFlattenUPP proc,
void *refCon,
970 Boolean *preferredCMMnotfound);
1042 const void *elementData);
1065 OSType referenceTag);
1077 UInt32 *byteCount,
void *elementData);
1089 UInt32 byteCount,
const void *elementData);
1101 UInt32 *elementSize,
Boolean *refs);
1147 Str255 mName, ScriptCode *mCode, UniChar *uName,
1148 UniCharCount *uCount);
1160 ConstStr255Param mName, ScriptCode mCode,
1161 const UniChar *uName, UniCharCount uCount);
1173 CFDictionaryRef *theDict);
1185 CFDictionaryRef theDict);
1197 CFStringRef reqLocale, CFStringRef *locale,
1255 OSType *deviceColorSpace, OSType *PCSColorSpace,
1349 CMConcatCallBackUPP proc,
void *refCon);
1407 void *refCon,
CMBitmap *matchedBitmap);
1419 CMBitmapCallBackUPP progressProc,
void *refCon,
1423 #if TARGET_OS_MAC && _DECLARE_CS_QD_API_
1433 CWMatchPixMap(CMWorldRef cw,
PixMap *myPixMap, CMBitmapCallBackUPP progressProc,
1445 CWCheckPixMap(CMWorldRef cw,
PixMap *myPixMap, CMBitmapCallBackUPP progressProc,
1446 void *refCon,
BitMap *resultBitMap);
1457 NCMBeginMatching(CMProfileRef src, CMProfileRef dst, CMMatchRef *myRef);
1468 CMEndMatching(CMMatchRef myRef);
1479 NCMDrawMatchedPicture(
PicHandle myPicture, CMProfileRef dst,
Rect *myRect);
1490 CMEnableMatchingComment(
Boolean enableIt);
1501 NCMUseProfileComment(CMProfileRef prof, UInt32 flags);
1506 #if CALL_NOT_IN_CARBON
1516 CWMatchHBITMAP(CMWorldRef cw, HBITMAP hBitmap, CMBitmapCallBackUPP progressProc,
1601 CMGetProfileByAVID(CMDisplayIDType theID, CMProfileRef *prof);
1612 CMSetProfileByAVID(CMDisplayIDType theID, CMProfileRef prof);
1623 CMGetGammaByAVID(CMDisplayIDType theID,
CMVideoCardGamma *gamma, UInt32 *size);
1672 CMProfileSearchRef *searchResult);
1706 CMProfileRef *prof);
1718 FSSpec *profileFile);
1730 UInt32 *matchedCount,
1731 CMProfileSearchRef *searchResult);
1743 CMProfileRef *profileList, UInt32 listSize,
1744 UInt32 *matchedCount, CMProfileRef *matchedList);
1768 void *refCon,
Boolean *preferredCMMnotfound);
1781 CMGetColorSyncFolderSpec(
short vRefNum,
Boolean createFolder,
1782 short *foundVRefNum,
long *foundDirID);
1786 #if TARGET_OS_WIN32 || TARGET_OS_UNIX
1787 #if CALL_NOT_IN_CARBON
1797 CMGetColorSyncFolderPath(
Boolean createFolder,
char *lpBuffer, UInt32 uSize);
1814 #if TARGET_API_MAC_OS8
1815 #if CALL_NOT_IN_CARBON
2036 CMChromaticAdaptation
method, UInt32 count);
2049 void *refCon,
Boolean *preferredCMMnotfound);
2061 CMFlattenUPP proc,
void *refCon,
2062 Boolean *preferredCMMnotfound);
2074 CMFlattenUPP proc,
void *refCon,
2075 Boolean *preferredCMMnotfound);
2087 UInt32 *vmSize,
Boolean *preferredCMMnotfound);
2090 #if TARGET_API_MAC_OS8
2091 #if CALL_NOT_IN_CARBON
2175 cmSystemDevice = FOUR_CHAR_CODE(
'sys '),
2176 cmGDevice = FOUR_CHAR_CODE(
'gdev')
2180 #if CALL_NOT_IN_CARBON
2202 SetProfile(OSType deviceType,
long refNum,
CMProfileHandle newProfile);
2213 SetProfileDescription(OSType deviceType,
long refNum,
long deviceData,
2225 GetIndexedProfile(OSType deviceType,
long refNum,
2238 DeleteDeviceProfile(OSType deviceType,
long refNum,
CMProfileHandle deleteMe);
2245 typedef CMFlattenProcPtr CMFlattenProc;
2246 typedef CMBitmapCallBackProcPtr CMBitmapCallBackProc;
2247 typedef CMProfileFilterProcPtr CMProfileFilterProc;
2251 CMBeginProfile = cmBeginProfile,
2252 CMEndProfile = cmEndProfile,
2253 CMEnableMatching = cmEnableMatching,
2254 CMDisableMatching = cmDisableMatching
2262 CMProfileError = cmProfileError,
2263 CMMethodError = cmMethodError,
2264 CMMemFullError = -172,
2265 CMUnimplementedError = -173,
2266 CMParamError = -174,
2267 CMMethodNotFound = cmMethodNotFound,
2268 CMProfileNotFound = cmProfileNotFound,
2269 CMProfilesIdentical = cmProfilesIdentical,
2270 CMCantConcatenateError = cmCantConcatenateError,
2271 CMCantXYZ = cmCantXYZ,
2272 CMCantDeleteProfile = cmCantDeleteProfile,
2273 CMUnsupportedDataType = cmUnsupportedDataType,
2274 CMNoCurrentProfile = cmNoCurrentProfile
2279 qdSystemDevice = cmSystemDevice,
2280 qdGDevice = cmGDevice
2285 kMatchCMMType = cmMatchCMMType,
2286 kMatchApplProfileVersion = cmMatchApplProfileVersion,
2287 kMatchDataType = cmMatchDataType,
2288 kMatchDeviceType = cmMatchDeviceType,
2289 kMatchDeviceManufacturer = cmMatchDeviceManufacturer,
2290 kMatchDeviceModel = cmMatchDeviceModel,
2291 kMatchDeviceAttributes = cmMatchDeviceAttributes,
2292 kMatchFlags = cmMatchFlags,
2293 kMatchOptions = cmMatchOptions,
2294 kMatchWhite = cmMatchWhite,
2295 kMatchBlack = cmMatchBlack
2300 typedef CMWorldRef CWorld;
2301 typedef long *CMGamutResult;
2303 #define EndMatching(myRef) CMEndMatching(myRef)
2304 #define EnableMatching(enableIt) CMEnableMatchingComment(enableIt)
2305 #define GetColorSyncFolderSpec(vRefNum, createFolder, foundVRefNum, \
2307 CMGetColorSyncFolderSpec(vRefNum, createFolder, foundVRefNum, foundDirID)
2308 #define BeginMatching(src, dst, myRef) CMBeginMatching(src, dst, myRef)
2309 #define DrawMatchedPicture(myPicture, dst, myRect) \
2310 CMDrawMatchedPicture(myPicture, dst, myRect)
2311 #define UseProfile(profile) CMUseProfileComment(profile)
2312 #define GetProfileName(myProfile, IStringResult) \
2313 CMGetProfileName(myProfile, IStringResult)
2314 #define GetProfileAdditionalDataOffset(myProfile) \
2315 CMGetProfileAdditionalDataOffset(myProfile)
2322 enableColorMatchingOp = 12,
2323 registerProfileOp = 13
2326 struct TEnableColorMatchingBlk
2335 typedef struct TEnableColorMatchingBlk TEnableColorMatchingBlk;
2336 struct TRegisterProfileBlk
2345 typedef struct TRegisterProfileBlk TRegisterProfileBlk;
2348 #if PRAGMA_STRUCT_ALIGN
2349 #pragma options align = reset
2350 #elif PRAGMA_STRUCT_PACKPUSH
2352 #elif PRAGMA_STRUCT_PACK
2356 #ifdef PRAGMA_IMPORT_OFF
2359 #pragma import reset
CMError CMGetScriptProfileDescription(CMProfileRef prof, Str255 name, ScriptCode *code)
void CMDisposeProfileSearch(CMProfileSearchRef search)
CMError CMGetPS2ColorRenderingIntent(CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
CMError CMConvertXYZToLuv(const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
CMError CMConvertRGBToGray(const CMColor *src, CMColor *dst, UInt32 count)
CMError CMNewProfile(CMProfileRef *prof, const CMProfileLocation *theProfile)
CMError NCMGetProfileLocation(CMProfileRef prof, CMProfileLocation *theProfile, UInt32 *locationSize)
CMError CMCopyProfileLocalizedString(CMProfileRef prof, OSType tag, CFStringRef reqLocale, CFStringRef *locale, CFStringRef *str)
CMError NCMUnflattenProfile(CMProfileLocation *targetLocation, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
CMError CMConvertYxyToXYZ(const CMColor *src, CMColor *dst, UInt32 count)
CMError CMSetProfileElement(CMProfileRef prof, OSType tag, UInt32 elementSize, const void *elementData)
CMError CMConvertXYZToYxy(const CMColor *src, CMColor *dst, UInt32 count)
CMError CWNewLinkProfile(CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
CMError NCWNewColorWorld(CMWorldRef *cw, CMProfileRef src, CMProfileRef dst)
CMError CWConcatColorWorld(CMWorldRef *cw, CMConcatProfileSet *profileSet)
CMError NCWConcatColorWorld(CMWorldRef *cw, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
CMError CMGetCWInfo(CMWorldRef cw, CMCWInfoRecord *info)
CMError CMConvertHSVToRGB(const CMColor *src, CMColor *dst, UInt32 count)
CMError CMSetDefaultProfileBySpace(OSType dataColorSpace, CMProfileRef prof)
CMError CMIterateCMMInfo(CMMIterateUPP proc, UInt32 *count, void *refCon)
CMError CMGetProfileHeader(CMProfileRef prof, CMAppleProfileHeader *header)
CMError CMIterateColorSyncFolder(CMProfileIterateUPP proc, UInt32 *seed, UInt32 *count, void *refCon)
CMError CMSearchGetIndProfileFileSpec(CMProfileSearchRef search, UInt32 index, FSSpec *profileFile)
CMError CMProfileIdentifierFolderSearch(CMProfileIdentifierPtr ident, UInt32 *matchedCount, CMProfileSearchRef *searchResult)
CMError CMConvertXYZToFixedXYZ(const CMXYZColor *src, CMFixedXYZColor *dst, UInt32 count)
CMMIterateUPP NewCMMIterateUPP(CMMIterateProcPtr userRoutine)
CMError CMConvertXYZToXYZ(const CMColor *src, const CMXYZColor *srcIlluminant, CMColor *dst, const CMXYZColor *dstIlluminant, CMChromaticAdaptation method, UInt32 count)
CMError CMGetNamedColorIndex(CMProfileRef prof, StringPtr name, UInt32 *index)
CMError CMConvertFixedXYZToXYZ(const CMFixedXYZColor *src, CMXYZColor *dst, UInt32 count)
CMError CMProfileModified(CMProfileRef prof, Boolean *modified)
CMError CMConvertRGBToHSV(const CMColor *src, CMColor *dst, UInt32 count)
CMError CMProfileIdentifierListSearch(CMProfileIdentifierPtr ident, CMProfileRef *profileList, UInt32 listSize, UInt32 *matchedCount, CMProfileRef *matchedList)
CMError CMConvertLabToXYZ(const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
void CWDisposeColorWorld(CMWorldRef cw)
CMError CMGetDefaultProfileByUse(OSType use, CMProfileRef *prof)
CMProfileIterateUPP NewCMProfileIterateUPP(CMProfileIterateProcPtr userRoutine)
CMError CMGetNamedColorValue(CMProfileRef prof, StringPtr name, CMColor *deviceColor, CMColor *PCSColor)
CMError CMRemoveProfileElement(CMProfileRef prof, OSType tag)
CMError CMConvertLuvToXYZ(const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
CMError CMGetNamedColorName(CMProfileRef prof, UInt32 index, StringPtr name)
CMError CMFlattenProfile(CMProfileRef prof, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
CMError CMGetNamedColorInfo(CMProfileRef prof, UInt32 *deviceChannels, OSType *deviceColorSpace, OSType *PCSColorSpace, UInt32 *count, StringPtr prefix, StringPtr suffix)
CMError CWCheckBitmap(CMWorldRef cw, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
CMError CMGetDefaultProfileBySpace(OSType dataColorSpace, CMProfileRef *prof)
CMError CMConvertXYZToLab(const CMColor *src, const CMXYZColor *white, CMColor *dst, UInt32 count)
CMError CMCloseProfile(CMProfileRef prof)
void DisposeCMProfileIterateUPP(CMProfileIterateUPP userUPP)
CMError CMCloneProfileRef(CMProfileRef prof)
CMError CMOpenProfile(CMProfileRef *prof, const CMProfileLocation *theProfile)
OSErr InvokeCMMIterateUPP(CMMInfo *iterateData, void *refCon, CMMIterateUPP userUPP)
CMError CMGetIndNamedColorValue(CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor)
CMError CMSearchGetIndProfile(CMProfileSearchRef search, UInt32 index, CMProfileRef *prof)
CMError CMSetProfileDescriptions(CMProfileRef prof, const char *aName, UInt32 aCount, ConstStr255Param mName, ScriptCode mCode, const UniChar *uName, UniCharCount uCount)
CMError CMSetSystemProfile(const FSSpec *profileFileSpec)
CMError CMGetPS2ColorRendering(CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
CMError CMGetIndProfileElement(CMProfileRef prof, UInt32 index, UInt32 *elementSize, void *elementData)
CMError CMProfileElementExists(CMProfileRef prof, OSType tag, Boolean *found)
CMError CMSetProfileElementReference(CMProfileRef prof, OSType elementTag, OSType referenceTag)
CMError CMConvertHLSToRGB(const CMColor *src, CMColor *dst, UInt32 count)
CMError CMSetProfileLocalizedStringDictionary(CMProfileRef prof, OSType tag, CFDictionaryRef theDict)
CMError CMLaunchControlPanel(UInt32 flags)
CMError CWMatchColors(CMWorldRef cw, CMColor *myColors, UInt32 count)
CMError CMNewProfileSearch(CMSearchRecord *searchSpec, void *refCon, UInt32 *count, CMProfileSearchRef *searchResult)
CMError CMGetProfileRefCount(CMProfileRef prof, long *count)
CMError CMUpdateProfileSearch(CMProfileSearchRef search, void *refCon, UInt32 *count)
CMError CMGetProfileMD5(CMProfileRef prof, CMProfileMD5 digest)
CMError CMGetSystemProfile(CMProfileRef *prof)
CMError CMUpdateProfile(CMProfileRef prof)
CMError CMCreateProfileIdentifier(CMProfileRef prof, CMProfileIdentifierPtr ident, UInt32 *size)
void DisposeCMMIterateUPP(CMMIterateUPP userUPP)
CMError CMGetPS2ColorSpace(CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon, Boolean *preferredCMMnotfound)
CMError NCWNewLinkProfile(CMProfileRef *prof, const CMProfileLocation *targetLocation, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
OSErr InvokeCMProfileIterateUPP(CMProfileIterateData *iterateData, void *refCon, CMProfileIterateUPP userUPP)
CMError CMCopyProfile(CMProfileRef *targetProf, const CMProfileLocation *targetLocation, CMProfileRef srcProf)
CMError CMSetPartialProfileElement(CMProfileRef prof, OSType tag, UInt32 offset, UInt32 byteCount, const void *elementData)
CMError CMConvertRGBToHLS(const CMColor *src, CMColor *dst, UInt32 count)
CMError CWCheckColors(CMWorldRef cw, CMColor *myColors, UInt32 count, UInt32 *result)
CMError CMGetProfileDescriptions(CMProfileRef prof, char *aName, UInt32 *aCount, Str255 mName, ScriptCode *mCode, UniChar *uName, UniCharCount *uCount)
CMError CMGetIndProfileElementInfo(CMProfileRef prof, UInt32 index, OSType *tag, UInt32 *elementSize, Boolean *refs)
CMError CMGetProfileElement(CMProfileRef prof, OSType tag, UInt32 *elementSize, void *elementData)
CMError CMGetPreferredCMM(OSType *cmmType, Boolean *preferredCMMnotfound)
CMError CMCountProfileElements(CMProfileRef prof, UInt32 *elementCount)
CMError CMGetPartialProfileElement(CMProfileRef prof, OSType tag, UInt32 offset, UInt32 *byteCount, void *elementData)
CMError CMValidateProfile(CMProfileRef prof, Boolean *valid, Boolean *preferredCMMnotfound)
CMError CMGetProfileLocation(CMProfileRef prof, CMProfileLocation *theProfile)
CMError CMSetProfileHeader(CMProfileRef prof, const CMAppleProfileHeader *header)
CMError CMCopyProfileLocalizedStringDictionary(CMProfileRef prof, OSType tag, CFDictionaryRef *theDict)
CMError CMSetDefaultProfileByUse(OSType use, CMProfileRef prof)
CMError CWMatchBitmap(CMWorldRef cw, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
CMError CMGetPS2ColorRenderingVMSize(CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize, Boolean *preferredCMMnotfound)
CMError CMGetColorSyncVersion(UInt32 *version)
CMError CMSetProfileElementSize(CMProfileRef prof, OSType tag, UInt32 elementSize)
CMError NCMSetSystemProfile(const CMProfileLocation *profLoc)
ICC Profile Format Definitions.
xxx put contents here xxx
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
unsigned char * StringPtr
Definition: MacTypes.h:477
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Print Manager Interfaces.
Interface to Quickdraw Graphics.
TQAMethodSelector
Definition: RAVE.h:1009
Definition: Quickdraw.h:279
Definition: CMApplication.h:554
Definition: CMApplication.h:620
Definition: CMApplication.h:258
Definition: CMApplication.h:250
Definition: CMApplication.h:396
Definition: CMApplication.h:203
Definition: CMICCProfile.h:355
Definition: CMApplication.h:594
Definition: CMICCProfile.h:364
Definition: CMApplication.h:300
Definition: CMApplication.h:265
Definition: CMApplication.h:272
Definition: CMApplication.h:599
Definition: CMICCProfile.h:770
Definition: CMApplication.h:279
Definition: CMApplication.h:286
Definition: CMApplication.h:390
Definition: CMApplication.h:375
Definition: CMICCProfile.h:712
Definition: CMApplication.h:305
Definition: CMApplication.h:310
Definition: CMApplication.h:315
Definition: CMApplication.h:320
Definition: CMApplication.h:325
Definition: CMApplication.h:615
Definition: CMApplication.h:609
Definition: CMApplication.h:403
Definition: CMApplication.h:670
Definition: CMApplication.h:636
Definition: CMApplication.h:350
Definition: CMICCProfile.h:821
Definition: CMApplication.h:604
Definition: CMApplication.h:243
Definition: CMApplication.h:360
Definition: CMICCProfile.h:698
Definition: CMICCProfile.h:372
Definition: CMApplication.h:293
Definition: CMApplication.h:218
Definition: CMApplication.h:211
Definition: Quickdraw.h:326
Definition: Quickdraw.h:2064
Definition: MacTypes.h:527
Definition: Printing.h:374
Definition: CMApplication.h:330
Definition: CMApplication.h:626