comparison fuhtark_test/include/winapi/icm.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _ICM_H_
7 #define _ICM_H_
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 typedef char COLOR_NAME[32];
14 typedef COLOR_NAME *PCOLOR_NAME,*LPCOLOR_NAME;
15
16 typedef struct tagNAMED_PROFILE_INFO {
17 DWORD dwFlags;
18 DWORD dwCount;
19 DWORD dwCountDevCoordinates;
20 COLOR_NAME szPrefix;
21 COLOR_NAME szSuffix;
22 } NAMED_PROFILE_INFO;
23 typedef NAMED_PROFILE_INFO *PNAMED_PROFILE_INFO,*LPNAMED_PROFILE_INFO;
24
25 #define MAX_COLOR_CHANNELS 8
26
27 struct GRAYCOLOR {
28 WORD gray;
29 };
30
31 struct RGBCOLOR {
32 WORD red;
33 WORD green;
34 WORD blue;
35 };
36
37 struct CMYKCOLOR {
38 WORD cyan;
39 WORD magenta;
40 WORD yellow;
41 WORD black;
42 };
43
44 struct XYZCOLOR {
45 WORD X;
46 WORD Y;
47 WORD Z;
48 };
49
50 struct YxyCOLOR {
51 WORD Y;
52 WORD x;
53 WORD y;
54 };
55
56 struct LabCOLOR {
57 WORD L;
58 WORD a;
59 WORD b;
60 };
61
62 struct GENERIC3CHANNEL {
63 WORD ch1;
64 WORD ch2;
65 WORD ch3;
66 };
67
68 struct NAMEDCOLOR {
69 DWORD dwIndex;
70 };
71
72 struct HiFiCOLOR {
73 BYTE channel[MAX_COLOR_CHANNELS];
74 };
75
76 typedef union tagCOLOR {
77 struct GRAYCOLOR gray;
78 struct RGBCOLOR rgb;
79 struct CMYKCOLOR cmyk;
80 struct XYZCOLOR XYZ;
81 struct YxyCOLOR Yxy;
82 struct LabCOLOR Lab;
83 struct GENERIC3CHANNEL gen3ch;
84 struct NAMEDCOLOR named;
85 struct HiFiCOLOR hifi;
86 struct {
87 DWORD reserved1;
88 VOID *reserved2;
89 };
90 } COLOR;
91 typedef COLOR *PCOLOR,*LPCOLOR;
92
93 typedef enum {
94 COLOR_GRAY = 1,COLOR_RGB,COLOR_XYZ,COLOR_Yxy,COLOR_Lab,COLOR_3_CHANNEL,COLOR_CMYK,COLOR_5_CHANNEL,COLOR_6_CHANNEL,COLOR_7_CHANNEL,
95 COLOR_8_CHANNEL,COLOR_NAMED
96 } COLORTYPE;
97 typedef COLORTYPE *PCOLORTYPE,*LPCOLORTYPE;
98
99 typedef enum {
100 BM_x555RGB = 0x0000,BM_x555XYZ = 0x0101,BM_x555Yxy,BM_x555Lab,BM_x555G3CH,BM_RGBTRIPLETS = 0x0002,BM_BGRTRIPLETS = 0x0004,BM_XYZTRIPLETS = 0x0201,
101 BM_YxyTRIPLETS,BM_LabTRIPLETS,BM_G3CHTRIPLETS,BM_5CHANNEL,BM_6CHANNEL,BM_7CHANNEL,BM_8CHANNEL,BM_GRAY,BM_xRGBQUADS = 0x0008,BM_xBGRQUADS = 0x0010,
102 BM_xG3CHQUADS = 0x0304,BM_KYMCQUADS,BM_CMYKQUADS = 0x0020,BM_10b_RGB = 0x0009,BM_10b_XYZ = 0x0401,BM_10b_Yxy,BM_10b_Lab,BM_10b_G3CH,BM_NAMED_INDEX,
103 BM_16b_RGB = 0x000A,BM_16b_XYZ = 0x0501,BM_16b_Yxy,BM_16b_Lab,BM_16b_G3CH,BM_16b_GRAY,BM_565RGB = 0x0001
104 } BMFORMAT;
105 typedef BMFORMAT *PBMFORMAT,*LPBMFORMAT;
106
107 typedef WINBOOL (WINAPI *PBMCALLBACKFN)(ULONG,ULONG,LPARAM);
108 typedef PBMCALLBACKFN LPBMCALLBACKFN;
109
110 typedef struct tagPROFILEHEADER {
111 DWORD phSize;
112 DWORD phCMMType;
113 DWORD phVersion;
114 DWORD phClass;
115 DWORD phDataColorSpace;
116 DWORD phConnectionSpace;
117 DWORD phDateTime[3];
118 DWORD phSignature;
119 DWORD phPlatform;
120 DWORD phProfileFlags;
121 DWORD phManufacturer;
122 DWORD phModel;
123 DWORD phAttributes[2];
124 DWORD phRenderingIntent;
125 CIEXYZ phIlluminant;
126 DWORD phCreator;
127 BYTE phReserved[44];
128 } PROFILEHEADER;
129 typedef PROFILEHEADER *PPROFILEHEADER,*LPPROFILEHEADER;
130
131 #define CLASS_MONITOR 'mntr'
132 #define CLASS_PRINTER 'prtr'
133 #define CLASS_SCANNER 'scnr'
134 #define CLASS_LINK 'link'
135 #define CLASS_ABSTRACT 'abst'
136 #define CLASS_COLORSPACE 'spac'
137 #define CLASS_NAMED 'nmcl'
138
139 #define SPACE_XYZ 'XYZ '
140 #define SPACE_Lab 'Lab '
141 #define SPACE_Luv 'Luv '
142 #define SPACE_YCbCr 'YCbr'
143 #define SPACE_Yxy 'Yxy '
144 #define SPACE_RGB 'RGB '
145 #define SPACE_GRAY 'GRAY'
146 #define SPACE_HSV 'HSV '
147 #define SPACE_HLS 'HLS '
148 #define SPACE_CMYK 'CMYK'
149 #define SPACE_CMY 'CMY '
150 #define SPACE_2_CHANNEL '2CLR'
151 #define SPACE_3_CHANNEL '3CLR'
152 #define SPACE_4_CHANNEL '4CLR'
153 #define SPACE_5_CHANNEL '5CLR'
154 #define SPACE_6_CHANNEL '6CLR'
155 #define SPACE_7_CHANNEL '7CLR'
156 #define SPACE_8_CHANNEL '8CLR'
157
158 #define FLAG_EMBEDDEDPROFILE 0x00000001
159 #define FLAG_DEPENDENTONDATA 0x00000002
160
161 #define ATTRIB_TRANSPARENCY 0x00000001
162 #define ATTRIB_MATTE 0x00000002
163
164 #define INTENT_PERCEPTUAL 0
165 #define INTENT_RELATIVE_COLORIMETRIC 1
166 #define INTENT_SATURATION 2
167 #define INTENT_ABSOLUTE_COLORIMETRIC 3
168
169 typedef struct tagPROFILE {
170 DWORD dwType;
171 PVOID pProfileData;
172 DWORD cbDataSize;
173 } PROFILE;
174 typedef PROFILE *PPROFILE,*LPPROFILE;
175
176 #define PROFILE_FILENAME 1
177 #define PROFILE_MEMBUFFER 2
178
179 #define PROFILE_READ 1
180 #define PROFILE_READWRITE 2
181
182 typedef HANDLE HPROFILE;
183 typedef HPROFILE *PHPROFILE;
184 typedef HANDLE HTRANSFORM;
185
186 #define INDEX_DONT_CARE 0
187
188 #define CMM_FROM_PROFILE INDEX_DONT_CARE
189 #define CMM_WINDOWS_DEFAULT 'Win '
190
191 typedef DWORD TAGTYPE;
192 typedef TAGTYPE *PTAGTYPE,*LPTAGTYPE;
193
194 #define ENUM_TYPE_VERSION 0x0300
195
196 typedef struct tagENUMTYPEA {
197 DWORD dwSize;
198 DWORD dwVersion;
199 DWORD dwFields;
200 PCSTR pDeviceName;
201 DWORD dwMediaType;
202 DWORD dwDitheringMode;
203 DWORD dwResolution[2];
204 DWORD dwCMMType;
205 DWORD dwClass;
206 DWORD dwDataColorSpace;
207 DWORD dwConnectionSpace;
208 DWORD dwSignature;
209 DWORD dwPlatform;
210 DWORD dwProfileFlags;
211 DWORD dwManufacturer;
212 DWORD dwModel;
213 DWORD dwAttributes[2];
214 DWORD dwRenderingIntent;
215 DWORD dwCreator;
216 DWORD dwDeviceClass;
217 } ENUMTYPEA,*PENUMTYPEA,*LPENUMTYPEA;
218
219 typedef struct tagENUMTYPEW {
220 DWORD dwSize;
221 DWORD dwVersion;
222 DWORD dwFields;
223 PCWSTR pDeviceName;
224 DWORD dwMediaType;
225 DWORD dwDitheringMode;
226 DWORD dwResolution[2];
227 DWORD dwCMMType;
228 DWORD dwClass;
229 DWORD dwDataColorSpace;
230 DWORD dwConnectionSpace;
231 DWORD dwSignature;
232 DWORD dwPlatform;
233 DWORD dwProfileFlags;
234 DWORD dwManufacturer;
235 DWORD dwModel;
236 DWORD dwAttributes[2];
237 DWORD dwRenderingIntent;
238 DWORD dwCreator;
239 DWORD dwDeviceClass;
240 } ENUMTYPEW,*PENUMTYPEW,*LPENUMTYPEW;
241
242 #define ET_DEVICENAME 0x00000001
243 #define ET_MEDIATYPE 0x00000002
244 #define ET_DITHERMODE 0x00000004
245 #define ET_RESOLUTION 0x00000008
246 #define ET_CMMTYPE 0x00000010
247 #define ET_CLASS 0x00000020
248 #define ET_DATACOLORSPACE 0x00000040
249 #define ET_CONNECTIONSPACE 0x00000080
250 #define ET_SIGNATURE 0x00000100
251 #define ET_PLATFORM 0x00000200
252 #define ET_PROFILEFLAGS 0x00000400
253 #define ET_MANUFACTURER 0x00000800
254 #define ET_MODEL 0x00001000
255 #define ET_ATTRIBUTES 0x00002000
256 #define ET_RENDERINGINTENT 0x00004000
257 #define ET_CREATOR 0x00008000
258 #define ET_DEVICECLASS 0x00010000
259
260 #define PROOF_MODE 0x00000001
261 #define NORMAL_MODE 0x00000002
262 #define BEST_MODE 0x00000003
263 #define ENABLE_GAMUT_CHECKING 0x00010000
264 #define USE_RELATIVE_COLORIMETRIC 0x00020000
265 #define FAST_TRANSLATE 0x00040000
266 #define RESERVED 0x80000000
267
268 #define CSA_A 1
269 #define CSA_ABC 2
270 #define CSA_DEF 3
271 #define CSA_DEFG 4
272 #define CSA_GRAY 5
273 #define CSA_RGB 6
274 #define CSA_CMYK 7
275 #define CSA_Lab 8
276
277 #define CMM_WIN_VERSION 0
278 #define CMM_IDENT 1
279 #define CMM_DRIVER_VERSION 2
280 #define CMM_DLL_VERSION 3
281 #define CMM_VERSION 4
282 #define CMM_DESCRIPTION 5
283 #define CMM_LOGOICON 6
284
285 #define CMS_FORWARD 0
286 #define CMS_BACKWARD 1
287
288 #define COLOR_MATCH_VERSION 0x0200
289
290 #define CMS_DISABLEICM 1
291 #define CMS_ENABLEPROOFING 2
292
293 #define CMS_SETRENDERINTENT 4
294 #define CMS_SETPROOFINTENT 8
295 #define CMS_SETMONITORPROFILE 0x10
296 #define CMS_SETPRINTERPROFILE 0x20
297 #define CMS_SETTARGETPROFILE 0x40
298
299 #define CMS_USEHOOK 0x80
300 #define CMS_USEAPPLYCALLBACK 0x100
301 #define CMS_USEDESCRIPTION 0x200
302
303 #define CMS_DISABLEINTENT 0x400
304 #define CMS_DISABLERENDERINTENT 0x800
305
306 #define CMS_MONITOROVERFLOW 0x80000000L
307 #define CMS_PRINTEROVERFLOW 0x40000000L
308 #define CMS_TARGETOVERFLOW 0x20000000L
309
310 struct _tagCOLORMATCHSETUPW;
311 struct _tagCOLORMATCHSETUPA;
312
313 typedef WINBOOL (WINAPI *PCMSCALLBACKW)(struct _tagCOLORMATCHSETUPW *,LPARAM);
314 typedef WINBOOL (WINAPI *PCMSCALLBACKA)(struct _tagCOLORMATCHSETUPA *,LPARAM);
315
316 typedef struct _tagCOLORMATCHSETUPW {
317 DWORD dwSize;
318 DWORD dwVersion;
319 DWORD dwFlags;
320 HWND hwndOwner;
321 PCWSTR pSourceName;
322 PCWSTR pDisplayName;
323 PCWSTR pPrinterName;
324 DWORD dwRenderIntent;
325 DWORD dwProofingIntent;
326 PWSTR pMonitorProfile;
327 DWORD ccMonitorProfile;
328 PWSTR pPrinterProfile;
329 DWORD ccPrinterProfile;
330 PWSTR pTargetProfile;
331 DWORD ccTargetProfile;
332 DLGPROC lpfnHook;
333 LPARAM lParam;
334 PCMSCALLBACKW lpfnApplyCallback;
335 LPARAM lParamApplyCallback;
336 } COLORMATCHSETUPW,*PCOLORMATCHSETUPW,*LPCOLORMATCHSETUPW;
337
338 typedef struct _tagCOLORMATCHSETUPA {
339 DWORD dwSize;
340 DWORD dwVersion;
341 DWORD dwFlags;
342 HWND hwndOwner;
343 PCSTR pSourceName;
344 PCSTR pDisplayName;
345 PCSTR pPrinterName;
346 DWORD dwRenderIntent;
347 DWORD dwProofingIntent;
348 PSTR pMonitorProfile;
349 DWORD ccMonitorProfile;
350 PSTR pPrinterProfile;
351 DWORD ccPrinterProfile;
352 PSTR pTargetProfile;
353 DWORD ccTargetProfile;
354 DLGPROC lpfnHook;
355 LPARAM lParam;
356 PCMSCALLBACKA lpfnApplyCallback;
357 LPARAM lParamApplyCallback;
358 } COLORMATCHSETUPA,*PCOLORMATCHSETUPA,*LPCOLORMATCHSETUPA;
359
360 HPROFILE WINAPI OpenColorProfileA(PPROFILE,DWORD,DWORD,DWORD);
361 HPROFILE WINAPI OpenColorProfileW(PPROFILE,DWORD,DWORD,DWORD);
362 WINBOOL WINAPI CloseColorProfile(HPROFILE);
363 WINBOOL WINAPI GetColorProfileFromHandle(HPROFILE,PBYTE,PDWORD);
364 WINBOOL WINAPI IsColorProfileValid(HPROFILE,PBOOL);
365 WINBOOL WINAPI CreateProfileFromLogColorSpaceA(LPLOGCOLORSPACEA,PBYTE*);
366 WINBOOL WINAPI CreateProfileFromLogColorSpaceW(LPLOGCOLORSPACEW,PBYTE*);
367 WINBOOL WINAPI GetCountColorProfileElements(HPROFILE,PDWORD);
368 WINBOOL WINAPI GetColorProfileHeader(HPROFILE,PPROFILEHEADER);
369 WINBOOL WINAPI GetColorProfileElementTag(HPROFILE,DWORD,PTAGTYPE);
370 WINBOOL WINAPI IsColorProfileTagPresent(HPROFILE,TAGTYPE,PBOOL);
371 WINBOOL WINAPI GetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID,PBOOL);
372 WINBOOL WINAPI SetColorProfileHeader(HPROFILE,PPROFILEHEADER);
373 WINBOOL WINAPI SetColorProfileElementSize(HPROFILE,TAGTYPE,DWORD);
374 WINBOOL WINAPI SetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID);
375 WINBOOL WINAPI SetColorProfileElementReference(HPROFILE,TAGTYPE,TAGTYPE);
376 WINBOOL WINAPI GetPS2ColorSpaceArray (HPROFILE,DWORD,DWORD,PBYTE,PDWORD,PBOOL);
377 WINBOOL WINAPI GetPS2ColorRenderingIntent(HPROFILE,DWORD,PBYTE,PDWORD);
378 WINBOOL WINAPI GetPS2ColorRenderingDictionary(HPROFILE,DWORD,PBYTE,PDWORD,PBOOL);
379 WINBOOL WINAPI GetNamedProfileInfo(HPROFILE,PNAMED_PROFILE_INFO);
380 WINBOOL WINAPI ConvertColorNameToIndex(HPROFILE,PCOLOR_NAME,PDWORD,DWORD);
381 WINBOOL WINAPI ConvertIndexToColorName(HPROFILE,PDWORD,PCOLOR_NAME,DWORD);
382 WINBOOL WINAPI CreateDeviceLinkProfile(PHPROFILE,DWORD,PDWORD,DWORD,DWORD,PBYTE*,DWORD);
383 HTRANSFORM WINAPI CreateColorTransformA(LPLOGCOLORSPACEA,HPROFILE,HPROFILE,DWORD);
384 HTRANSFORM WINAPI CreateColorTransformW(LPLOGCOLORSPACEW,HPROFILE,HPROFILE,DWORD);
385 HTRANSFORM WINAPI CreateMultiProfileTransform(PHPROFILE,DWORD,PDWORD,DWORD,DWORD,DWORD);
386 WINBOOL WINAPI DeleteColorTransform(HTRANSFORM);
387 WINBOOL WINAPI TranslateBitmapBits(HTRANSFORM,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PVOID,BMFORMAT,DWORD,PBMCALLBACKFN,LPARAM);
388 WINBOOL WINAPI CheckBitmapBits(HTRANSFORM ,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PBYTE,PBMCALLBACKFN,LPARAM);
389 WINBOOL WINAPI TranslateColors(HTRANSFORM,PCOLOR,DWORD,COLORTYPE,PCOLOR,COLORTYPE);
390 WINBOOL WINAPI CheckColors(HTRANSFORM,PCOLOR,DWORD,COLORTYPE,PBYTE);
391 DWORD WINAPI GetCMMInfo(HTRANSFORM,DWORD);
392 WINBOOL WINAPI RegisterCMMA(PCSTR,DWORD,PCSTR);
393 WINBOOL WINAPI RegisterCMMW(PCWSTR,DWORD,PCWSTR);
394 WINBOOL WINAPI UnregisterCMMA(PCSTR,DWORD);
395 WINBOOL WINAPI UnregisterCMMW(PCWSTR,DWORD);
396 WINBOOL WINAPI SelectCMM(DWORD);
397 WINBOOL WINAPI GetColorDirectoryA(PCSTR pMachineName,PSTR pBuffer,PDWORD pdwSize);
398 WINBOOL WINAPI GetColorDirectoryW(PCWSTR pMachineName,PWSTR pBuffer,PDWORD pdwSize);
399 WINBOOL WINAPI InstallColorProfileA(PCSTR,PCSTR);
400 WINBOOL WINAPI InstallColorProfileW(PCWSTR,PCWSTR);
401 WINBOOL WINAPI UninstallColorProfileA(PCSTR,PCSTR,WINBOOL);
402 WINBOOL WINAPI UninstallColorProfileW(PCWSTR,PCWSTR,WINBOOL);
403 WINBOOL WINAPI EnumColorProfilesA(PCSTR,PENUMTYPEA,PBYTE,PDWORD,PDWORD);
404 WINBOOL WINAPI EnumColorProfilesW(PCWSTR,PENUMTYPEW,PBYTE,PDWORD,PDWORD);
405 WINBOOL WINAPI SetStandardColorSpaceProfileA(PCSTR,DWORD,PCSTR);
406 WINBOOL WINAPI SetStandardColorSpaceProfileW(PCWSTR,DWORD,PCWSTR);
407 WINBOOL WINAPI GetStandardColorSpaceProfileA(PCSTR pMachineName,DWORD dwSCS,PSTR pBuffer,PDWORD pcbSize);
408 WINBOOL WINAPI GetStandardColorSpaceProfileW(PCWSTR pMachineName,DWORD dwSCS,PWSTR pBuffer,PDWORD pcbSize);
409 WINBOOL WINAPI AssociateColorProfileWithDeviceA(PCSTR,PCSTR,PCSTR);
410 WINBOOL WINAPI AssociateColorProfileWithDeviceW(PCWSTR,PCWSTR,PCWSTR);
411 WINBOOL WINAPI DisassociateColorProfileFromDeviceA(PCSTR,PCSTR,PCSTR);
412 WINBOOL WINAPI DisassociateColorProfileFromDeviceW(PCWSTR,PCWSTR,PCWSTR);
413 WINBOOL WINAPI SetupColorMatchingW(PCOLORMATCHSETUPW pcms);
414 WINBOOL WINAPI SetupColorMatchingA(PCOLORMATCHSETUPA pcms);
415
416 #ifdef UNICODE
417 #define ENUMTYPE ENUMTYPEW
418 #define PENUMTYPE PENUMTYPEW
419 #define COLORMATCHSETUP COLORMATCHSETUPW
420 #define PCOLORMATCHSETUP PCOLORMATCHSETUPW
421 #define LPCOLORMATCHSETUP LPCOLORMATCHSETUPW
422 #define PCMSCALLBACK PCMSCALLBACKW
423 #define CreateColorTransform CreateColorTransformW
424 #define OpenColorProfile OpenColorProfileW
425 #define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceW
426 #define RegisterCMM RegisterCMMW
427 #define UnregisterCMM UnregisterCMMW
428 #define GetColorDirectory GetColorDirectoryW
429 #define InstallColorProfile InstallColorProfileW
430 #define UninstallColorProfile UninstallColorProfileW
431 #define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceW
432 #define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceW
433 #define EnumColorProfiles EnumColorProfilesW
434 #define SetStandardColorSpaceProfile SetStandardColorSpaceProfileW
435 #define GetStandardColorSpaceProfile GetStandardColorSpaceProfileW
436 #define SetupColorMatching SetupColorMatchingW
437
438 #else
439 #define ENUMTYPE ENUMTYPEA
440 #define PENUMTYPE PENUMTYPEA
441 #define COLORMATCHSETUP COLORMATCHSETUPA
442 #define PCOLORMATCHSETUP PCOLORMATCHSETUPA
443 #define LPCOLORMATCHSETUP LPCOLORMATCHSETUPA
444 #define PCMSCALLBACK PCMSCALLBACKA
445 #define CreateColorTransform CreateColorTransformA
446 #define OpenColorProfile OpenColorProfileA
447 #define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceA
448 #define RegisterCMM RegisterCMMA
449 #define UnregisterCMM UnregisterCMMA
450 #define GetColorDirectory GetColorDirectoryA
451 #define InstallColorProfile InstallColorProfileA
452 #define UninstallColorProfile UninstallColorProfileA
453 #define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceA
454 #define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceA
455 #define EnumColorProfiles EnumColorProfilesA
456 #define SetStandardColorSpaceProfile SetStandardColorSpaceProfileA
457 #define GetStandardColorSpaceProfile GetStandardColorSpaceProfileA
458 #define SetupColorMatching SetupColorMatchingA
459 #endif
460
461 typedef HANDLE HCMTRANSFORM;
462 typedef PVOID LPDEVCHARACTER;
463
464 WINBOOL WINAPI CMCheckColors(HCMTRANSFORM hcmTransform,LPCOLOR lpaInputColors,DWORD nColors,COLORTYPE ctInput,LPBYTE lpaResult);
465 WINBOOL WINAPI CMCheckColorsInGamut(HCMTRANSFORM hcmTransform,RGBTRIPLE *lpaRGBTriple,LPBYTE lpaResult,UINT nCount);
466 WINBOOL WINAPI CMCheckRGBs(HCMTRANSFORM hcmTransform,LPVOID lpSrcBits,BMFORMAT bmInput,DWORD dwWidth,DWORD dwHeight,DWORD dwStride,LPBYTE lpaResult,PBMCALLBACKFN pfnCallback,LPARAM ulCallbackData);
467 WINBOOL WINAPI CMConvertColorNameToIndex(HPROFILE hProfile,PCOLOR_NAME paColorName,PDWORD paIndex,DWORD dwCount);
468 WINBOOL WINAPI CMConvertIndexToColorName(HPROFILE hProfile,PDWORD paIndex,PCOLOR_NAME paColorName,DWORD dwCount);
469 WINBOOL WINAPI CMCreateDeviceLinkProfile(PHPROFILE pahProfiles,DWORD nProfiles,PDWORD padwIntents,DWORD nIntents,DWORD dwFlags,LPBYTE *lpProfileData);
470 HCMTRANSFORM WINAPI CMCreateMultiProfileTransform(PHPROFILE pahProfiles,DWORD nProfiles,PDWORD padwIntents,DWORD nIntents,DWORD dwFlags);
471 WINBOOL WINAPI CMCreateProfile(LPLOGCOLORSPACEA lpColorSpace,LPDEVCHARACTER *lpProfileData);
472 WINBOOL WINAPI CMCreateProfileW(LPLOGCOLORSPACEW lpColorSpace,LPDEVCHARACTER *lpProfileData);
473 HCMTRANSFORM WINAPI CMCreateTransform(LPLOGCOLORSPACEA lpColorSpace,LPDEVCHARACTER lpDevCharacter,LPDEVCHARACTER lpTargetDevCharacter);
474 HCMTRANSFORM WINAPI CMCreateTransformW(LPLOGCOLORSPACEW lpColorSpace,LPDEVCHARACTER lpDevCharacter,LPDEVCHARACTER lpTargetDevCharacter);
475 HCMTRANSFORM WINAPI CMCreateTransformExt(LPLOGCOLORSPACEA lpColorSpace,LPDEVCHARACTER lpDevCharacter,LPDEVCHARACTER lpTargetDevCharacter,DWORD dwFlags);
476 HCMTRANSFORM WINAPI CMCreateTransformExtW(LPLOGCOLORSPACEW lpColorSpace,LPDEVCHARACTER lpDevCharacter,LPDEVCHARACTER lpTargetDevCharacter,DWORD dwFlags);
477 WINBOOL WINAPI CMDeleteTransform(HCMTRANSFORM hcmTransform);
478 DWORD WINAPI CMGetInfo(DWORD dwInfo);
479 WINBOOL WINAPI CMGetNamedProfileInfo(HPROFILE hProfile,PNAMED_PROFILE_INFO pNamedProfileInfo);
480 WINBOOL WINAPI CMGetPS2ColorRenderingDictionary(HPROFILE hProfile,DWORD dwIntent,LPBYTE lpBuffer,LPDWORD lpcbSize,LPBOOL lpbBinary);
481 WINBOOL WINAPI CMGetPS2ColorRenderingIntent(HPROFILE hProfile,DWORD dwIntent,LPBYTE lpBuffer,LPDWORD lpcbSize);
482 WINBOOL WINAPI CMGetPS2ColorSpaceArray(HPROFILE hProfile,DWORD dwIntent,DWORD dwCSAType,LPBYTE lpBuffer,LPDWORD lpcbSize,LPBOOL lpbBinary);
483 WINBOOL WINAPI CMIsProfileValid(HPROFILE hProfile,LPBOOL lpbValid);
484 WINBOOL WINAPI CMTranslateColors(HCMTRANSFORM hcmTransform,LPCOLOR lpaInputColors,DWORD nColors,COLORTYPE ctInput,LPCOLOR lpaOutputColors,COLORTYPE ctOutput);
485 WINBOOL WINAPI CMTranslateRGB(HCMTRANSFORM hcmTransform,COLORREF ColorRef,LPCOLORREF lpColorRef,DWORD dwFlags);
486 WINBOOL WINAPI CMTranslateRGBs(HCMTRANSFORM hcmTransform,LPVOID lpSrcBits,BMFORMAT bmInput,DWORD dwWidth,DWORD dwHeight,DWORD dwStride,LPVOID lpDestBits,BMFORMAT bmOutput,DWORD dwTranslateDirection);
487 WINBOOL WINAPI CMTranslateRGBsExt(HCMTRANSFORM hcmTransform,LPVOID lpSrcBits,BMFORMAT bmInput,DWORD dwWidth,DWORD dwHeight,DWORD dwInputStride,LPVOID lpDestBits,BMFORMAT bmOutput,DWORD dwOutputStride,LPBMCALLBACKFN lpfnCallback,LPARAM ulCallbackData);
488
489 #ifdef __cplusplus
490 }
491 #endif
492 #endif