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.5 by greg, Fri Jun 4 14:51:41 1993 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 */
# Line 97 | Line 97 | typedef float  COLOR[3];       /* red, green, blue */
97                                          &(cc)[RED],&(cc)[GRN],&(cc)[BLU])
98   #define  fputcolcor(cc,fp)      fprintf(fp,"%s %f %f %f\n",COLCORSTR, \
99                                          (cc)[RED],(cc)[GRN],(cc)[BLU])
100
101 extern double  ldexp();
102 #ifndef atof                    /* atof's a macro on some systems! */
103 extern double  atof();
104 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines