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

Comparing ray/src/px/biq.c (file contents):
Revision 1.2 by greg, Thu Feb 2 14:10:31 1989 UTC vs.
Revision 1.3 by greg, Mon Jul 24 10:49:58 1989 UTC

# Line 41 | Line 41 | colormap ocm;
41   {
42      register rgbpixel *linin;
43      register pixel *linout;
44 +    rgbpixel intmp;
45 +    int outtmp;
46      int y;
47      register int x;
48  
# Line 50 | Line 52 | colormap ocm;
52      for (y = 0; y < ymax; y++) {
53          picreadline3(y, linin);
54          for (x = 0; x < xmax; x++) {
55 <                linin[x].r = ocm[0][linin[x].r];
56 <                linin[x].g = ocm[1][linin[x].g];
57 <                linin[x].b = ocm[2][linin[x].b];
58 <                linout[x] = rgb_bright(&linin[x]);
59 <                linout[x] = (linout[x]*n+n/2)/256;
55 >                intmp.r = ocm[0][linin[x].r];
56 >                intmp.g = ocm[1][linin[x].g];
57 >                intmp.b = ocm[2][linin[x].b];
58 >                outtmp = rgb_bright(&intmp);
59 >                linout[x] = (outtmp*n+n/2)/256;
60          }
61          picwriteline(y, linout);
62      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines