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 2.2 by greg, Thu Dec 19 14:45:43 1991 UTC vs.
Revision 2.3 by greg, Thu May 28 09:25:26 1992 UTC

# Line 42 | Line 42 | typedef float  COLOR[3];       /* red, green, blue */
42  
43   #ifdef  NTSC
44   #define  bright(col)            (.295*(col)[RED]+.636*(col)[GRN]+.070*(col)[BLU])
45 < #define  normbright(c)          (int)((74L*(c)[RED]+164L*(c)[GRN]+18L*(c)[BLU])/256)
45 > #define  normbright(c)          (int)((74L*(c)[RED]+164L*(c)[GRN]+18L*(c)[BLU])>>8)
46   #else
47   #define  bright(col)            (.263*(col)[RED]+.655*(col)[GRN]+.082*(col)[BLU])
48 < #define  normbright(c)          (int)((67L*(c)[RED]+168L*(c)[GRN]+21L*(c)[BLU])/256)
48 > #define  normbright(c)          (int)((67L*(c)[RED]+168L*(c)[GRN]+21L*(c)[BLU])>>8)
49   #endif
50  
51                                  /* luminous efficacies over visible spectrum */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines