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

Comparing ray/src/common/tmapluv.c (file contents):
Revision 3.2 by gwlarson, Mon Oct 26 17:07:05 1998 UTC vs.
Revision 3.3 by gwlarson, Sun Dec 20 16:38:29 1998 UTC

# Line 188 | Line 188 | int    len;
188          for (i = len; i--; ) {
189                  j = luvs[i] >> 16;              /* get luminance */
190                  if (j & 0x8000)                 /* negative luminance */
191 <                        ls[i] = MINBRT-1;       /* assign bogus value */
191 >                        ls[i] = TM_NOBRT;       /* assign bogus value */
192                  else                            /* else convert to lnL */
193                          ls[i] = (BRT2SCALE*j >> 8) - ld->offset;
194                  if (cs == TM_NOCHROM)           /* no color? */
# Line 302 | Line 302 | int    len;
302                                          /* convert each pixel */
303          for (i = len; i--; ) {
304                  if (l16s[i] & 0x8000)           /* negative luminance */
305 <                        ls[i] = MINBRT-1;       /* assign bogus value */
305 >                        ls[i] = TM_NOBRT;       /* assign bogus value */
306                  else                            /* else convert to lnL */
307                          ls[i] = (BRT2SCALE*l16s[i] >> 8) - offset;
308          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines