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.3 by greg, Fri Oct 20 16:45:25 1989 UTC vs.
Revision 1.6 by greg, Tue Jan 9 10:57:30 1990 UTC

# Line 50 | Line 50 | typedef float  COLOR[3];       /* red, green, blue */
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)
53 > #define  normbright(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}
# Line 62 | Line 62 | typedef float  COLOR[3];       /* red, green, blue */
62   #define  YDECR                  2
63   #define  YMAJOR                 4
64  
65 < extern double  ldexp();
65 >                                /* macros for exposures */
66 > #define  EXPOSSTR               "EXPOSURE="
67 > #define  EXPOSSTRL              9
68 > #define  isexpos(hl)            (!strncmp(hl,EXPOSSTR,EXPOSSTRL))
69 > #define  exposval(hl)           atof((hl)+EXPOSSTRL)
70 > #define  fputexpos(ex,fp)       fprintf(fp,"%s%e\n",EXPOSSTR,ex)
71 >
72 >                                /* macros for pixel aspect ratios */
73 > #define  ASPECTSTR              "PIXASPECT="
74 > #define  ASPECTSTRL             10
75 > #define  isaspect(hl)           (!strncmp(hl,ASPECTSTR,ASPECTSTRL))
76 > #define  aspectval(hl)          atof((hl)+ASPECTSTRL)
77 > #define  fputaspect(pa,fp)      fprintf(fp,"%s%f\n",ASPECTSTR,pa)
78 >
79 > extern double  ldexp(), atof();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines