2005.02.02 21:09 "[Tiff] 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