AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

1997.03.18 16:23 "dump_mode.c fix", by Dwight Kelly

I believe that the following change is required for writing planar_separate files using code like this:

for (c=0; c<ncolors; c++) {
        TIFFWriteScanline(tif, buf+(offset*c), row, c);
}

Dwight Kelly
Essential Technical Services, Inc.
315 Allen Street Cumming, GA 30130
voice:(770) 889-2848 fax:(770) 889-2624 Internet:dkelly@etsinc.com
http://www.etsinc.com

$ diff -c tif_dumpmode.c /tmp 
*** tif_dumpmode.c      Thu Feb 20 21:11:27 1997 
--- /tmp/tif_dumpmode.c Tue Mar 18 10:54:08 1997 
*************** 
*** 92,98 **** 
  DumpModeSeek(TIFF* tif, uint32 nrows) 
  { 
        tif->tif_rawcp += nrows * tif->tif_scanlinesize; 
!       tif->tif_rawcc -= nrows * tif->tif_scanlinesize; 
        return (1); 
  } 
   
--- 92,98 ---- 
  DumpModeSeek(TIFF* tif, uint32 nrows) 
  { 
        tif->tif_rawcp += nrows * tif->tif_scanlinesize; 
!       tif->tif_rawcc += nrows * tif->tif_scanlinesize; 
        return (1); 
  }