VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/icm.h@ 53201

Last change on this file since 53201 was 53201, checked in by vboxsync, 11 years ago

Devices/Main: vmsvga updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.4 KB
Line 
1/*
2 * Copyright 2004 (C) Mike McCormack
3 *
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.
8 *
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.
13 *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __WINE_ICM_H
20#define __WINE_ICM_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef HANDLE HPROFILE;
27typedef HPROFILE *PHPROFILE;
28typedef HANDLE HTRANSFORM;
29
30typedef DWORD TAGTYPE, *PTAGTYPE, *LPTAGTYPE;
31
32typedef char COLOR_NAME[32];
33typedef COLOR_NAME *PCOLOR_NAME, *LPCOLOR_NAME;
34
35typedef struct tagNAMED_PROFILE_INFO
36{
37 DWORD dwFlags;
38 DWORD dwCount;
39 DWORD dwCountDevCoordinates;
40 COLOR_NAME szPrefix;
41 COLOR_NAME szSuffix;
42} NAMED_PROFILE_INFO, *PNAMED_PROFILE_INFO, *LPNAMED_PROFILE_INFO;
43
44#define MAX_COLOR_CHANNELS 8
45
46struct GRAYCOLOR
47{
48 WORD gray;
49};
50
51struct RGBCOLOR
52{
53 WORD red;
54 WORD green;
55 WORD blue;
56};
57
58struct CMYKCOLOR
59{
60 WORD cyan;
61 WORD magenta;
62 WORD yellow;
63 WORD black;
64};
65
66struct XYZCOLOR
67{
68 WORD X;
69 WORD Y;
70 WORD Z;
71};
72
73struct YxyCOLOR
74{
75 WORD Y;
76 WORD x;
77 WORD y;
78};
79
80struct LabCOLOR
81{
82 WORD L;
83 WORD a;
84 WORD b;
85};
86
87struct GENERIC3CHANNEL
88{
89 WORD ch1;
90 WORD ch2;
91 WORD ch3;
92};
93
94struct NAMEDCOLOR
95{
96 DWORD dwIndex;
97};
98
99struct HiFiCOLOR
100{
101 BYTE channel[MAX_COLOR_CHANNELS];
102};
103
104typedef union tagCOLOR
105{
106 struct GRAYCOLOR gray;
107 struct RGBCOLOR rgb;
108 struct CMYKCOLOR cmyk;
109 struct XYZCOLOR XYZ;
110 struct YxyCOLOR Yxy;
111 struct LabCOLOR Lab;
112 struct GENERIC3CHANNEL gen3ch;
113 struct NAMEDCOLOR named;
114 struct HiFiCOLOR hifi;
115 struct
116 {
117 DWORD reserved1;
118 VOID *reserved2;
119 } DUMMYSTRUCTNAME;
120} COLOR, *PCOLOR, *LPCOLOR;
121
122typedef enum
123{
124 COLOR_GRAY = 1,
125 COLOR_RGB,
126 COLOR_XYZ,
127 COLOR_Yxy,
128 COLOR_Lab,
129 COLOR_3_CHANNEL,
130 COLOR_CMYK,
131 COLOR_5_CHANNEL,
132 COLOR_6_CHANNEL,
133 COLOR_7_CHANNEL,
134 COLOR_8_CHANNEL,
135 COLOR_NAMED,
136} COLORTYPE, *PCOLORTYPE, *LPCOLORTYPE;
137
138typedef enum
139{
140 BM_x555RGB = 0x00,
141 BM_565RGB = 0x01,
142 BM_RGBTRIPLETS = 0x02,
143 BM_BGRTRIPLETS = 0x04,
144 BM_xRGBQUADS = 0x08,
145 BM_10b_RGB = 0x09,
146 BM_16b_RGB = 0x0a,
147 BM_xBGRQUADS = 0x10,
148 BM_CMYKQUADS = 0x20,
149 BM_x555XYZ = 0x101,
150 BM_x555Yxz,
151 BM_x555Lab,
152 BM_x555G3CH,
153 BM_XYZTRIPLETS = 0x201,
154 BM_YxyTRIPLETS,
155 BM_LabTRIPLETS,
156 BM_G3CHTRIPLETS,
157 BM_5CHANNEL,
158 BM_6CHANNEL,
159 BM_7CHANNEL,
160 BM_8CHANNEL,
161 BM_GRAY,
162 BM_xXYZQUADS = 0x301,
163 BM_xYxyQUADS,
164 BM_xLabQUADS,
165 BM_xG3CHQUADS,
166 BM_KYMCQUADS,
167 BM_10b_XYZ = 0x401,
168 BM_10b_Yxy,
169 BM_10b_Lab,
170 BM_10b_G3CH,
171 BM_NAMED_INDEX,
172 BM_16b_XYZ = 0x501,
173 BM_16b_Yxy,
174 BM_16b_Lab,
175 BM_16b_G3CH,
176 BM_16b_GRAY,
177} BMFORMAT, *PBMFORMAT, *LPBMFORMAT;
178
179typedef BOOL (CALLBACK *PBMCALLBACKFN)(ULONG,ULONG,LPARAM);
180typedef PBMCALLBACKFN LPPBMCALLBACKFN;
181
182#define INTENT_PERCEPTUAL 0
183#define INTENT_RELATIVE_COLORIMETRIC 1
184#define INTENT_SATURATION 2
185#define INTENT_ABSOLUTE_COLORIMETRIC 3
186
187typedef struct tagPROFILEHEADER
188{
189 DWORD phSize;
190 DWORD phCMMType;
191 DWORD phVersion;
192 DWORD phClass;
193 DWORD phDataColorSpace;
194 DWORD phConnectionSpace;
195 DWORD phDateTime[3];
196 DWORD phSignature;
197 DWORD phPlatform;
198 DWORD phProfileFlags;
199 DWORD phManufacturer;
200 DWORD phModel;
201 DWORD phAttributes[2];
202 DWORD phRenderingIntent;
203 CIEXYZ phIlluminant;
204 DWORD phCreator;
205 BYTE phReserved[44];
206} PROFILEHEADER, *PPROFILEHEADER, *LPPROFILEHEADER;
207
208typedef struct tagPROFILE
209{
210 DWORD dwType;
211 PVOID pProfileData;
212 DWORD cbDataSize;
213} PROFILE, *PPROFILE, *LPPROFILE;
214
215#define ENUM_TYPE_VERSION 0x0300
216
217typedef struct tagENUMTYPEA
218{
219 DWORD dwSize;
220 DWORD dwVersion;
221 DWORD dwFields;
222 PCSTR pDeviceName;
223 DWORD dwMediaType;
224 DWORD dwDitheringMode;
225 DWORD dwResolution[2];
226 DWORD dwCMMType;
227 DWORD dwClass;
228 DWORD dwDataColorSpace;
229 DWORD dwConnectionSpace;
230 DWORD dwSignature;
231 DWORD dwPlatform;
232 DWORD dwProfileFlags;
233 DWORD dwManufacturer;
234 DWORD dwModel;
235 DWORD dwAttributes[2];
236 DWORD dwRenderingIntent;
237 DWORD dwCreator;
238 DWORD dwDeviceClass;
239} ENUMTYPEA, *PENUMTYPEA, *LPENUMTYPEA;
240
241typedef struct tagENUMTYPEW
242{
243 DWORD dwSize;
244 DWORD dwVersion;
245 DWORD dwFields;
246 PCWSTR pDeviceName;
247 DWORD dwMediaType;
248 DWORD dwDitheringMode;
249 DWORD dwResolution[2];
250 DWORD dwCMMType;
251 DWORD dwClass;
252 DWORD dwDataColorSpace;
253 DWORD dwConnectionSpace;
254 DWORD dwSignature;
255 DWORD dwPlatform;
256 DWORD dwProfileFlags;
257 DWORD dwManufacturer;
258 DWORD dwModel;
259 DWORD dwAttributes[2];
260 DWORD dwRenderingIntent;
261 DWORD dwCreator;
262 DWORD dwDeviceClass;
263} ENUMTYPEW, *PENUMTYPEW, *LPENUMTYPEW;
264
265#define ET_DEVICENAME 0x00000001
266#define ET_MEDIATYPE 0x00000002
267#define ET_DITHERMODE 0x00000004
268#define ET_RESOLUTION 0x00000008
269#define ET_CMMTYPE 0x00000010
270#define ET_CLASS 0x00000020
271#define ET_DATACOLORSPACE 0x00000040
272#define ET_CONNECTIONSPACE 0x00000080
273#define ET_SIGNATURE 0x00000100
274#define ET_PLATFORM 0x00000200
275#define ET_PROFILEFLAGS 0x00000400
276#define ET_MANUFACTURER 0x00000800
277#define ET_MODEL 0x00001000
278#define ET_ATTRIBUTES 0x00002000
279#define ET_RENDERINGINTENT 0x00004000
280#define ET_CREATOR 0x00008000
281#define ET_DEVICECLASS 0x00010000
282
283struct _tagCOLORMATCHSETUPA;
284struct _tagCOLORMATCHSETUPW;
285
286typedef BOOL (WINAPI *PCMSCALLBACKA)(struct _tagCOLORMATCHSETUPA*,LPARAM);
287typedef BOOL (WINAPI *PCMSCALLBACKW)(struct _tagCOLORMATCHSETUPW*,LPARAM);
288
289typedef struct _tagCOLORMATCHSETUPA
290{
291 DWORD dwSize;
292 DWORD dwVersion;
293 DWORD dwFlags;
294 HWND hwndOwner;
295 PCSTR pSourceName;
296 PCSTR pDisplayName;
297 PCSTR pPrinterName;
298 DWORD dwRenderIntent;
299 DWORD dwProofingIntent;
300 PSTR pMonitorProfile;
301 DWORD ccMonitorProfile;
302 PSTR pPrinterProfile;
303 DWORD ccPrinterProfile;
304 PSTR pTargetProfile;
305 DWORD ccTargetProfile;
306 DLGPROC lpfnHook;
307 LPARAM lParam;
308 PCMSCALLBACKA lpfnApplyCallback;
309 LPARAM lParamApplyCallback;
310} COLORMATCHSETUPA, *PCOLORMATCHSETUPA, *LPCOLORMATCHSETUPA;
311
312typedef struct _tagCOLORMATCHSETUPW
313{
314 DWORD dwSize;
315 DWORD dwVersion;
316 DWORD dwFlags;
317 HWND hwndOwner;
318 PCWSTR pSourceName;
319 PCWSTR pDisplayName;
320 PCWSTR pPrinterName;
321 DWORD dwRenderIntent;
322 DWORD dwProofingIntent;
323 PWSTR pMonitorProfile;
324 DWORD ccMonitorProfile;
325 PWSTR pPrinterProfile;
326 DWORD ccPrinterProfile;
327 PWSTR pTargetProfile;
328 DWORD ccTargetProfile;
329 DLGPROC lpfnHook;
330 LPARAM lParam;
331 PCMSCALLBACKW lpfnApplyCallback;
332 LPARAM lParamApplyCallback;
333} COLORMATCHSETUPW, *PCOLORMATCHSETUPW, *LPCOLORMATCHSETUPW;
334
335BOOL WINAPI AssociateColorProfileWithDeviceA(PCSTR,PCSTR,PCSTR);
336BOOL WINAPI AssociateColorProfileWithDeviceW(PCWSTR,PCWSTR,PCWSTR);
337#define AssociateColorProfileWithDevice WINELIB_NAME_AW(AssociateColorProfileWithDevice)
338BOOL WINAPI CheckBitmapBits(HTRANSFORM,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PBYTE,PBMCALLBACKFN,LPARAM);
339BOOL WINAPI CheckColors(HTRANSFORM,PCOLOR,DWORD,COLORTYPE,PBYTE);
340BOOL WINAPI ConvertColorNameToIndex(HPROFILE,PCOLOR_NAME,PDWORD,DWORD);
341BOOL WINAPI ConvertIndexToColorName(HPROFILE,PDWORD,PCOLOR_NAME,DWORD);
342BOOL WINAPI CloseColorProfile(HPROFILE);
343HTRANSFORM WINAPI CreateColorTransformA(LPLOGCOLORSPACEA,HPROFILE,HPROFILE,DWORD);
344HTRANSFORM WINAPI CreateColorTransformW(LPLOGCOLORSPACEW,HPROFILE,HPROFILE,DWORD);
345#define CreateColorTransform WINELIB_NAME_AW(CreateColorTransform)
346BOOL WINAPI CreateDeviceLinkProfile(PHPROFILE,DWORD,PDWORD,DWORD,DWORD,PBYTE*,DWORD);
347HTRANSFORM WINAPI CreateMultiProfileTransform(PHPROFILE,DWORD,PDWORD,DWORD,DWORD,DWORD);
348BOOL WINAPI CreateProfileFromLogColorSpaceA(LPLOGCOLORSPACEA,PBYTE*);
349BOOL WINAPI CreateProfileFromLogColorSpaceW(LPLOGCOLORSPACEW,PBYTE*);
350#define CreateProfileFromLogColorSpace WINELIB_NAME_AW(CreateProfileFromLogColorSpace)
351BOOL WINAPI DeleteColorTransform(HTRANSFORM);
352BOOL WINAPI DisassociateColorProfileFromDeviceA(PCSTR,PCSTR,PCSTR);
353BOOL WINAPI DisassociateColorProfileFromDeviceW(PCWSTR,PCWSTR,PCWSTR);
354#define DisassociateColorProfileFromDevice WINELIB_NAME_AW(DisassociateColorProfileFromDevice)
355BOOL WINAPI EnumColorProfilesA(PCSTR,PENUMTYPEA,PBYTE,PDWORD,PDWORD);
356BOOL WINAPI EnumColorProfilesW(PCWSTR,PENUMTYPEW,PBYTE,PDWORD,PDWORD);
357#define EnumColorProfiles WINELIB_NAME_AW(EnumColorProfiles)
358DWORD WINAPI GenerateCopyFilePaths(LPCWSTR,LPCWSTR,LPBYTE,DWORD,LPWSTR,LPDWORD,LPWSTR,LPDWORD,DWORD);
359DWORD WINAPI GetCMMInfo(HTRANSFORM,DWORD);
360BOOL WINAPI GetColorDirectoryA(PCSTR,PSTR,PDWORD);
361BOOL WINAPI GetColorDirectoryW(PCWSTR,PWSTR,PDWORD);
362#define GetColorDirectory WINELIB_NAME_AW(GetColorDirectory)
363BOOL WINAPI GetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID,PBOOL);
364BOOL WINAPI GetColorProfileElementTag(HPROFILE,DWORD,PTAGTYPE);
365BOOL WINAPI GetColorProfileFromHandle(HPROFILE,PBYTE,PDWORD);
366BOOL WINAPI GetColorProfileHeader(HPROFILE,PPROFILEHEADER);
367BOOL WINAPI GetCountColorProfileElements(HPROFILE,PDWORD);
368BOOL WINAPI GetNamedProfileInfo(HPROFILE,PNAMED_PROFILE_INFO);
369BOOL WINAPI GetPS2ColorRenderingDictionary(HPROFILE,DWORD,PBYTE,PDWORD,PBOOL);
370BOOL WINAPI GetPS2ColorRenderingIntent(HPROFILE,DWORD,PBYTE,PDWORD);
371BOOL WINAPI GetPS2ColorSpaceArray(HPROFILE,DWORD,DWORD,PBYTE,PDWORD,PBOOL);
372BOOL WINAPI GetStandardColorSpaceProfileA(PCSTR,DWORD,PSTR,PDWORD);
373BOOL WINAPI GetStandardColorSpaceProfileW(PCWSTR,DWORD,PWSTR,PDWORD);
374#define GetStandardColorSpaceProfile WINELIB_NAME_AW(GetStandardColorSpaceProfile)
375BOOL WINAPI InstallColorProfileA(PCSTR,PCSTR);
376BOOL WINAPI InstallColorProfileW(PCWSTR,PCWSTR);
377#define InstallColorProfile WINELIB_NAME_AW(InstallColorProfile)
378BOOL WINAPI IsColorProfileTagPresent(HPROFILE,TAGTYPE,PBOOL);
379BOOL WINAPI IsColorProfileValid(HPROFILE,PBOOL);
380HPROFILE WINAPI OpenColorProfileA(PPROFILE,DWORD,DWORD,DWORD);
381HPROFILE WINAPI OpenColorProfileW(PPROFILE,DWORD,DWORD,DWORD);
382#define OpenColorProfile WINELIB_NAME_AW(OpenColorProfile)
383BOOL WINAPI RegisterCMMA(PCSTR,DWORD,PCSTR);
384BOOL WINAPI RegisterCMMW(PCWSTR,DWORD,PCWSTR);
385#define RegisterCMM WINELIB_NAME_AW(RegisterCMM)
386BOOL WINAPI SelectCMM(DWORD id);
387BOOL WINAPI SetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID);
388BOOL WINAPI SetColorProfileElementReference(HPROFILE,TAGTYPE,TAGTYPE);
389BOOL WINAPI SetColorProfileElementSize(HPROFILE,TAGTYPE,DWORD);
390BOOL WINAPI SetColorProfileHeader(HPROFILE,PPROFILEHEADER);
391BOOL WINAPI SetStandardColorSpaceProfileA(PCSTR,DWORD,PSTR);
392BOOL WINAPI SetStandardColorSpaceProfileW(PCWSTR,DWORD,PWSTR);
393#define SetStandardColorSpaceProfile WINELIB_NAME_AW(SetStandardColorSpaceProfile)
394BOOL WINAPI SetupColorMatchingA(PCOLORMATCHSETUPA);
395BOOL WINAPI SetupColorMatchingW(PCOLORMATCHSETUPW);
396#define SetupColorMatching WINELIB_NAME_AW(SetupColorMatching)
397BOOL WINAPI SpoolerCopyFileEvent(LPWSTR,LPWSTR,DWORD);
398BOOL WINAPI TranslateBitmapBits(HTRANSFORM,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PVOID,BMFORMAT,DWORD,PBMCALLBACKFN,ULONG);
399BOOL WINAPI TranslateColors(HTRANSFORM,PCOLOR,DWORD,COLORTYPE,PCOLOR,COLORTYPE);
400BOOL WINAPI UninstallColorProfileA(PCSTR,PCSTR,BOOL);
401BOOL WINAPI UninstallColorProfileW(PCWSTR,PCWSTR,BOOL);
402#define UninstallColorProfile WINELIB_NAME_AW(UninstallColorProfile)
403BOOL WINAPI UnregisterCMMA(PCSTR,DWORD);
404BOOL WINAPI UnregisterCMMW(PCWSTR,DWORD);
405#define UnregisterCMM WINELIB_NAME_AW(UnregisterCMM)
406
407#define PROFILE_FILENAME 1
408#define PROFILE_MEMBUFFER 2
409
410#define PROFILE_READ 1
411#define PROFILE_READWRITE 2
412
413#define SPACE_XYZ 0x58595A20 /* 'XYZ ' */
414#define SPACE_Lab 0x4C616220 /* 'Lab ' */
415#define SPACE_Luv 0x4C757620 /* 'Luv ' */
416#define SPACE_YCbCr 0x59436272 /* 'YCbr' */
417#define SPACE_Yxy 0x59787920 /* 'Yxy ' */
418#define SPACE_RGB 0x52474220 /* 'RGB ' */
419#define SPACE_GRAY 0x47524159 /* 'GRAY' */
420#define SPACE_HSV 0x48535620 /* 'HSV ' */
421#define SPACE_HLS 0x484C5320 /* 'HLS ' */
422#define SPACE_CMYK 0x434D594B /* 'CMYK' */
423#define SPACE_CMY 0x434D5920 /* 'CMY ' */
424#define SPACE_2_CHANNEL 0x32434c52 /* '2CLR' */
425#define SPACE_3_CHANNEL 0x33434c52 /* '3CLR' */
426#define SPACE_4_CHANNEL 0x34434c52 /* '4CLR' */
427#define SPACE_5_CHANNEL 0x35434c52 /* '5CLR' */
428#define SPACE_6_CHANNEL 0x36434c52 /* '6CLR' */
429#define SPACE_7_CHANNEL 0x37434c52 /* '7CLR' */
430#define SPACE_8_CHANNEL 0x38434c52 /* '8CLR' */
431
432#ifdef __cplusplus
433}
434#endif
435
436#endif /* __WINE_ICM_H */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette