Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.b-one.net (mx-j.one.com [91.198.169.57])
	by mail9.b-one.net (Postfix) with ESMTP id 3CC6D40013B
	for <info@awaresystems.be>; Thu, 30 Jun 2011 18:15:36 +0200 (CEST)
Received: by mx-j.b-one.net (Postfix, from userid 106)
	id 32F6F355FD9; Thu, 30 Jun 2011 18:15:18 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-j.b-one.net (Postfix) with ESMTP id DB32D355FCA for
 <info@awaresystems.be>; Thu, 30 Jun 2011 18:15:17 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 1094F86FFB; Thu, 30 Jun 2011
 11:14:17 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org
 [65.66.246.74]) by lists.maptools.org (Postfix) with ESMTPS id D57ED86FA3 for
 <tiff@lists.maptools.org>; Thu, 30 Jun 2011 10:48:28 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65]) by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
 p5UFmP0D025973; Thu, 30 Jun 2011 10:48:25 -0500 (CDT)
Date: Thu, 30 Jun 2011 10:48:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Hib Eris <hib@hiberis.nl>
In-Reply-To: <BANLkTinfaMjCs58CZ__OsOSPdX9phovkyA@mail.gmail.com>
Message-ID: <alpine.GSO.2.01.1106301044250.28579@freddy.simplesystems.org>
References: <BANLkTinfaMjCs58CZ__OsOSPdX9phovkyA@mail.gmail.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]); Thu, 30 Jun 2011 10:48:25 -0500
 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Is it possible to read a large tiff image in portions?
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Thu, 30 Jun 2011, Hib Eris wrote:
>
> To avoid this, I would like to read and process the image in pieces,
> how should I do this with libtiff?

The functions with "RGBA" in their names are intended for users who 
want to make a minimal effort.  They are best left for trivial 
applications.

I suggest looking at the documentation for TIFFReadScanline(), 
TIFFReadEncodedStrip(), and TIFFReadTile() since these will accomplish 
what you need.

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/
