Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx006.isp.belgacom.be (inmx006.isp.belgacom.be [195.238.2.106])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i4HDWav9028977
        for <joris.at.lebbeke@skynet.be>; Mon, 17 May 2004 15:32:37 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx006.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i4HDJxP3031383
        for <joris.at.lebbeke@skynet.be>; Mon, 17 May 2004 15:20:00 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4HDI5n06958;
	Mon, 17 May 2004 09:18:05 -0400
Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4FMm3n29092
	for <tiff@remotesensing.org>; Sat, 15 May 2004 18:48:03 -0400
Received: from cpe-24-221-177-173.ca.sprintbbd.net ([24.221.177.173] helo=Dell8200.canoma.com)
	by scaup.mail.pas.earthlink.net with esmtp (Exim 3.33 #1)
	id 1BP7wZ-00002R-00; Sat, 15 May 2004 15:47:47 -0700
Message-Id: <6.1.0.6.2.20040515154445.02e17d80@earthlink.net>
X-Sender: robertseidl@earthlink.net (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6
To: "Joris" <joris.at.lebbeke@skynet.be>
From: R Seidl <rseidl@canoma.com>
Subject: Re: [Tiff] TIFFWriteScanline endian swapping issue
Cc: <tiff@remotesensing.org>
In-Reply-To: <001f01c43ac0$eca6e930$4f05c950@dfgrrxsknr4e>
References: <Pine.GSO.4.44.0405151537020.21890-100000@scooby.simplesystems.org>
 <001f01c43ac0$eca6e930$4f05c950@dfgrrxsknr4e>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Sat, 15 May 2004 15:46:30 -0700
X-UIDL: 1dba06cccee94f6b6a410c2d216c9a2b

Thank you all for answering so quickly and uniformly. The byte swapping was 
quickly written, but I am glad to understand now that it is indeed the 
right thing to do wrt to my usage of tifflib.
Issue solved.
Robert

At 5/15/2004 02:09 PM, Joris wrote:
>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


_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
