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

Comparing ray/src/px/ra_tiff.c (file contents):
Revision 2.12 by gregl, Tue Aug 26 15:01:26 1997 UTC vs.
Revision 2.14 by gregl, Fri Aug 29 15:35:28 1997 UTC

# Line 579 | Line 579 | uint32 y;
579                  if (TIFFReadScanline(cvts.tif, cvts.t.p, y, 0) < 0)
580                          goto readerr;
581                  if (TIFFReadScanline(cvts.tif,
582 <                                (tidata_t)(cvts.t.bp + cvts.xmax), y, 1) < 0)
582 >                                (tdata_t)(cvts.t.bp + cvts.xmax), y, 1) < 0)
583                          goto readerr;
584                  if (TIFFReadScanline(cvts.tif,
585 <                                (tidata_t)(cvts.t.bp + 2*cvts.xmax), y, 2) < 0)
585 >                                (tdata_t)(cvts.t.bp + 2*cvts.xmax), y, 2) < 0)
586                          goto readerr;
587                  for (x = cvts.xmax; x--; ) {
588                          cvts.r.colrs[x][RED] = cvts.t.bp[x];
# Line 646 | Line 646 | uint32 y;
646          double  m = pow(2.,(double)cvts.bradj);
647          register int    x;
648  
649 <        if (CHK(C_RFLT|C_TFLT) != (C_RFLT|C_TFLT) | !CHK(C_GRY))
649 >        if (CHK(C_RFLT|C_TFLT|C_GRY) != (C_RFLT|C_TFLT|C_GRY))
650                  quiterr("internal error 1 in Color2L");
651  
652          if (freadscan(cvts.r.colors, cvts.xmax, cvts.rfp) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines