ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/aedimage.c
(Generate patch)

Comparing ray/src/px/aedimage.c (file contents):
Revision 1.5 by greg, Fri Oct 20 20:35:57 1989 UTC vs.
Revision 1.8 by greg, Wed Nov 7 13:10:27 1990 UTC

# Line 169 | Line 169 | userr:
169   checkhead(line)                         /* deal with line from header */
170   char  *line;
171   {
172 <        if (!strncmp(line, "EXPOSURE=", 9))
173 <                exposure *= atof(line+9);
172 >        if (isexpos(line))
173 >                exposure *= exposval(line);
174   }
175  
176  
# Line 400 | Line 400 | register rgbpixel  *l3;
400                                                          /* read scanline */
401          getscan(y);
402                                                          /* convert scanline */
403 <        normcolrs(scanline, xmax);
403 >        normcolrs(scanline, xmax, 0);
404          for (i = 0; i < xmax; i++) {
405                  l3[i].r = scanline[i][RED];
406                  l3[i].g = scanline[i][GRN];
# Line 515 | Line 515 | colormap  map;
515          register int  i, val;
516  
517          for (i = 0; i < 256; i++) {
518 <                val = pow(i/256.0, 1.0/GAMMA) * 256.0;
518 >                val = pow((i+0.5)/256.0, 1.0/GAMMA) * 256.0;
519                  map[0][i] = map[1][i] = map[2][i] = val;
520          }
521   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines