# | 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--) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |