2003.04.29 16:12 "Newbie Question (StripOffsets/StripByteCount)", by Harring Figueiredo

2003.04.30 15:08 "RE: Newbie Question (StripOffsets/StripByteCount)", by Harring Figueiredo

Hi John,

Thanks for the reply. I am not sure about your condition: ( count * size_of_type >= 4).

if count * size_of_tag is == 4, then it fits on a long value. Therefore; it will not be an offset.

The TIFF 6.0 spec (page 15) says, ".. Value Offset contains the Value instead of pointing to the Value if and only if the Value fits into 4 bytes. ..."

-------------------------------------------

If it is == 4 bytes, it clearly fits, thus it will not be an offset, but the value itself. (Anyone cares to commnet on this ?)

I am not sure about the compression, since I will not decompress it. I will just read the strips and move/copy into another area. The StripBytecount will have the correct number of bytes to read since it is "after any compression."

Thanks again for the email.

Harring.