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

Comparing ray/src/px/ra_pr24.c (file contents):
Revision 1.1 by greg, Thu Oct 18 12:00:48 1990 UTC vs.
Revision 1.2 by greg, Thu Oct 18 12:21:33 1990 UTC

# Line 159 | Line 159 | ra2pr()                        /* convert Radiance scanlines to 24-bit rast
159          if (scanin == NULL)
160                  quiterr("out of memory in pr2ra");
161                                                  /* compute gamma correction */
162 <        for (x = 0; x < 256; x++)
162 >        for (x = 0; x < 1024; x++)
163                  gmap[x] = 256.*pow((x+.5)/1024., 1./gamma);
164                                                  /* convert image */
165          for (y = ymax-1; y >= 0; y--) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines