home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0032.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  1.4 KB  |  39 lines

  1.  
  2. I've just fixed a problem when using stripped planar images.
  3. TIFFReadEncodedStrip does not figure out truncated strip
  4. sizes correctly for the last strip in the image.
  5.  
  6. I'm currently using:
  7. VERSION        3.3beta
  8. tiff.alpha    define ALPHA 015
  9.  
  10. *** OLD/tif_read.c       Tue Oct 11 17:37:27 1994
  11. --- NEW/tif_read.c       Thu Dec 15 09:33:48 1994
  12. ***************
  13. *** 140,146 ****
  14.          * Calculate the strip size according to the number of
  15.          * rows in the strip (check for truncated last strip).
  16.          */
  17. !       if (strip != td->td_nstrips-1 ||
  18.             (nrows = td->td_imagelength % td->td_rowsperstrip) == 0)
  19.                 nrows = td->td_rowsperstrip;
  20.         stripsize = TIFFVStripSize(tif, nrows);
  21. --- 140,146 ----
  22.          * Calculate the strip size according to the number of
  23.          * rows in the strip (check for truncated last strip).
  24.          */
  25. !       if (strip%td->td_stripsperimage != td->td_stripsperimage-1 ||
  26.             (nrows = td->td_imagelength % td->td_rowsperstrip) == 0)
  27.                 nrows = td->td_rowsperstrip;
  28.         stripsize = TIFFVStripSize(tif, nrows);
  29.  
  30.  
  31. - gordon
  32. ---
  33.     "I wonder what sort of ramshackle thing I would have turned out to be
  34.      if I hadn't come along just in time."    - lafferty
  35. Gordon Clare                                 Net: gordon@research.canon.oz.au
  36. Canon Information Systems Research Australia  Ph: +61 2 805 2738
  37. P.O. Box 313 North Ryde, NSW, Australia 2113 Fax: +61 2 805 2929
  38.  
  39.