| 65 |  |  | 
| 66 |  | #define fovscan(y)      (fovimg+(y)*fvxr) | 
| 67 |  |  | 
| 68 | < | extern int      bwhist[HISTRES];        /* luminance histogram */ | 
| 69 | < | extern long     histot;                 /* total count of histogram */ | 
| 68 | > | extern float    bwhist[HISTRES];        /* luminance histogram */ | 
| 69 | > | extern double   histot;                 /* total count of histogram */ | 
| 70 |  | extern double   bwmin, bwmax;           /* histogram limits */ | 
| 71 |  | extern double   bwavg;                  /* mean brightness */ | 
| 72 |  |  | 
| 73 | < | #define bwhc(B)         bwhist[(int)(HISTRES*((B)-bwmin)/(bwmax-bwmin))] | 
| 73 | > | #define bwhi(B)         (int)(HISTRES*((B)-bwmin)/(bwmax-bwmin)) | 
| 74 |  |  | 
| 75 |  | extern RGBPRIMP inprims;                /* input primaries */ | 
| 76 |  | extern COLORMAT inrgb2xyz;              /* convert input RGB to XYZ */ |