home *** CD-ROM | disk | FTP | other *** search
-
- I've just fixed a problem when using stripped planar images.
- TIFFReadEncodedStrip does not figure out truncated strip
- sizes correctly for the last strip in the image.
-
- I'm currently using:
- VERSION 3.3beta
- tiff.alpha define ALPHA 015
-
- *** OLD/tif_read.c Tue Oct 11 17:37:27 1994
- --- NEW/tif_read.c Thu Dec 15 09:33:48 1994
- ***************
- *** 140,146 ****
- * Calculate the strip size according to the number of
- * rows in the strip (check for truncated last strip).
- */
- ! if (strip != td->td_nstrips-1 ||
- (nrows = td->td_imagelength % td->td_rowsperstrip) == 0)
- nrows = td->td_rowsperstrip;
- stripsize = TIFFVStripSize(tif, nrows);
- --- 140,146 ----
- * Calculate the strip size according to the number of
- * rows in the strip (check for truncated last strip).
- */
- ! if (strip%td->td_stripsperimage != td->td_stripsperimage-1 ||
- (nrows = td->td_imagelength % td->td_rowsperstrip) == 0)
- nrows = td->td_rowsperstrip;
- stripsize = TIFFVStripSize(tif, nrows);
-
-
- - gordon
- ---
- "I wonder what sort of ramshackle thing I would have turned out to be
- if I hadn't come along just in time." - lafferty
- Gordon Clare Net: gordon@research.canon.oz.au
- Canon Information Systems Research Australia Ph: +61 2 805 2738
- P.O. Box 313 North Ryde, NSW, Australia 2113 Fax: +61 2 805 2929
-
-