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.02 22:16 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Ping Shu

Joris wrote:
> Still, one option is to detect it in the code by writing something to a
> word and reading back its first byte...

One exampel of run-time detection:

New code 3.8.2:

#ifdef WORDS_BIGENDIAN
  tif->tif_header.tiff_magic = tif->tif_flags & TIFF_SWAB
    ? TIFF_LITTLEENDIAN : TIFF_BIGENDIAN;
#else
  tif->tif_header.tiff_magic = tif->tif_flags & TIFF_SWAB
    ? TIFF_BIGENDIAN : TIFF_LITTLEENDIAN;
#endif

Old code 3.5

  tif->tif_header.tiff_magic = tif->tif_flags & TIFF_SWAB
    ? (bigendian ? TIFF_LITTLEENDIAN : TIFF_BIGENDIAN)
    : (bigendian ? TIFF_BIGENDIAN : TIFF_LITTLEENDIAN);

I think the old one is better. Mactel used to like the
3.5 libtiff. 

Ping