Received: from mailgate007.isp.belgacom.be (mailgate007.isp.belgacom.be [195.238.5.213])
	by maildelivery018.isp.belgacom.be (Postfix) with ESMTP id 9C56F3AC046
	for <joris.at.lebbeke@skynet.be>; Thu,  2 Aug 2007 19:29:09 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 02 Aug 2007 19:29:09 +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 l72H5M2e029985;
	Thu, 2 Aug 2007 13:05:29 -0400
Received: from rune.pobox.com (rune.pobox.com [208.210.124.79])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l72H5JJQ029981
	for <tiff@lists.maptools.org>; Thu, 2 Aug 2007 13:05:19 -0400
Received: from rune (localhost [127.0.0.1])
	by rune.pobox.com (Postfix) with ESMTP id DC3F4119FB4;
	Thu,  2 Aug 2007 13:05:40 -0400 (EDT)
Received: from [192.168.2.3] (dpc674728121.direcpc.com [67.47.28.121])
	by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 011461180F4;
	Thu,  2 Aug 2007 13:05:32 -0400 (EDT)
Message-ID: <46B21A3F.1010309@pobox.com>
Date: Thu, 02 Aug 2007 13:54:07 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 1.5.0.9 (X11/20070104)
MIME-Version: 1.0
To: Christian Henning <chhenning@gmail.com>
Subject: Re: [Tiff] reading planar images using TIFFReadScanline
References: <949801310708020938j4cb065f0u10ee3bf7a221462b@mail.gmail.com>
In-Reply-To: <949801310708020938j4cb065f0u10ee3bf7a221462b@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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.000026c7
X-MSP-STORE: Thu, 02 Aug 2007 19:29:09 +0200
Status:   

Christian Henning wrote:
> Hi there, is it correct to say that reading using TIFFReadScanline is
> not working? 

Christian,

As far as I know it works fine, within it's intended constraints (stripped
files only).

 > Also, is there one way of reading all kinds of tiff
> images using just one TIFFRead*****?

The TIFFReadRGBAImage() interface will work with tiled and stripped files.
But there are still image types (unusual bit depths for instance) that it
won't work with.

The libtiff API is closely aligned with the TIFF format itself.  This is
good in some ways, but it means you can't just treat the TIFF file in a very
abstract way.  Instead you are forced to deal seperately with tiled and
stripped images, and differently with pixel and band interleaved (planar
configuration contiguous and seperate) images.

Consider using a higher level library if you are looking for simplified
access.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

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