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
May 2004

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

2004.05.15 19:00 "TIFFWriteScanline endian swapping issue", by R Seidl
2004.05.15 20:39 "Re: TIFFWriteScanline endian swapping issue", by Bob Friesenhahn
2004.05.15 21:09 "Re: TIFFWriteScanline endian swapping issue", by Joris Van Damme
2004.05.15 22:46 "Re: TIFFWriteScanline endian swapping issue", by R Seidl
2004.05.15 20:54 "Re: TIFFWriteScanline endian swapping issue", by Joris Van Damme
2004.05.16 07:03 "Re: TIFFWriteScanline endian swapping issue", by Andrey Kiselev

2004.05.15 21:09 "Re: TIFFWriteScanline endian swapping issue", by Joris Van Damme

Bob wrote:
> Libtiff is used successfully by lots of software so any formatting
> errors are likely to be in the buffer that you pass to libtiff.

While you are of course correct, I can't help feeling this sounds like Sam
speaking... ;-)

R Seidl wrote:
> Also tried using "l" and "b" (little and big endian) parameters to the open
> call
Bob wrote:
> Maybe it is some sort of little-endian byte stream

No, it's got nothing to do with endianness. From this line:

TIFFSetField(tif,TIFFTAG_BITSPERSAMPLE, (uint16)8);

it's clear that we're talking about bytes, not words or anything. Endianness is
a multi-byte issue.

It is, instead, windows tradition B-G-R needing to be byteswapped to unix
tradition R-G-B.


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html