Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas025.isp.belgacom.be (localhost [127.0.0.1])
        by inav012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k0H7p4H8023394
        for <joris.at.lebbeke@skynet.be>; Tue, 17 Jan 2006 08:51:04 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx010.isp.belgacom.be (inmx010.isp.belgacom.be [195.238.4.73])
        by inas025.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k0H7ost8027424
        for <joris.at.lebbeke@skynet.be>; Tue, 17 Jan 2006 08:50:57 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k0H7onK8031992
        for <joris.at.lebbeke@skynet.be>; Tue, 17 Jan 2006 08:50:50 +0100
        (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 k0H7i47b008937;
	Tue, 17 Jan 2006 02:45:05 -0500
Received: from moutng.kundenserver.de (moutng.kundenserver.de
	[212.227.126.171])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k0H7hxjf008934
	for <tiff@lists.maptools.org>; Tue, 17 Jan 2006 02:44:02 -0500
Received: from [217.91.34.95] (helo=PatrykMobile)
	by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis),
	id 0MKwtQ-1EylVL01Vd-0002Rs; Tue, 17 Jan 2006 08:43:48 +0100
Message-ID: <005e01c61b39$c4d3ab90$320aa8c0@PatrykMobile>
From: "Patryk Palasz" <Patryk.Palasz@rsdtechnik.de>
To: "Bob Friesenhahn" <bfriesen@simple.dallas.tx.us>
References: <004701c61aaf$00756390$320aa8c0@PatrykMobile>
	<Pine.SOC.4.60.0601160929410.4804@blade.simplesystems.org>
Subject: Re: [Tiff] TiffReadEncodedStrip - problem in Delphi
Date: Tue, 17 Jan 2006 08:43:53 +0100
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Provags-ID: kundenserver.de abuse@kundenserver.de
	login:c5073b09200ff8114d922b50c5021289
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.00001176
X-MSP-STORE: Tue, 17 Jan 2006 08:51:06 +0100
Status:   


> Why are you handling the fill order in your own code?  I believe that
> libtiff already handles that for you.  So you are likely scrambling the 
> data yourself.  Also, what does ChangeLinesOrder() do?

This is not the point. I was using TiffReverseBits instead of 
ChangeBitsOrder but in case of those two pictures this code is simply not 
used. ChangeLinesOrder function changes line order in bitmap from up-bottom 
to bottom-up (TiffReadRGBA* make it automaticall but TiffReadEncodedStrip 
not). I was trying with and without this function - no success :(.


>>
>> BitmapBuff := FBitmap.ScanLine[ FImgHeight - 1];
>> for i := FStripsCnt - 1 downto 0 do
>> begin
>>   read := TiffReadEncodedStrip( FTiffFile, i, Buff, -1);
>>   if read <> -1 then
>>   begin
>>     if FFillOrder <> FILLORDER_MSB2LSB then
>>       ChangeBitsOrder( Buff, read);
>>     ChangeLinesOrder( Buff, BitmapBuff, read);
>>     Inc( BitmapBuff, read);
>>   end;
>> end;
>>


>> _______________________________________________
>> Tiff mailing list: Tiff@lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/tiff
>> http://www.remotesensing.org/libtiff/
>>
>
> ======================================
> 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/ 

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
