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

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

2006.04.01 04:44 "WORDS_BIGENDIAN makes libtiff platform dependent", by Ping Shu
2006.04.01 05:21 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.01 18:56 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Ping Shu
2006.04.01 22:57 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.02 17:14 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Edward Lam
2006.04.02 17:30 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.02 17:54 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Joris Van Damme
2006.04.02 22:06 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.02 22:27 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Joris Van Damme
2006.04.02 22:16 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Ping Shu
2006.04.03 13:08 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Edward Lam
2006.04.03 13:14 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Edward Lam
2006.04.03 14:38 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.03 14:51 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Edward Lam
2006.04.03 15:00 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Graeme Gill
2006.04.03 15:21 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn
2006.04.04 02:43 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Graeme Gill
2006.04.04 03:41 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn

2006.04.03 15:21 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn

On Tue, 4 Apr 2006, Graeme Gill wrote:
>
> There's nothing like that in the (older) version I've been using (V3.6.1).
> In fact in tif_open.c, there doesn't appear to be any compile time
> endian dependent code. HOST_BIGENDIAN seems to be defined in
> tiffconf.h, but not used anywhere except tools/ras2tiff.c.
>
> So it looks like compile time endian dependent code has been introduced
> at some stage. I would suspect it's quite unnecessary (ie. could have
> been coded differently.)

Based on prevailing evidence, I believe that you are correct.  Here 
are the ChangeLog entries:

2005-06-03  Andrey Kiselev  <dron@ak4719.spb.edu>

         * libtiff/tif_open.c: Replace runtime endianess check with the compile
         time one.

2004-08-16  Andrey Kiselev  <dron@ak4719.spb.edu>

         * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
         bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586

I expect that the BigTIFF support (planned for libtiff 4.0) is going 
to require more knowledge of its evironment since a 64-bit type needs 
to be identified.  Some target-specific configuration will always be 
required.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/