2007.01.18 08:09 "[Tiff] TIFF fields alignment question", by mikk
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,