Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx008.isp.belgacom.be (inmx008.isp.belgacom.be [195.238.3.88])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i4G7O4dA018592
        for <joris.at.lebbeke@skynet.be>; Sun, 16 May 2004 09:24:04 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx008.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i4G7Nxl7024393
        for <joris.at.lebbeke@skynet.be>; Sun, 16 May 2004 09:24: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 i4G7NUn23103;
	Sun, 16 May 2004 03:23:30 -0400
Received: from ahk.pu.ru (ahk.pu.ru [193.124.85.198])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4G7MSn23007
	for <tiff@remotesensing.org>; Sun, 16 May 2004 03:22:29 -0400
Received: from wg.pu.ru (wg.pu.ru [193.124.85.219])
	by ahk.pu.ru (8.12.9p2/8.12.9) with ESMTP id i4G7MEqv019808
	for <tiff@remotesensing.org>; Sun, 16 May 2004 11:22:15 +0400 (MSD)
	(envelope-from dron@ak4719.spb.edu)
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id HAA26002
	for tiff@remotesensing.org; Sun, 16 May 2004 07:22:14 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id i4G73Y6T012010
	for <tiff@remotesensing.org>; Sun, 16 May 2004 11:03:34 +0400
Received: (from dron@localhost)
	by ak4719.spb.edu (8.12.1/8.12.1/Debian -5) id i4G73YB6012007
	for tiff@remotesensing.org; Sun, 16 May 2004 11:03:34 +0400
From: Andrey Kiselev <dron@ak4719.spb.edu>
To: tiff@remotesensing.org
Subject: Re: [Tiff] TIFFWriteScanline endian swapping issue
Message-ID: <20040516070334.GA9782@ak4719.spb.edu>
Mail-Followup-To: tiff@remotesensing.org
References: <6.1.0.6.2.20040515114421.02d2cf38@earthlink.net> <001901c43abe$c705cd60$4f05c950@dfgrrxsknr4e>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <001901c43abe$c705cd60$4f05c950@dfgrrxsknr4e>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S,d@_1-C=}/,c%<3Qp]eu!ok<"2lYJm$!9qVcg
 F?7o*L;|$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;>fuY=fc(=sX^`7Wmw8%SsR`AvM$a;0U/eN\
 P?B\FTyqD,0np$U2!*'z_4D,VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
 Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;j~\M!
 gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.6i
X-Virus-Scanned: clamd / ClamAV version 0.67+CVS20040305, clamav-milter version 0.67j
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: Sun, 16 May 2004 11:03:34 +0400
X-UIDL: 1ddd94899c484a2b85f67bad4ef7ecbe

On Sat, May 15, 2004 at 10:54:10PM +0200, Joris wrote:
> I'm guessing that your data is, underneath the object encapsulation, a
> windows DIB with 24bit RGB. Windows DIBs store 24bit RGB as B-G-R.
> Tiff/LibTiff is rooted in unix and platform independent traditions,
> they do things in oposite oposite order (pun intended), and as such
> expect R-G-B instead. Thus, neither party is to blame or buggy, but
> your glue code in-between needs to swap the bytes.

I want just add that the sample code showing how to load TIFF image into
the Windows Bitmap structure can be found in the contrib/win_dib/
directory.

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
