| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.01.04 18:26 "Endian Issue in Tiff codecs", by <cibby.cherian@wipro.com>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 |
|||||||