2004-01-08 01:40:22 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2004 (C) Mike McCormack
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_ICM_H
|
|
|
|
#define __WINE_ICM_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef HANDLE HPROFILE;
|
|
|
|
typedef HPROFILE *PHPROFILE;
|
|
|
|
typedef HANDLE HTRANSFORM;
|
|
|
|
|
|
|
|
typedef DWORD TAGTYPE, *PTAGTYPE, *LPTAGTYPE;
|
|
|
|
|
2004-10-22 21:56:51 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
2004-01-08 01:40:22 +01:00
|
|
|
BM_x555RGB = 0x00,
|
|
|
|
BM_565RGB = 0x01,
|
|
|
|
BM_RGBTRIPLETS = 0x02,
|
|
|
|
BM_BGRTRIPLETS = 0x04,
|
|
|
|
BM_xRGBQUADS = 0x08,
|
|
|
|
BM_10b_RGB = 0x09,
|
|
|
|
BM_16b_RGB = 0x0a,
|
|
|
|
BM_xBGRQUADS = 0x10,
|
|
|
|
BM_CMYKQUADS = 0x20,
|
|
|
|
BM_x555XYZ = 0x101,
|
|
|
|
BM_x555Yxz,
|
|
|
|
BM_x555Lab,
|
|
|
|
BM_x555G3CH,
|
|
|
|
BM_XYZTRIPLETS = 0x201,
|
|
|
|
BM_YxyTRIPLETS,
|
|
|
|
BM_LabTRIPLETS,
|
|
|
|
BM_G3CHTRIPLETS,
|
|
|
|
BM_5CHANNEL,
|
|
|
|
BM_6CHANNEL,
|
|
|
|
BM_7CHANNEL,
|
|
|
|
BM_8CHANNEL,
|
|
|
|
BM_GRAY,
|
|
|
|
BM_xXYZQUADS = 0x301,
|
|
|
|
BM_xYxyQUADS,
|
|
|
|
BM_xLabQUADS,
|
|
|
|
BM_xG3CHQUADS,
|
|
|
|
BM_KYMCQUADS,
|
|
|
|
BM_10b_XYZ = 0x401,
|
|
|
|
BM_10b_Yxy,
|
|
|
|
BM_10b_Lab,
|
|
|
|
BM_10b_G3CH,
|
|
|
|
BM_NAMED_INDEX,
|
|
|
|
BM_16b_XYZ = 0x501,
|
|
|
|
BM_16b_Yxy,
|
|
|
|
BM_16b_Lab,
|
|
|
|
BM_16b_G3CH,
|
|
|
|
BM_16b_GRAY,
|
|
|
|
} BMFORMAT, *PBMFORMAT, *LPBMFORMAT;
|
|
|
|
|
|
|
|
typedef BOOL (CALLBACK *PBMCALLBACKFN)(ULONG,ULONG,LPARAM);
|
|
|
|
typedef PBMCALLBACKFN LPPBMCALLBACKFN;
|
|
|
|
|
2004-10-22 21:56:51 +02:00
|
|
|
typedef struct tagPROFILEHEADER
|
|
|
|
{
|
2004-01-08 01:40:22 +01:00
|
|
|
DWORD phSize;
|
|
|
|
DWORD phCMMType;
|
|
|
|
DWORD phVersion;
|
|
|
|
DWORD phClass;
|
|
|
|
DWORD phDataColorSpace;
|
|
|
|
DWORD phConnectionSpace;
|
|
|
|
DWORD phDateTime[3];
|
|
|
|
DWORD phSignature;
|
|
|
|
DWORD phPlatform;
|
|
|
|
DWORD phProfileFlags;
|
|
|
|
DWORD phManufacturer;
|
|
|
|
DWORD phModel;
|
2004-11-30 22:06:14 +01:00
|
|
|
DWORD phAttributes[2];
|
2004-01-08 01:40:22 +01:00
|
|
|
DWORD phRenderingIntent;
|
|
|
|
CIEXYZ phIlluminant;
|
|
|
|
DWORD phCreator;
|
|
|
|
BYTE phReserved[44];
|
|
|
|
} PROFILEHEADER, *PPROFILEHEADER, *LPPROFILEHEADER;
|
|
|
|
|
2004-10-22 21:56:51 +02:00
|
|
|
typedef struct tagPROFILE
|
|
|
|
{
|
2004-01-08 01:40:22 +01:00
|
|
|
DWORD dwType;
|
|
|
|
PVOID pProfileData;
|
|
|
|
DWORD cbDataSize;
|
|
|
|
} PROFILE, *PPROFILE, *LPPROFILE;
|
|
|
|
|
2004-10-22 21:56:51 +02:00
|
|
|
|
|
|
|
struct _tagCOLORMATCHSETUPA;
|
|
|
|
struct _tagCOLORMATCHSETUPW;
|
|
|
|
|
|
|
|
typedef BOOL (WINAPI *PCMSCALLBACKA)(struct _tagCOLORMATCHSETUPA*,LPARAM);
|
|
|
|
typedef BOOL (WINAPI *PCMSCALLBACKW)(struct _tagCOLORMATCHSETUPW*,LPARAM);
|
|
|
|
|
|
|
|
typedef struct _tagCOLORMATCHSETUPA
|
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwFlags;
|
|
|
|
HWND hwndOwner;
|
|
|
|
PCSTR pSourceName;
|
|
|
|
PCSTR pDisplayName;
|
|
|
|
PCSTR pPrinterName;
|
|
|
|
DWORD dwRenderIntent;
|
|
|
|
DWORD dwProofingIntent;
|
|
|
|
PSTR pMonitorProfile;
|
|
|
|
DWORD ccMonitorProfile;
|
|
|
|
PSTR pPrinterProfile;
|
|
|
|
DWORD ccPrinterProfile;
|
|
|
|
PSTR pTargetProfile;
|
|
|
|
DWORD ccTargetProfile;
|
|
|
|
DLGPROC lpfnHook;
|
|
|
|
LPARAM lParam;
|
|
|
|
PCMSCALLBACKA lpfnApplyCallback;
|
|
|
|
LPARAM lParamApplyCallback;
|
|
|
|
} COLORMATCHSETUPA, *PCOLORMATCHSETUPA, *LPCOLORMATCHSETUPA;
|
|
|
|
|
|
|
|
typedef struct _tagCOLORMATCHSETUPW
|
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwFlags;
|
|
|
|
HWND hwndOwner;
|
|
|
|
PCWSTR pSourceName;
|
|
|
|
PCWSTR pDisplayName;
|
|
|
|
PCWSTR pPrinterName;
|
|
|
|
DWORD dwRenderIntent;
|
|
|
|
DWORD dwProofingIntent;
|
|
|
|
PWSTR pMonitorProfile;
|
|
|
|
DWORD ccMonitorProfile;
|
|
|
|
PWSTR pPrinterProfile;
|
|
|
|
DWORD ccPrinterProfile;
|
|
|
|
PWSTR pTargetProfile;
|
|
|
|
DWORD ccTargetProfile;
|
|
|
|
DLGPROC lpfnHook;
|
|
|
|
LPARAM lParam;
|
|
|
|
PCMSCALLBACKW lpfnApplyCallback;
|
|
|
|
LPARAM lParamApplyCallback;
|
|
|
|
} COLORMATCHSETUPW, *PCOLORMATCHSETUPW, *LPCOLORMATCHSETUPW;
|
|
|
|
|
|
|
|
BOOL WINAPI CloseColorProfile(HPROFILE);
|
2004-10-07 21:12:41 +02:00
|
|
|
BOOL WINAPI GetColorDirectoryA(PCSTR,PSTR,PDWORD);
|
|
|
|
BOOL WINAPI GetColorDirectoryW(PCWSTR,PWSTR,PDWORD);
|
|
|
|
#define GetColorDirectory WINELIB_NAME_AW(GetColorDirectory)
|
2004-11-21 16:48:18 +01:00
|
|
|
BOOL WINAPI GetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID,PBOOL);
|
|
|
|
BOOL WINAPI GetColorProfileElementTag(HPROFILE,DWORD,PTAGTYPE);
|
2004-11-30 22:06:14 +01:00
|
|
|
BOOL WINAPI GetColorProfileHeader(HPROFILE,PPROFILEHEADER);
|
2004-11-21 16:48:18 +01:00
|
|
|
BOOL WINAPI GetCountColorProfileElements(HPROFILE,PDWORD);
|
|
|
|
BOOL WINAPI GetStandardColorSpaceProfileA(PCSTR,DWORD,PSTR,PDWORD);
|
|
|
|
BOOL WINAPI GetStandardColorSpaceProfileW(PCWSTR,DWORD,PWSTR,PDWORD);
|
|
|
|
#define GetStandardColorSpaceProfile WINELIB_NAME_AW(GetStandardColorSpaceProfile)
|
2004-10-07 21:12:41 +02:00
|
|
|
BOOL WINAPI InstallColorProfileA(PCSTR,PCSTR);
|
|
|
|
BOOL WINAPI InstallColorProfileW(PCWSTR,PCWSTR);
|
|
|
|
#define InstallColorProfile WINELIB_NAME_AW(InstallColorProfile)
|
2004-11-21 16:48:18 +01:00
|
|
|
BOOL WINAPI IsColorProfileTagPresent(HPROFILE,TAGTYPE,PBOOL);
|
2004-11-19 19:22:20 +01:00
|
|
|
BOOL WINAPI IsColorProfileValid(HPROFILE,PBOOL);
|
2004-09-22 06:08:38 +02:00
|
|
|
HPROFILE WINAPI OpenColorProfileA(PPROFILE,DWORD,DWORD,DWORD);
|
|
|
|
HPROFILE WINAPI OpenColorProfileW(PPROFILE,DWORD,DWORD,DWORD);
|
|
|
|
#define OpenColorProfile WINELIB_NAME_AW(OpenColorProfile)
|
2004-11-30 22:06:14 +01:00
|
|
|
BOOL WINAPI SetColorProfileHeader(HPROFILE,PPROFILEHEADER);
|
2004-10-22 21:56:51 +02:00
|
|
|
BOOL WINAPI SetupColorMatchingA(PCOLORMATCHSETUPA);
|
|
|
|
BOOL WINAPI SetupColorMatchingW(PCOLORMATCHSETUPW);
|
|
|
|
#define SetupColorMatching WINELIB_NAME_AW(SetupColorMatching)
|
|
|
|
BOOL WINAPI UninstallColorProfileA(PCSTR,PCSTR,BOOL);
|
|
|
|
BOOL WINAPI UninstallColorProfileW(PCWSTR,PCWSTR,BOOL);
|
|
|
|
#define UninstallColorProfile WINELIB_NAME_AW(UninstallColorProfile)
|
2004-10-07 21:12:41 +02:00
|
|
|
|
2004-09-22 06:08:38 +02:00
|
|
|
#define PROFILE_FILENAME 1
|
|
|
|
#define PROFILE_MEMBUFFER 2
|
|
|
|
|
2004-10-07 21:12:41 +02:00
|
|
|
#define PROFILE_READ 1
|
|
|
|
#define PROFILE_READWRITE 2
|
|
|
|
|
2004-01-08 01:40:22 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __WINE_ICM_H */
|