
Thread
2004.01.01 23:11 "RE: [Tiff] problems with custom TIFF", by Pushkar Pradhan
> -----Original Message-----
> From: tiff-admin@remotesensing.org
> [mailto:tiff-admin@remotesensing.org]On Behalf Of Andrey Kiselev
> Sent: Wednesday, December 31, 2003 5:40 AM
> To: Tiff@Remotesensing.Org
> Subject: Re: [Tiff] problems with custom TIFF
On Mon, Dec 29, 2003 at 06:47:57PM -0600, Pushkar Pradhan wrote:
> 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