7 |
|
|
8 |
|
#include <errno.h> |
9 |
|
#include "rtio.h" |
10 |
– |
#include "resolu.h" |
10 |
|
#include "rmatrix.h" |
11 |
|
#include "platform.h" |
12 |
|
|
142 |
|
|
143 |
|
/* Use the spectral sensitivity function to compute matrix coefficients */ |
144 |
|
static void |
145 |
< |
sensrow(ROPMAT *rop, int r, double (*sf)(SCOLOR sc, int ncs, const float wlpt[4])) |
145 |
> |
sensrow(ROPMAT *rop, int r, double (*sf)(const SCOLOR sc, int ncs, const float wlpt[4])) |
146 |
|
{ |
147 |
|
const int nc = rop->mtx->ncomp; |
148 |
|
int i; |
255 |
|
} |
256 |
|
} |
257 |
|
/* return recommended output type */ |
258 |
< |
if (!strcmp(rop->preop.csym, "XYZ")) { |
258 |
> |
if (!strcasecmp(rop->preop.csym, "XYZ")) { |
259 |
|
if (dt <= DTspec) |
260 |
|
return(DTxyze); |
261 |
< |
} else if (!strcmp(rop->preop.csym, "RGB")) { |
261 |
> |
} else if (!strcasecmp(rop->preop.csym, "RGB")) { |
262 |
|
if (dt <= DTspec) |
263 |
|
return(DTrgbe); |
264 |
|
} else if (dt == DTspec) |