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

Comparing ray/src/px/ra_xyze.c (file contents):
Revision 2.2 by greg, Wed Oct 25 15:13:38 1995 UTC vs.
Revision 2.3 by greg, Fri Jan 31 12:51:22 1997 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
1 > /* Copyright (c) 1997 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 201 | Line 201 | convert()                              /* convert to XYZE or RGBE picture */
201          for (y = 0; y < ymax; y++) {
202                  if (freadscan(scanin, xmax, stdin) < 0)
203                          quiterr("error reading input picture");
204 <                for (x = 0; x < xmax; x++)
204 >                for (x = 0; x < xmax; x++) {
205                          colortrans(scanin[x], xfm, scanin[x]);
206 +                        if (rgbout)
207 +                                clipgamut(scanin[x], bright(scanin[x]),
208 +                                                CGAMUT_LOWER, cblack, cwhite);
209 +                }
210                  if (scanout != NULL) {
211                          for (x = 0; x < xmax; x++)
212                                  setcolr(scanout[x], colval(scanin[x],RED),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines