ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcond.h
(Generate patch)

Comparing ray/src/px/pcond.h (file contents):
Revision 3.2 by greg, Fri Oct 4 18:34:56 1996 UTC vs.
Revision 3.4 by greg, Thu Jan 9 13:56:26 1997 UTC

# Line 18 | Line 18
18   #define SWNORM          2.26            /* scotopic/photopic ratio for white */
19   #define WHTSEFFICACY    (SWNORM*WHTEFFICACY)
20  
21 + #define BotMesopic      5.62e-3         /* top of scotopic range */
22 + #define TopMesopic      5.62            /* bottom of photopic range */
23 +
24   #define FOVDIA          (1.0*PI/180.)   /* foveal diameter (radians) */
25  
26   #define HISTRES         100             /* histogram resolution */
# Line 62 | Line 65 | extern short   fvxr, fvyr;             /* foveal image resolution *
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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines