47 |
|
extern int what2do; /* desired adjustments */ |
48 |
|
|
49 |
|
extern double ldmax; /* maximum output luminance */ |
50 |
< |
extern double ldmin; /* minimum output luminance */ |
51 |
< |
extern double Bldmin, Bldmax; /* Bl(ldmin) and Bl(ldmax) */ |
50 |
> |
extern double lddyn; /* display dynamic range */ |
51 |
> |
extern double Bldmin, Bldmax; /* Bl(ldmax/lddyn) and Bl(ldmax) */ |
52 |
|
|
53 |
|
extern char *progname; /* global argv[0] */ |
54 |
|
|
61 |
|
#define plum(clr) ((*lumf)(clr,0)/inpexp) |
62 |
|
#define slum(clr) ((*lumf)(clr,1)/inpexp) |
63 |
|
|
64 |
+ |
#define ldmin (ldmax/lddyn) |
65 |
+ |
|
66 |
|
extern COLOR *fovimg; /* foveal (1 degree) averaged image */ |
67 |
|
extern short fvxr, fvyr; /* foveal image resolution */ |
68 |
|
|
91 |
|
extern RESOLU inpres; /* input picture resolution */ |
92 |
|
|
93 |
|
extern char *mbcalfile; /* macbethcal mapping file */ |
94 |
+ |
extern char *cwarpfile; /* color warp mapping file */ |
95 |
|
|
96 |
|
extern double hacuity(); /* human acuity func. (cycles/deg.) */ |
97 |
|
extern double htcontrs(); /* human contrast sens. func. */ |