AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2007

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



Valid HTML 4.01!



Thread

2007.01.18 08:09 "TIFF fields alignment question", by <mikk@go2.pl>
2007.01.22 10:45 "(no subject)", by Gerben Vos

2007.01.18 08:09 "TIFF fields alignment question", by <mikk@go2.pl>

Hello,

Does the TIFF specification require that fields such as first IFD offset,
number of tags in a directory, tag structure and next IFD offset
must be written at word aligned position in TIFF file?
In other words - when writing these fields to a TIFF file, do they have to
be written in even bytes of data stream and some padding is required to
follow the specification?
I have read the TIFF specification but haven't found anything about that.
When searching in libTIFF sources I've found a comment in tiff.h, but only
about positioning of tag data:
"[...] The values associated with each entry are disjoint and may appear
anywhere in the file (so long as they are placed on a word boundary) [...]".

Can anyone put some light on that?

Thanks in advance,
Kind regards