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.13 by gregl, Wed Aug 27 11:10:45 1997 UTC vs.
Revision 2.15 by gregl, Wed Sep 24 14:54:03 1997 UTC

# Line 278 | Line 278 | initfromtif()          /* initialize conversion from TIFF inpu
278                  break;
279          case PHOTOMETRIC_MINISBLACK:
280                  SET(C_GRY|C_GAMMA|C_GAMUT);
281 +                setcolrgam(cvts.gamcor);
282                  cvts.pconf = PLANARCONFIG_CONTIG;
283                  if (!TIFFGetField(cvts.tif, TIFFTAG_SAMPLESPERPIXEL, &hi) ||
284                                  hi != 1)
# Line 579 | Line 580 | uint32 y;
580                  if (TIFFReadScanline(cvts.tif, cvts.t.p, y, 0) < 0)
581                          goto readerr;
582                  if (TIFFReadScanline(cvts.tif,
583 <                                (tidata_t)(cvts.t.bp + cvts.xmax), y, 1) < 0)
583 >                                (tdata_t)(cvts.t.bp + cvts.xmax), y, 1) < 0)
584                          goto readerr;
585                  if (TIFFReadScanline(cvts.tif,
586 <                                (tidata_t)(cvts.t.bp + 2*cvts.xmax), y, 2) < 0)
586 >                                (tdata_t)(cvts.t.bp + 2*cvts.xmax), y, 2) < 0)
587                          goto readerr;
588                  for (x = cvts.xmax; x--; ) {
589                          cvts.r.colrs[x][RED] = cvts.t.bp[x];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines