| 1 |
< |
/* Copyright (c) 1997 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 2 |
|
|
| 3 |
< |
/* SCCSid "$SunId$ LBL" */ |
| 3 |
> |
/* SCCSid "$SunId$ SGI" */ |
| 4 |
|
|
| 5 |
|
/* |
| 6 |
|
* Header file for picture file conditioning. |
| 25 |
|
|
| 26 |
|
#define HISTRES 100 /* histogram resolution */ |
| 27 |
|
|
| 28 |
< |
#define LMIN 1e-4 /* minimum visible world luminance */ |
| 28 |
> |
#define LMIN 1e-7 /* minimum visible world luminance */ |
| 29 |
|
#define LMAX 1e5 /* maximum visible world luminance */ |
| 30 |
|
|
| 31 |
|
#define Bl(Lw) log(Lw) /* brightness function */ |
| 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 |
|
|
| 60 |
|
|
| 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 */ |