Mac OS 9
CMConversions.h
Go to the documentation of this file.
1 
19 #ifndef __CMCONVERSIONS__
20 #define __CMCONVERSIONS__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __COMPONENTS__
27 #include <Components.h>
28 #endif
29 
30 #ifndef __CMAPPLICATION__
31 #include <CMApplication.h>
32 #endif
33 
34 #if PRAGMA_ONCE
35 #pragma once
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif
42 
43 #if PRAGMA_IMPORT
44 #pragma import on
45 #endif
46 
47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
50 #pragma pack(push, 2)
51 #elif PRAGMA_STRUCT_PACK
52 #pragma pack(2)
53 #endif
54 
55  enum
56  {
57  CMConversionInterfaceVersion = 1
58  };
59 
61  enum
62  {
63  kCMXYZToLab = 0,
64  kCMLabToXYZ = 1,
65  kCMXYZToLuv = 2,
66  kCMLuvToXYZ = 3,
67  kCMXYZToYxy = 4,
68  kCMYxyToXYZ = 5,
69  kCMRGBToHLS = 6,
70  kCMHLSToRGB = 7,
71  kCMRGBToHSV = 8,
72  kCMHSVToRGB = 9,
73  kCMRGBToGRAY = 10,
74  kCMXYZToFixedXYZ = 11,
75  kCMFixedXYZToXYZ = 12
76  };
77 
78 #if CALL_NOT_IN_CARBON
87  ComponentResult
88  CMXYZToLab(ComponentInstance ci, const CMColor *src, const CMXYZColor *white,
89  CMColor *dst, unsigned long count);
90 
99  ComponentResult
100  CMLabToXYZ(ComponentInstance ci, const CMColor *src, const CMXYZColor *white,
101  CMColor *dst, unsigned long count);
102 
111  ComponentResult
112  CMXYZToLuv(ComponentInstance ci, const CMColor *src, const CMXYZColor *white,
113  CMColor *dst, unsigned long count);
114 
123  ComponentResult
124  CMLuvToXYZ(ComponentInstance ci, const CMColor *src, const CMXYZColor *white,
125  CMColor *dst, unsigned long count);
126 
135  ComponentResult
137  unsigned long count);
138 
147  ComponentResult
149  unsigned long count);
150 
159  ComponentResult
161  unsigned long count);
162 
171  ComponentResult
173  unsigned long count);
174 
183  ComponentResult
185  unsigned long count);
186 
195  ComponentResult
197  unsigned long count);
198 
207  ComponentResult
209  unsigned long count);
210 
219  ComponentResult
221  CMFixedXYZColor *dst, unsigned long count);
222 
231  ComponentResult
233  CMXYZColor *dst, unsigned long count);
234 
235 #endif
237 #if PRAGMA_STRUCT_ALIGN
238 #pragma options align = reset
239 #elif PRAGMA_STRUCT_PACKPUSH
240 #pragma pack(pop)
241 #elif PRAGMA_STRUCT_PACK
242 #pragma pack()
243 #endif
244 
245 #ifdef PRAGMA_IMPORT_OFF
246 #pragma import off
247 #elif PRAGMA_IMPORT
248 #pragma import reset
249 #endif
250 
251 #ifdef __cplusplus
252 }
253 #endif
254 
255 #endif
Color Matching Interfaces.
ComponentResult CMRGBToHSV(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMLuvToXYZ(ComponentInstance ci, const CMColor *src, const CMXYZColor *white, CMColor *dst, unsigned long count)
ComponentResult CMRGBToHLS(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMXYZToLuv(ComponentInstance ci, const CMColor *src, const CMXYZColor *white, CMColor *dst, unsigned long count)
ComponentResult CMRGBToGray(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMFixedXYZToXYZ(ComponentInstance ci, const CMFixedXYZColor *src, CMXYZColor *dst, unsigned long count)
ComponentResult CMHSVToRGB(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMXYZToFixedXYZ(ComponentInstance ci, const CMXYZColor *src, CMFixedXYZColor *dst, unsigned long count)
ComponentResult CMHLSToRGB(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMXYZToYxy(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMLabToXYZ(ComponentInstance ci, const CMColor *src, const CMXYZColor *white, CMColor *dst, unsigned long count)
ComponentResult CMYxyToXYZ(ComponentInstance ci, const CMColor *src, CMColor *dst, unsigned long count)
ComponentResult CMXYZToLab(ComponentInstance ci, const CMColor *src, const CMXYZColor *white, CMColor *dst, unsigned long count)
Component Manager Interfaces.
Basic Macintosh data types.
Definition: CMICCProfile.h:364
Definition: CMICCProfile.h:372
Definition: Components.h:220
Definition: CMApplication.h:330