Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id f3PAC6sI013099
	for <dron@localhost>; Wed, 25 Apr 2001 14:18:09 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.8.1)
	for dron@localhost (single-drop); Wed, 25 Apr 2001 14:18:09 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Tue Apr 24 15:58:05 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id SAA05301;
	Tue, 24 Apr 2001 18:35:30 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Tue, 24 Apr 2001 18:34:21 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id SAA05222
	for tiff-outgoing; Tue, 24 Apr 2001 18:34:21 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id SAA05219
	for <tiff@olympiakos.com>; Tue, 24 Apr 2001 18:34:19 -0400
Received: from shareware.demon.co.uk ([193.237.112.2] helo=default)
	by finch-post-10.mail.demon.net with smtp (Exim 2.12 #1)
	id 14sBNw-000NNM-0A; Tue, 24 Apr 2001 22:34:16 +0000
Message-ID: <000001c0cd0e$fecc1e00$0270edc1@default>
From: "morello" <info@morello.co.uk>
To: "Michael O'Rourke" <morourke@Adobe.COM>, <tiff@olympiakos.com>
References: <IJEEKGEBDCHCGMJDLMHHKELECHAA.morourke@adobe.com>
Subject: Re: Being able to read the bits per sample array? (vs a single value)
Date: Tue, 24 Apr 2001 22:49:20 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 982
Lines: 27

>
> Looks to me like LibTiff only lets you read TAG_BITSPERSAMPLE as a single
> value rather than an array.
>
> Anybody know how to read the array (if it exists)?

I haven't looked into this in detail, so maybe someone else can correct me.
I might need a solution to this myself soon.

First I think this is a limitation in the library and will need a code
change. But there are already examples of array tags which seem to be
implemented (according to the documents), such as EXTRASAMPLES. Maybe that
is a place to look?

This would probably need to be done as a private hack. Alternatively, isn't
there an extension mechanism for adding support for new tags (without
altering the mainstream code), perhaps that can also be used to alter the
handling of the bits per sample tag.

Having said all that, I am not sure if the code to actually read the
scanlines will work. Can of worms.

Tom

Morello Publishing Ltd
http://www.morello.co.uk
Manage your passwords with Morello KeyRing

