Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas003.isp.belgacom.be (localhost [127.0.0.1])
        by inav001.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j9S4CWGm013119
        for <joris.at.lebbeke@skynet.be>; Fri, 28 Oct 2005 06:12:32 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.5.90])
        by inas003.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j9S4CTs3023129
        for <joris.at.lebbeke@skynet.be>; Fri, 28 Oct 2005 06:12:29 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j9S4CJPc010704
        for <joris.at.lebbeke@skynet.be>; Fri, 28 Oct 2005 06:12:19 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 j9S48UIR032226;
	Fri, 28 Oct 2005 00:08:37 -0400
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j9S48R86032223
	for <tiff@lists.maptools.org>; Fri, 28 Oct 2005 00:08:27 -0400
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	j9S48P8a029404; Thu, 27 Oct 2005 23:08:25 -0500 (CDT)
Date: Thu, 27 Oct 2005 23:08:24 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Frank Warmerdam <warmerdam@pobox.com>
Subject: Re: [Tiff] How located pixels with BitsPerSample not bound to byte?
In-Reply-To: <931f8ea90510272042h20d5bb7qeead491c21b69a7c@mail.gmail.com>
Message-ID: <Pine.SOC.4.60.0510272304200.7597@blade.simplesystems.org>
References: <75489204593.20051027094051@mail.ru>
	<931f8ea90510270657g5007545dr443fc2b1c9855d58@mail.gmail.com>
	<004401c5db6e$45290990$6501a8c0@black>
	<931f8ea90510272042h20d5bb7qeead491c21b69a7c@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@lists.maptools.org
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.00000dc3
X-MSP-STORE: Fri, 28 Oct 2005 06:12:40 +0200
Status:   

On Thu, 27 Oct 2005, Frank Warmerdam wrote:
>
>> The second problem involves this same section of code (1-32 bit sample...
>
> I'll stay out of this issue, though I suspect that 24bit data should not
> be byte swapped.

The latest libtiff does byte-swap 24-bit data because Chris Cox at 
Adobe claims that this is what the TIFF specification implies and 
because it is necessary to read/write the new 24-bit floating format 
from Adobe Photoshop CS2.  I must admit to being dubious about this 
claim, and I believe that Joris is as well.  But if Adobe Photoshop 
CS2 does it, by-golly it must be right!

The 24-bit sample file is not byte-swapped because libtiff was not 
swapping at the time.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
