59 |
|
char *tralist[MAXMODLIST]; /* list of modifers to trace (or no) */ |
60 |
|
int traincl = -1; /* include == 1, exclude == 0 */ |
61 |
|
|
62 |
< |
double (*sens_curve)(SCOLOR scol) = NULL; /* spectral conversion for 1-channel */ |
62 |
> |
double (*sens_curve)(const SCOLOR scol) = NULL; /* spectral conversion for 1-channel */ |
63 |
|
double out_scalefactor = 1; /* output calibration scale factor */ |
64 |
|
RGBPRIMP out_prims = stdprims; /* output color primitives (NULL if spectral) */ |
65 |
|
static RGBPRIMS our_prims; /* private output color primitives */ |
77 |
|
"HessianAmbientCache\nAmbientAveraging\n" \ |
78 |
|
"AmbientValueSharing\nAdaptiveShadowTesting\n" \ |
79 |
|
"InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \ |
80 |
< |
"Outputs=o,d,v,V,w,W,l,L,c,p,n,N,s,m,M,r,x,R,X,~\n" |
80 |
> |
"Outputs=o,d,v,V,w,W,l,L,c,p,n,N,s,m,M,r,x,R,X,~\n" \ |
81 |
> |
"OutputCS=RGB,XYZ,Y,S,M,prims,spec\n" |
82 |
|
#else |
83 |
|
#define RTRACE_FEATURES "IrradianceCalc\nIrradianceCalc\nDistanceLimiting\n" \ |
84 |
|
"ParticipatingMedia=Mist\n" \ |
85 |
|
"HessianAmbientCache\nAmbientAveraging\n" \ |
86 |
|
"AmbientValueSharing\nAdaptiveShadowTesting\n" \ |
87 |
|
"InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \ |
88 |
< |
"Outputs=o,d,v,V,w,W,l,L,c,p,n,N,s,m,M,r,x,R,X,~\n" |
88 |
> |
"Outputs=o,d,v,V,w,W,l,L,c,p,n,N,s,m,M,r,x,R,X,~\n" \ |
89 |
> |
"OutputCS=RGB,XYZ,Y,S,M,prims,spec\n" |
90 |
|
#endif |
91 |
|
|
92 |
|
|
296 |
|
sens_curve = NULL; |
297 |
|
} break; |
298 |
|
case 'Y': /* photopic response */ |
299 |
+ |
if (argv[i][3]) |
300 |
+ |
goto badopt; |
301 |
|
sens_curve = scolor_photopic; |
302 |
|
out_scalefactor = WHTEFFICACY; |
303 |
|
break; |
304 |
|
case 'S': /* scotopic response */ |
305 |
+ |
if (argv[i][3]) |
306 |
+ |
goto badopt; |
307 |
|
sens_curve = scolor_scotopic; |
308 |
|
out_scalefactor = WHTSCOTOPIC; |
309 |
|
break; |
310 |
|
case 'M': /* melanopic response */ |
311 |
+ |
if (argv[i][3]) |
312 |
+ |
goto badopt; |
313 |
|
sens_curve = scolor_melanopic; |
314 |
|
out_scalefactor = WHTMELANOPIC; |
315 |
|
break; |
632 |
|
out_prims[GRN][0], out_prims[GRN][1], |
633 |
|
out_prims[BLU][0], out_prims[BLU][1], |
634 |
|
out_prims[WHT][0], out_prims[WHT][1]); |
635 |
< |
if (NCSAMP > 3) |
635 |
> |
if ((sens_curve == NULL) & (NCSAMP > 3)) |
636 |
|
printf(out_prims != NULL ? "-co-\t\t\t\t# output tristimulus colors\n" : |
637 |
|
"-co+\t\t\t\t# output spectral values\n"); |
638 |
|
print_rdefaults(); |