Received: from [207.113.13.68] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Wed, 3 Feb 1999 15:25:03 -0500
Received: from localhost (bin@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) with SMTP id PAA31266;
	Wed, 3 Feb 1999 15:09:52 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 3 Feb 1999 15:00:38 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) id PAA31240
	for tiff-outgoing; Wed, 3 Feb 1999 15:00:37 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from ziggy.wwnet.net (ziggy.wwnet.net [209.142.193.4])
	by gate7.olympiakos.com (8.8.7/8.8.7) with ESMTP id PAA31237
	for <tiff@olympiakos.com>; Wed, 3 Feb 1999 15:00:34 -0500
Received: from Sim ([209.142.208.146])
	by ziggy.wwnet.net (8.8.7/8.8.7) with SMTP id QAA24316
	for <tiff@olympiakos.com>; Wed, 3 Feb 1999 16:03:26 -0500
Received: by localhost with Microsoft MAPI; Wed, 3 Feb 1999 15:02:18 -0500
Message-ID: <01BE4F86.319AE7C0.szacks@imprsv.com>
From: Sim Zacks <szacks@imprsv.com>
To: "'tiff@olympiakos.com'" <tiff@olympiakos.com>
Subject: StripByteCount value or offset
Date: Wed, 3 Feb 1999 15:02:16 -0500
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com

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
	case TIFFTAG_STRIPBYTECOUNTS:
	case TIFFTAG_TILEBYTECOUNTS:
		*va_arg(ap, uint32**) = td->td_stripbytecount; // changed to *va_arg(ap, 
uint32**) = *td->td_stripbytecount;
		break;

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.

Thanks
Sim
