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 2005

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!



2005.02.02 21:09 "big endian", by Bob Friesenhahn

For purposes of parsing, my code would strongly prefer that libtiff 
offer scanlines, strips, or tiles, in "big endian" byte-order rather 
than attempting to swab into the CPU's native order.  Is there a way 
to (portably across libtiff releases) convince libtiff to do that?

The current approach I am using swabs the data to big-endian order, 
but this penalizes little-endian CPUs with an extra swap if the 
original TIFF data was in big-endian order.

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