icm.h revision b955672b950093ff7416d1269dd4d3b69983bd8f
/*
* Copyright 2004 (C) Mike McCormack
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_ICM_H
#define __WINE_ICM_H
#ifdef __cplusplus
extern "C" {
#endif
typedef HANDLE HTRANSFORM;
typedef char COLOR_NAME[32];
typedef struct tagNAMED_PROFILE_INFO
{
#define MAX_COLOR_CHANNELS 8
struct GRAYCOLOR
{
};
struct RGBCOLOR
{
};
struct CMYKCOLOR
{
};
struct XYZCOLOR
{
WORD X;
WORD Y;
WORD Z;
};
struct YxyCOLOR
{
WORD Y;
WORD x;
WORD y;
};
struct LabCOLOR
{
WORD L;
WORD a;
WORD b;
};
struct GENERIC3CHANNEL
{
};
struct NAMEDCOLOR
{
};
struct HiFiCOLOR
{
};
typedef union tagCOLOR
{
struct GENERIC3CHANNEL gen3ch;
struct NAMEDCOLOR named;
struct
{
typedef enum
{
COLOR_GRAY = 1,
typedef enum
{
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_XYZTRIPLETS = 0x201,
BM_xXYZQUADS = 0x301,
BM_10b_XYZ = 0x401,
BM_16b_XYZ = 0x501,
typedef PBMCALLBACKFN LPPBMCALLBACKFN;
typedef struct tagPROFILEHEADER
{
typedef struct tagPROFILE
{
#define ENUM_TYPE_VERSION 0x0300
typedef struct tagENUMTYPEA
{
typedef struct tagENUMTYPEW
{
#define ET_DEVICENAME 0x00000001
#define ET_MEDIATYPE 0x00000002
#define ET_DITHERMODE 0x00000004
#define ET_RESOLUTION 0x00000008
#define ET_CMMTYPE 0x00000010
#define ET_CLASS 0x00000020
#define ET_DATACOLORSPACE 0x00000040
#define ET_CONNECTIONSPACE 0x00000080
#define ET_SIGNATURE 0x00000100
#define ET_PLATFORM 0x00000200
#define ET_PROFILEFLAGS 0x00000400
#define ET_MANUFACTURER 0x00000800
#define ET_MODEL 0x00001000
#define ET_ATTRIBUTES 0x00002000
#define ET_RENDERINGINTENT 0x00004000
#define ET_CREATOR 0x00008000
#define ET_DEVICECLASS 0x00010000
struct _tagCOLORMATCHSETUPA;
struct _tagCOLORMATCHSETUPW;
typedef struct _tagCOLORMATCHSETUPA
{
typedef struct _tagCOLORMATCHSETUPW
{
BOOL WINAPI CheckBitmapBits(HTRANSFORM,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PBYTE,PBMCALLBACKFN,LPARAM);
DWORD WINAPI GenerateCopyFilePaths(LPCWSTR,LPCWSTR,LPBYTE,DWORD,LPWSTR,LPDWORD,LPWSTR,LPDWORD,DWORD);
BOOL WINAPI TranslateBitmapBits(HTRANSFORM,PVOID,BMFORMAT,DWORD,DWORD,DWORD,PVOID,BMFORMAT,DWORD,PBMCALLBACKFN,ULONG);
#define PROFILE_FILENAME 1
#define PROFILE_MEMBUFFER 2
#define PROFILE_READ 1
#define PROFILE_READWRITE 2
#ifdef __cplusplus
}
#endif
#endif /* __WINE_ICM_H */