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
February 1999

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

1999.02.03 20:02 "StripByteCount value or offset", by Sim Zacks
1999.02.04 14:29 "Re: StripByteCount value or offset", by Sim Zacks
1999.02.04 15:02 "Re: StripByteCount value or offset", by Tom Lane

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
	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