AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
February 1999

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

1999.02.03 20:02 "StripByteCount value or offset", by Sim Zacks
1999.02.04 14:29 "Re: StripByteCount value or offset", by Sim Zacks
1999.02.04 15:02 "Re: StripByteCount value or offset", by Tom Lane

1999.02.04 14:29 "Re: StripByteCount value or offset", by Sim Zacks

I understand that, which is why I was confused by the libtiff, which I 
guess always gives you a pointer to the array. It makes it easier for me, 
becuase I don't have to figure out if it is a value or an offset, I always 
get the pointer and I can allocate the memory for the number of strips, not 
caring if it is single strip, multi strip or if the value is contained with 
the tag or an offset. I think it is an excellent idea. I just didn't know 
before that that is how it works in Libtiff.
I'd like to thank everyone who pointed this out to me.

Sim

-----Original Message-----
From:	James Palo [SMTP:jpalo@snowbnd.com]
Sent:	Thursday, February 04, 1999 8:36 AM
To:	Tom Lane; Sim Zacks
Cc:	'tiff@olympiakos.com'
Subject:	Re: StripByteCount value or offset



This is a basic fundamental of Tiff files.  If the data size times the
count of values fit into the offset field then this field can be the actual
data and not an offset to an array.   If you had a single strip then it
would be contain the strip byte count for the single strip.  If multiple
strips then it would have to be an offset to an array of strip byte count
values.  In Tiff you have to handle both cases.

					Jim Palo
					Snowbound Software