Received: from mailgate009.isp.belgacom.be (mailgate009.isp.belgacom.be [195.238.6.2])
	by maildelivery015.isp.belgacom.be (Postfix) with ESMTP id DF2AF4F80AC
	for <joris.at.lebbeke@skynet.be>; Tue, 28 Aug 2007 17:14:46 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 28 Aug 2007 17:14:43 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l7SEviP8001077;
	Tue, 28 Aug 2007 10:57:59 -0400
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l7SEvELr001071
	for <tiff@lists.maptools.org>; Tue, 28 Aug 2007 10:57:14 -0400
Received: by an-out-0708.google.com with SMTP id d31so259907and
	for <tiff@lists.maptools.org>; Tue, 28 Aug 2007 07:57:13 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=axdx1/lro0lFB98MvNpsudSKxaIbCEGhz5ZWH+VxYF7KwSIsPW5tJkw2pGwCXUb/BkpJ38WZcB6FCzFHJRJ75dOTM6O5z7RJRyF1yHYHGOwokTMAyTA440yajbTUllLWPUNFqQCApP2TK6Me/mXStan9rRoKuzbiCuSj3Jyeffk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=cOMju7b2TXWqA4Qz5/33fmjYmEOnanF7evxWm2g4J7qcT0BTgThIC2sxNsjCZf94BVxZPPO1f9k435KbFsf46iK0UISyDNi1fHiApGKcQSvWcvrjC+p7VZrnABhpYe8ZFStSa8axsWvCL3rOui9hlkIxjMMOm+fKLLu4Qs4jMy8=
Received: by 10.100.106.5 with SMTP id e5mr2799355anc.1188313032854;
	Tue, 28 Aug 2007 07:57:12 -0700 (PDT)
Received: by 10.100.38.19 with HTTP; Tue, 28 Aug 2007 07:57:12 -0700 (PDT)
Message-ID: <29bcc0df0708280757s695163bfw7523d6d63b27ee77@mail.gmail.com>
Date: Tue, 28 Aug 2007 18:57:12 +0400
From: "Andrey Kiselev" <andrey.kiselev@gmail.com>
To: "Tiff List" <tiff@lists.maptools.org>
Subject: Re: [Tiff] 24-bit samples in TIFF
In-Reply-To: <46D43313.4010903@pobox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <Pine.SOC.4.60.0708251722130.922@blade.simplesystems.org>
	<3B96007137B4CE4E85114278E640DC330131C790@namail3.corp.adobe.com>
	<46D43313.4010903@pobox.com>
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000276f
X-MSP-STORE: Tue, 28 Aug 2007 17:14:47 +0200
Status: RO

On 8/28/07, Frank Warmerdam <warmerdam@pobox.com> wrote:
> What does libtiff do now with 24 bit integer values?  Presumably we
> should do the same thing with this and with the 24bit float values,
> right?  I'm afraid I don't know what that is, though with some help
> from Bob I did manage to muddle my way through implementing support
> for tiff files with odd bit depths in my application.

Folks,

This issue was already discussed several times in the past. libtiff
does the right thing with 24-bit samples (as per Chris' explanation)
and GDAL does the right thing too. Just search for
TIFFSwabArrayOfTriples() definition and its usage. All 24-bit floating
point samples from Chris work fine in OpenEV for a long time.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
