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 15:02 "Re: StripByteCount value or offset", by Tom Lane

James Palo <jpalo@snowbnd.com> writes:
> 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.

That's true at the level of what's physically on disk in the file's IFD.

But what szacks was asking about was the contents of the field in
libtiff's in-memory representation, and that's quite a different matter.
libtiff hides the value-versus-pointer optimization from you --- as it
should, since you don't really want to be dealing with file offsets.
(If td_stripbytecount contained a direct copy of what had been in the
IFD, it wouldn't be a pointer at all, but a file offset, and you
couldn't do much with it except fseek().)

			regards, tom lane