AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.01.04 18:26 "[Tiff] Endian Issue in Tiff codecs", by
2006.01.04 18:54 "Re: [Tiff] Endian Issue in Tiff codecs", by Bob Friesenhahn

2006.01.04 18:26 "[Tiff] Endian Issue in Tiff codecs", by

Hi,

I am using a Tiff codec in which I read the tiff files using the

following function "_psTIFF = TIFFOpen( strfilename.c_str(), "r" );".

to instatiate a tiff structure.
I would like to know in what byte order does the "TIFFOpen" function
return the tiff file in this case. I have mentioned only "r" in the mode
type.
Further I use the following functions "TIFFGetFieldDefaulted",
"TIFFReadEncodedStrip" functions in the input codec. Do all these
functions return the data to be in the same byte order as that of the
native machine's byte order??

Also, in the Tiff output codec, I use the following function "_psTIFF =

TIFFOpen( strfilename.c_str(), "w" ); " to instatiate the tiff structure

followed by"TIFFSetField ", "TIFFWriteEncodedStrip" functions.Do these
functions too return the data in the same byte order as the native
machines byte order?? I have mentioned only"w" in the mode type for the
"TIFFOpen" functions!!!

In both the above cases I am not reading or writting any byte order

fields, nor am I doing any byte releated manipulations. In any case, I
require to know about the byte order nature since I am aiming at having
a codec which is platform independant and would work fine on both a big
endian as well as a little endian system. So please do let me know as to
the nature in which the libtiff library read\write data to\from a tiff
file.

Regards,

Cibby

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com