Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id iB7KgJrV023204
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Dec 2004 21:42:19 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id iB7Kg8Pj004289
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Dec 2004 21:42:09 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 327B04E1F9C; Tue,  7 Dec 2004 15:41:51 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id 2FFD24E1F79
	for <tiff@remotesensing.org>; Tue,  7 Dec 2004 15:41:49 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	iB7Kfkjt004646; Tue, 7 Dec 2004 14:41:46 -0600 (CST)
Date: Tue, 7 Dec 2004 14:41:46 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Joris <joris.at.lebbeke@skynet.be>
Subject: Re: [Tiff] Fetching pixel data from 4bit tiff
In-Reply-To: <000c01c4dc97$652bacb0$5eb1f551@dfgrrxsknr4e>
Message-ID: <Pine.SOC.4.60.0412071439180.4000@blade.simplesystems.org>
References: <41B5A137.1030103@llgc.org.uk>
	<Pine.SOC.4.60.0412070944330.4000@blade.simplesystems.org>
	<000c01c4dc97$652bacb0$5eb1f551@dfgrrxsknr4e>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 0fae4eded1286ae68bcb75c5ba5963a6

On Tue, 7 Dec 2004, Joris wrote:

>> You should use TIFFReadScanline() to read each scanline into memory
>> you have allocated.
>
> Bob,
>
> Good advice. Especially if you plan to next explain how tiling issues require
> another low-level approach. And explain that the interface will still work only
> with these 4bit images, or either explain planarconfiguration issues,
> subsampling issues, all color convertion issues, etc.

I did not find it necessary because I assumed that you would clarify 
all of these issues.  Alternatively, he could read the documentation 
or look at the sample utility code which comes with libtiff.

Most monochrome images are quite large, so expanding them to RGBA is 
quite wasteful of memory, and slow.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
