Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas015.isp.belgacom.be (localhost [127.0.0.1])
        by inav007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k99DhVbj008109
        for <joris.at.lebbeke@skynet.be>; Mon, 9 Oct 2006 15:43:34 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.5.146])
        by inas015.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k99DHdaI006847
        for <joris.at.lebbeke@skynet.be>; Mon, 9 Oct 2006 15:43:26 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx009.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k99D50M8017321
        for <joris.at.lebbeke@skynet.be>; Mon, 9 Oct 2006 15:05:01 +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 k99Co1HT030889;
	Mon, 9 Oct 2006 08:51:03 -0400
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k99Cnwk2030880
	for <tiff@lists.maptools.org>; Mon, 9 Oct 2006 08:49:58 -0400
Received: by py-out-1112.google.com with SMTP id n25so2337474pyg
	for <tiff@lists.maptools.org>; Mon, 09 Oct 2006 05:49:57 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=b+FWUsTq1hUBREZP9I2k2UFXx/EwIPhGdCpBJCd/00gFniKTuaP+FxGcEzu/GzpIpSf8oUP737gfsRq1gRr/YIyuAEB+zrDwPEHfjwapWPkGI/VNAAbYBIHULPQQWGM8Yh29Gz1kLdxxJLcBQSqLpqwOVpmCyaWlZv/Xd4EgjWI=
Received: by 10.35.131.4 with SMTP id i4mr12798338pyn;
	Mon, 09 Oct 2006 05:49:57 -0700 (PDT)
Received: by 10.35.58.10 with HTTP; Mon, 9 Oct 2006 05:49:56 -0700 (PDT)
Message-ID: <29bcc0df0610090549u5de07bfjbdd2289a2a7a9c98@mail.gmail.com>
Date: Mon, 9 Oct 2006 16:49:56 +0400
From: "Andrey Kiselev" <andrey.kiselev@gmail.com>
To: tiff@lists.maptools.org
Subject: Re: [Tiff] Horizontal prediction for 16bit data
In-Reply-To: <001701c6e28a$143cc910$eaabf551@dfgrrxsknr4e>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <C1404FB9.4521B%ccox@adobe.com>
	<001701c6e28a$143cc910$eaabf551@dfgrrxsknr4e>
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.00001b9f
X-MSP-STORE: Mon, 09 Oct 2006 15:43:41 +0200
Status:   

On 9/28/06, Joris <joris.at.lebbeke@skynet.be> wrote:
> > Reorder planes -> difference -> byte order swap to file order ->
> > compress And the reverse
> > Decompress -> byte order swap to host order -> undo-difference ->
> > reorder planes
>
> OK, that clears it up. Depredicting comes after resolving byte order in
> de decoding pipeline. My problem is that I take byte order into the next
> layer that deals with color and color convertion, so there is no
> resolution of image data byte order inside my TIFF codec at all. The
> reason was mainly that I didn't want to end up swapping bytes, only to
> next possibly swap them back when feeding the stuff directly into an
> encoder session.

Joris,

I am late on this topic, but I just want to clarify that libtiff works
in the way Chris described above. So it should create valid TIFF files
(at least readable with Photoshop).

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/
