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.11 by greg, Thu Apr 18 12:54:22 1991 UTC vs.
Revision 1.12 by greg, Wed Jul 17 11:52:25 1991 UTC

# Line 73 | Line 73 | typedef float  COLOR[3];       /* red, green, blue */
73  
74                                  /* macros for exposures */
75   #define  EXPOSSTR               "EXPOSURE="
76 < #define  EXPOSSTRL              9
77 < #define  isexpos(hl)            (!strncmp(hl,EXPOSSTR,EXPOSSTRL))
78 < #define  exposval(hl)           atof((hl)+EXPOSSTRL)
76 > #define  LEXPOSSTR              9
77 > #define  isexpos(hl)            (!strncmp(hl,EXPOSSTR,LEXPOSSTR))
78 > #define  exposval(hl)           atof((hl)+LEXPOSSTR)
79   #define  fputexpos(ex,fp)       fprintf(fp,"%s%e\n",EXPOSSTR,ex)
80  
81                                  /* macros for pixel aspect ratios */
82   #define  ASPECTSTR              "PIXASPECT="
83 < #define  ASPECTSTRL             10
84 < #define  isaspect(hl)           (!strncmp(hl,ASPECTSTR,ASPECTSTRL))
85 < #define  aspectval(hl)          atof((hl)+ASPECTSTRL)
83 > #define  LASPECTSTR             10
84 > #define  isaspect(hl)           (!strncmp(hl,ASPECTSTR,LASPECTSTR))
85 > #define  aspectval(hl)          atof((hl)+LASPECTSTR)
86   #define  fputaspect(pa,fp)      fprintf(fp,"%s%f\n",ASPECTSTR,pa)
87  
88                                  /* macros for color correction */
89   #define  COLCORSTR              "COLORCORR="
90 < #define  COLCORSTRL             10
91 < #define  iscolcor(hl)           (!strncmp(hl,COLCORSTR,COLCORSTRL))
92 < #define  colcorval(cc,hl)       sscanf(hl+COLCORSTRL,"%f %f %f", \
90 > #define  LCOLCORSTR             10
91 > #define  iscolcor(hl)           (!strncmp(hl,COLCORSTR,LCOLCORSTR))
92 > #define  colcorval(cc,hl)       sscanf(hl+LCOLCORSTR,"%f %f %f", \
93                                          &(cc)[RED],&(cc)[GRN],&(cc)[BLU])
94   #define  fputcolcor(cc,fp)      fprintf(fp,"%s %f %f %f\n",COLCORSTR, \
95                                          (cc)[RED],(cc)[GRN],(cc)[BLU])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines