Received: from sgi.sgi.com (192.48.153.1) by cerious.com
 with SMTP (Apple Internet Mail Server 1.1.1); Fri, 10 Jan 1997 12:30:21 -0500
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA17209; Fri, 10 Jan 1997 09:24:15 -0800
Received: (from daemon@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id QAA25607 for tiff-list; Fri, 10 Jan 1997 16:05:24 GMT
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id IAA25521 for <tiff-relay@relay.engr.sgi.com>; Fri, 10 Jan 1997 08:05:21 -0800
Received: from ub4b.eunet.be (ub4b.eunet.be [192.92.130.1]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id IAA28709 for <tiff@sgi.com>; Fri, 10 Jan 1997 08:00:39 -0800
Received: from agfa.be (windsor.agfa.be) by ub4b.eunet.be (ub4b_08)
	id AA02477; Fri, 10 Jan 1997 17:00:35 +0100
Received: from garfield.eps.agfa.be by agfa.be (4.1/SMI-4.1)
	id AA22110; Fri, 10 Jan 97 16:58:26 +0100
Received: from blueberry.eps.agfa by garfield.eps.agfa.be (SMI-8.6/SMI-SVR4)
	id QAA23145; Fri, 10 Jan 1997 16:59:52 +0100
Received: from blueberry by blueberry.eps.agfa (SMI-8.6/SMI-SVR4)
	id QAA08880; Fri, 10 Jan 1997 16:55:37 +0100
Message-Id: <32D66678.2C7B@eps.agfa.be>
Date: Fri, 10 Jan 1997 16:55:36 +0100
From: Sven Devriese <sdevries@eps.agfa.be>
Organization: Agfa Gevaert NV
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5.1 sun4u)
Mime-Version: 1.0
To: tiff@sgi.com
Cc: Sven Devriese <sdevries@eps.agfa.be>
Subject: TIFFRead/WriteScanline question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@relay.engr.SGI.COM
Precedence: bulk

Hello all,

the man page for TIFFWriteScanline mentions that
for Planarconfiguration = 1 (PLANARCONFIG_CONTIG)
"the library does not pack the block-interleaved
samples".  I guess this means that the bit planes
are not separated before the data is written to
file.
Similarily, the man page for TIFFReadScanline says:
"The data are returned decompressed and <marshalled>
but are otherwise packed."  It also says at the bottom
that if you want to unpack the block-interleaved
samples (I think that's contiguous pixel data e.g.
RGBRGBRGB, right ?) you have to use the strip- and
tile-based interfaces to read these formats.

If I understand this correctly, I can read/write
compressed scanlines of a plane-separate image
(i.e. pc = 2) but they are compressed differently
than when I read/write scanlines of the equivalent
block-interleaved (i.e. pc = 1) image.

Or does it mean that I just cannot read/write compressed
TIF files using the scanline interface ?

I need to know because, for incorporating libtiff
into our own software, I may only use the scanline
interface for reading/writing pixel data.

I think maybe the terminology is getting to me.
Can anyone clarify this for me ?

Thank you for your time.

Sven.
