AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.12.26 02:25 "[Tiff] problems with custom TIFF", by Pushkar Pradhan
2003.12.26 09:36 "Re: [Tiff] problems with custom TIFF", by Andrey Kiselev
2003.12.30 00:09 "RE: [Tiff] problems with custom TIFF", by Pushkar Pradhan
2003.12.30 00:27 "Re: [Tiff] problems with custom TIFF", by Joris Van Damme
2003.12.30 00:47 "RE: [Tiff] problems with custom TIFF", by Pushkar Pradhan
2003.12.31 11:40 "Re: [Tiff] problems with custom TIFF", by Andrey Kiselev
2004.01.01 23:11 "RE: [Tiff] problems with custom TIFF", by Pushkar Pradhan

2004.01.01 23:11 "RE: [Tiff] problems with custom TIFF", by Pushkar Pradhan

> > size = TIFFReadEncodedStrip(tif, strip, bufRGB, (tsize_t)-1);

> Why do you using -1 here? It should be a size of bufRGB in bytes.

I read the libtiff tutorial which suggests using (tsize_t)-1) as it will read in the whole tile/strip by default. It seems to work okay for me.

Oh, it seems to be missed in the manual pages... Fixed.

Will the -1 option work for TIFFWriteEncodedStrip(...). I mean will it write out to the whole strip?

Pushkar