Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-i.b-one.net (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id A175140013B
	for <info@awaresystems.be>; Thu, 30 Jun 2011 18:14:41 +0200 (CEST)
Received: by mx-i.b-one.net (Postfix, from userid 106)
	id 97D366E12ED; Thu, 30 Jun 2011 18:14:17 +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-i.b-one.net (Postfix) with ESMTP id 3C0A61D4027 for
 <info@awaresystems.be>; Thu, 30 Jun 2011 18:14:17 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 2947286FD6; Thu, 30 Jun 2011
 11:13:11 -0500 (EST)
Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com
 [209.85.215.172]) by lists.maptools.org (Postfix) with ESMTPS id 3B99286EFD
 for <tiff@lists.maptools.org>; Thu, 30 Jun 2011 10:45:37 -0500 (EST)
Received: by eye13 with SMTP id 13so943741eye.3 for
 <tiff@lists.maptools.org>; Thu, 30 Jun 2011 08:45:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.14.100.136 with SMTP id z8mr656135eef.179.1309448736075; Thu,
 30 Jun 2011 08:45:36 -0700 (PDT)
Received: by 10.14.47.72 with HTTP; Thu, 30 Jun 2011 08:45:35 -0700 (PDT)
In-Reply-To: <BANLkTinfaMjCs58CZ__OsOSPdX9phovkyA@mail.gmail.com>
References: <BANLkTinfaMjCs58CZ__OsOSPdX9phovkyA@mail.gmail.com>
Date: Thu, 30 Jun 2011 11:45:35 -0400
Message-ID: <BANLkTi=cbGsf8ks3-uFkn1BgvsWq9v8P-g@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: Hib Eris <hib@hiberis.nl>
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, Jun 30, 2011 at 11:21 AM, Hib Eris <hib@hiberis.nl> wrote:
> To avoid this, I would like to read and process the image in pieces,
> how should I do this with libtiff?
>
> I noticed
> int TIFFReadRGBATile(TIFF *tif, uint32 x, uint32 y, uint32 *raster),
> but that seems to only work for tile-based tiff images. I would like
> to have a solution for all tiff images, not only tile-based ones.

There's also TIFFReadRGBAStrip for strip based images. All images will
fall in either case although some bad TIFFs may be created as a single
huge strip. I think those can be handled as well but only with lower
level APIs.

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