2 * Copyright 2004 (C) Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 typedef HANDLE HPROFILE
;
27 typedef HPROFILE
*PHPROFILE
;
28 typedef HANDLE HTRANSFORM
;
30 typedef DWORD TAGTYPE
, *PTAGTYPE
, *LPTAGTYPE
;
32 typedef char COLOR_NAME
[32];
33 typedef COLOR_NAME
*PCOLOR_NAME
, *LPCOLOR_NAME
;
35 typedef struct tagNAMED_PROFILE_INFO
39 DWORD dwCountDevCoordinates
;
42 } NAMED_PROFILE_INFO
, *PNAMED_PROFILE_INFO
, *LPNAMED_PROFILE_INFO
;
44 #define MAX_COLOR_CHANNELS 8
87 struct GENERIC3CHANNEL
101 BYTE channel
[MAX_COLOR_CHANNELS
];
104 typedef union tagCOLOR
106 struct GRAYCOLOR gray
;
108 struct CMYKCOLOR cmyk
;
112 struct GENERIC3CHANNEL gen3ch
;
113 struct NAMEDCOLOR named
;
114 struct HiFiCOLOR hifi
;
120 } COLOR
, *PCOLOR
, *LPCOLOR
;
136 } COLORTYPE
, *PCOLORTYPE
, *LPCOLORTYPE
;
142 BM_RGBTRIPLETS
= 0x02,
143 BM_BGRTRIPLETS
= 0x04,
153 BM_XYZTRIPLETS
= 0x201,
162 BM_xXYZQUADS
= 0x301,
177 } BMFORMAT
, *PBMFORMAT
, *LPBMFORMAT
;
179 typedef BOOL (CALLBACK
*PBMCALLBACKFN
)(ULONG
,ULONG
,LPARAM
);
180 typedef PBMCALLBACKFN LPPBMCALLBACKFN
;
182 typedef struct tagPROFILEHEADER
188 DWORD phDataColorSpace
;
189 DWORD phConnectionSpace
;
193 DWORD phProfileFlags
;
194 DWORD phManufacturer
;
196 DWORD phAttributes
[2];
197 DWORD phRenderingIntent
;
201 } PROFILEHEADER
, *PPROFILEHEADER
, *LPPROFILEHEADER
;
203 typedef struct tagPROFILE
208 } PROFILE
, *PPROFILE
, *LPPROFILE
;
210 typedef struct tagENUMTYPEA
217 DWORD dwDitheringMode
;
218 DWORD dwResolution
[2];
221 DWORD dwDataColorSpace
;
222 DWORD dwConnectionSpace
;
225 DWORD dwProfileFlags
;
226 DWORD dwManufacturer
;
228 DWORD dwAttributes
[2];
229 DWORD dwRenderingIntent
;
232 } ENUMTYPEA
, *PENUMTYPEA
, *LPENUMTYPEA
;
234 typedef struct tagENUMTYPEW
241 DWORD dwDitheringMode
;
242 DWORD dwResolution
[2];
245 DWORD dwDataColorSpace
;
246 DWORD dwConnectionSpace
;
249 DWORD dwProfileFlags
;
250 DWORD dwManufacturer
;
252 DWORD dwAttributes
[2];
253 DWORD dwRenderingIntent
;
256 } ENUMTYPEW
, *PENUMTYPEW
, *LPENUMTYPEW
;
258 struct _tagCOLORMATCHSETUPA
;
259 struct _tagCOLORMATCHSETUPW
;
261 typedef BOOL (WINAPI
*PCMSCALLBACKA
)(struct _tagCOLORMATCHSETUPA
*,LPARAM
);
262 typedef BOOL (WINAPI
*PCMSCALLBACKW
)(struct _tagCOLORMATCHSETUPW
*,LPARAM
);
264 typedef struct _tagCOLORMATCHSETUPA
273 DWORD dwRenderIntent
;
274 DWORD dwProofingIntent
;
275 PSTR pMonitorProfile
;
276 DWORD ccMonitorProfile
;
277 PSTR pPrinterProfile
;
278 DWORD ccPrinterProfile
;
280 DWORD ccTargetProfile
;
283 PCMSCALLBACKA lpfnApplyCallback
;
284 LPARAM lParamApplyCallback
;
285 } COLORMATCHSETUPA
, *PCOLORMATCHSETUPA
, *LPCOLORMATCHSETUPA
;
287 typedef struct _tagCOLORMATCHSETUPW
296 DWORD dwRenderIntent
;
297 DWORD dwProofingIntent
;
298 PWSTR pMonitorProfile
;
299 DWORD ccMonitorProfile
;
300 PWSTR pPrinterProfile
;
301 DWORD ccPrinterProfile
;
302 PWSTR pTargetProfile
;
303 DWORD ccTargetProfile
;
306 PCMSCALLBACKW lpfnApplyCallback
;
307 LPARAM lParamApplyCallback
;
308 } COLORMATCHSETUPW
, *PCOLORMATCHSETUPW
, *LPCOLORMATCHSETUPW
;
310 BOOL WINAPI
CloseColorProfile(HPROFILE
);
311 BOOL WINAPI
GetColorDirectoryA(PCSTR
,PSTR
,PDWORD
);
312 BOOL WINAPI
GetColorDirectoryW(PCWSTR
,PWSTR
,PDWORD
);
313 #define GetColorDirectory WINELIB_NAME_AW(GetColorDirectory)
314 BOOL WINAPI
GetColorProfileElement(HPROFILE
,TAGTYPE
,DWORD
,PDWORD
,PVOID
,PBOOL
);
315 BOOL WINAPI
GetColorProfileElementTag(HPROFILE
,DWORD
,PTAGTYPE
);
316 BOOL WINAPI
GetColorProfileFromHandle(HPROFILE
,PBYTE
,PDWORD
);
317 BOOL WINAPI
GetColorProfileHeader(HPROFILE
,PPROFILEHEADER
);
318 BOOL WINAPI
GetCountColorProfileElements(HPROFILE
,PDWORD
);
319 BOOL WINAPI
GetStandardColorSpaceProfileA(PCSTR
,DWORD
,PSTR
,PDWORD
);
320 BOOL WINAPI
GetStandardColorSpaceProfileW(PCWSTR
,DWORD
,PWSTR
,PDWORD
);
321 #define GetStandardColorSpaceProfile WINELIB_NAME_AW(GetStandardColorSpaceProfile)
322 BOOL WINAPI
InstallColorProfileA(PCSTR
,PCSTR
);
323 BOOL WINAPI
InstallColorProfileW(PCWSTR
,PCWSTR
);
324 #define InstallColorProfile WINELIB_NAME_AW(InstallColorProfile)
325 BOOL WINAPI
IsColorProfileTagPresent(HPROFILE
,TAGTYPE
,PBOOL
);
326 BOOL WINAPI
IsColorProfileValid(HPROFILE
,PBOOL
);
327 HPROFILE WINAPI
OpenColorProfileA(PPROFILE
,DWORD
,DWORD
,DWORD
);
328 HPROFILE WINAPI
OpenColorProfileW(PPROFILE
,DWORD
,DWORD
,DWORD
);
329 #define OpenColorProfile WINELIB_NAME_AW(OpenColorProfile)
330 BOOL WINAPI
SetColorProfileElement(HPROFILE
,TAGTYPE
,DWORD
,PDWORD
,PVOID
);
331 BOOL WINAPI
SetColorProfileHeader(HPROFILE
,PPROFILEHEADER
);
332 BOOL WINAPI
SetStandardColorSpaceProfileA(PCSTR
,DWORD
,PSTR
);
333 BOOL WINAPI
SetStandardColorSpaceProfileW(PCWSTR
,DWORD
,PWSTR
);
334 #define SetStandardColorSpaceProfile WINELIB_NAME_AW(SetStandardColorSpaceProfile)
335 BOOL WINAPI
SetupColorMatchingA(PCOLORMATCHSETUPA
);
336 BOOL WINAPI
SetupColorMatchingW(PCOLORMATCHSETUPW
);
337 #define SetupColorMatching WINELIB_NAME_AW(SetupColorMatching)
338 BOOL WINAPI
UninstallColorProfileA(PCSTR
,PCSTR
,BOOL
);
339 BOOL WINAPI
UninstallColorProfileW(PCWSTR
,PCWSTR
,BOOL
);
340 #define UninstallColorProfile WINELIB_NAME_AW(UninstallColorProfile)
342 #define PROFILE_FILENAME 1
343 #define PROFILE_MEMBUFFER 2
345 #define PROFILE_READ 1
346 #define PROFILE_READWRITE 2
348 #define SPACE_XYZ 0x58595A20 /* 'XYZ ' */
349 #define SPACE_Lab 0x4C616220 /* 'Lab ' */
350 #define SPACE_Luv 0x4C757620 /* 'Luv ' */
351 #define SPACE_YCbCr 0x59436272 /* 'YCbr' */
352 #define SPACE_Yxy 0x59787920 /* 'Yxy ' */
353 #define SPACE_RGB 0x52474220 /* 'RGB ' */
354 #define SPACE_GRAY 0x47524159 /* 'GRAY' */
355 #define SPACE_HSV 0x48535620 /* 'HSV ' */
356 #define SPACE_HLS 0x484C5320 /* 'HLS ' */
357 #define SPACE_CMYK 0x434D594B /* 'CMYK' */
358 #define SPACE_CMY 0x434D5920 /* 'CMY ' */
364 #endif /* __WINE_ICM_H */