1999.02.03 20:02 "StripByteCount value or offset", by Sim Zacks
Is the StripByteCount field supposed to contain a value or an offset? I would think it should contain a value, because it is only 4 bytes long, and it seems like libtiff handles it this way. But I was getting the wrong number back, so I changed it to *td->td_stripbytecount to get back and then I got the right number. What I'm trying to figure out is, will it always be an offset, or a value or is the software that is making this Tiff file wrong. I have 2 other viewers that got the right number, which makes me think it is an error in libtiff for not handling it.
If it really is an error in libtiff the fix would be to change
*va_arg(ap, uint32**) = td->td_stripbytecount; // changed to *va_arg(ap,
uint32**) = *td->td_stripbytecount;
I'm not really a c programmer, so I don't know if this is the proper thing to change or not, but it is giving me the proper number back. Please let me know if I'm off the wall.