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

Comparing ray/src/common/color.h (file contents):
Revision 1.2 by greg, Tue Sep 12 12:25:34 1989 UTC vs.
Revision 1.3 by greg, Fri Oct 20 16:45:25 1989 UTC

# Line 46 | Line 46 | typedef float  COLOR[3];       /* red, green, blue */
46                                  ? (col)[0] > (col)[2] ? (col)[0] : (col)[2] \
47                                  : (col)[1] > (col)[2] ? (col)[1] : (col)[2] )
48  
49 + #define  colrval(c,p)           ( (c)[EXP] ? \
50 +                                ldexp((c)[p]+.5,(int)(c)[EXP]-(COLXS+8)) : \
51 +                                0. )
52 +
53 + #define  norm_bright(c)         (int)((77L*(c)[RED]+151L*(c)[GRN]+28L*(c)[BLU])/256)
54 +
55   #define  WHTCOLOR               {1.0,1.0,1.0}
56   #define  BLKCOLOR               {0.0,0.0,0.0}
57   #define  WHTCOLR                {128,128,128,COLXS+1}
58   #define  BLKCOLR                {0,0,0,0}
59  
60 <                                /* defines for resolution header */
60 >                                /* definitions for resolution header */
61   #define  XDECR                  1
62   #define  YDECR                  2
63   #define  YMAJOR                 4
64 +
65 + extern double  ldexp();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines