aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/any-windows-any/wcsplugin.h
blob: 043aaf78ae0fe435464641ffd327d8c80028ffb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _INC_WCSPLUGIN
#define _INC_WCSPLUGIN
#if (_WIN32_WINNT >= 0x0600)

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _BlackInformation {
  WINBOOL  bBlackOnly;
  FLOAT blackWeight;
} BlackInformation;

typedef struct _JabColorF {
  FLOAT J;
  FLOAT a;
  FLOAT b;
} JabColorF;

typedef struct _PrimaryJabColors {
  JabColorF red;
  JabColorF yellow;
  JabColorF green;
  JabColorF cyan;
  JabColorF blue;
  JabColorF magenta;
  JabColorF black;
  JabColorF white;
} PrimaryJabColors;

typedef struct _GamutShellTriangle {
  UINT aVertexIndex[3];
} GamutShellTriangle;

typedef struct _GamutShell {
  FLOAT                                    JMin;
  FLOAT                                    JMax;
  UINT                                     cVertices;
  UINT                                     cTriangles;
  JabColorF                                *pVertices;
  GamutShellTriangle                       *pTriangles;
} GamutShell;

typedef struct _GamutBoundaryDescription {
  PrimaryJabColors                      primaries;
  UINT                                 cNeutralSamples
  JabColorF                            *pNeutralSamples;
  GamutShell                           *pReferenceShell;
  GamutShell                           *pPlausibleShell;
  GamutShell                           *pPossibleShell;
} GamutBoundaryDescription;

typedef struct _PrimaryJabColors {
  JabColorF red;
  JabColorF yellow;
  JabColorF green;
  JabColorF cyan;
  JabColorF blue;
  JabColorF magenta;
  JabColorF black;
  JabColorF white;
} PrimaryJabColors;

typedef struct _XYZColorF {
  FLOAT X;
  FLOAT Y;
  FLOAT Z;
} XYZColorF;

typedef struct _PrimaryXYZColors {
  XYZColorF red;
  XYZColorF yellow;
  XYZColorF green;
  XYZColorF cyan;
  XYZColorF blue;
  XYZColorF magenta;
  XYZColorF black;
  XYZColorF white;
} PrimaryXYZColors;

#ifdef __cplusplus
}
#endif
#endif /*(_WIN32_WINNT >= 0x0600)*/
#endif /*_INC_WCSPLUGIN*/