summaryrefslogtreecommitdiffstats
path: root/lin2012xyz10e_fine_7sf.c
blob: cfd187956a71b240f8366fc98452770bc6fb3c8c (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
#define xytbl_first 3900	/* First value (units of 0.1 nm) */
#define xytbl_last  8300	/* Last value in table */
#define xytbl_step  10.0	/* Step size in nm^-1 */
#define xytbl_m     1.0e-10	/* Step size in m */


/*
 * 2016 CIE standard observer parameters;
 * table values obtained from http://www.cvrl.org/ciexyzpr.htm
 */

/* xy chromacity coordinates */
#define XYZTBLV(nm,X,Y,Z) {(X)/(X+Y+Z), (Y)/(X+Y+Z)}
static const struct cie_xy xytbl[xytbl_last - xytbl_first + 1] =
{
#include "lin2012xyz10e_fine_7sf.tab"
};
#undef XYZTBLV

/* XYZ coordinates */
#define XYZTBLV(nm,X,Y,Z) {(X), (Y), (Z)}
static const struct cie_XYZ XYZtbl[xytbl_last - xytbl_first + 1] =
{
#include "lin2012xyz10e_fine_7sf.tab"
};
#undef XYZTBLV