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.14 by greg, Thu Oct 24 12:15:07 1991 UTC vs.
Revision 2.5 by greg, Fri Jun 4 14:51:41 1993 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   /* SCCSid "$SunId$ LBL" */
4  
# 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 72 | Line 72 | typedef float  COLOR[3];       /* red, green, blue */
72   #define  WHTCOLR                {128,128,128,COLXS+1}
73   #define  BLKCOLR                {0,0,0,0}
74  
75                                /* definitions for resolution header */
76 #define  XDECR                  1
77 #define  YDECR                  2
78 #define  YMAJOR                 4
79
75                                  /* picture format identifier */
76   #define  COLRFMT                "32-bit_rle_rgbe"
77  
# Line 102 | 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])
105
106 extern double  ldexp(), atof();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines