Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav005.isp.belgacom.be (inav005.isp.belgacom.be [195.238.2.77])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i9SHxHeH022411
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 19:59:17 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas003.isp.belgacom.be (localhost [127.0.0.1])
        by inav005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id i9SHxAe2027262
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 19:59:10 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.3.90])
        by inas003.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id i9SHwxOR013179
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 19:59:00 +0200
        (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 inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i9SHwnjc005838
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 19:58:51 +0200
        (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 22E2C41D729; Thu, 28 Oct 2004 13:58:34 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192])
	by xserve.flids.com (Postfix) with ESMTP id 0924941D706
	for <tiff@remotesensing.org>; Thu, 28 Oct 2004 13:58:32 -0400 (EDT)
Received: by wproxy.gmail.com with SMTP id 58so586645wri
	for <tiff@remotesensing.org>; Thu, 28 Oct 2004 10:58:31 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
	b=h7kfYjJ9KGjn1wpzNIB0bhfoDvIjxSbRnZ3RluByQhyEOjdmO31VI9aORH+SVP7J3byz82CKI1HDmZJMlIpQ/M67gL7Vewfh/Qp3zbR8IgXOlu67wIKyS08nGpWRRTwMvbhl03u8H4GAl8kSO3XbcVwpNvtUXCKQxmKUPutBzOk=
Received: by 10.38.151.24 with SMTP id y24mr1490054rnd;
	Thu, 28 Oct 2004 10:58:31 -0700 (PDT)
Received: by 10.38.86.41 with HTTP; Thu, 28 Oct 2004 10:58:30 -0700 (PDT)
Message-ID: <b3530370410281058403474e@mail.gmail.com>
Date: Thu, 28 Oct 2004 23:28:30 +0530
From: Sachin Garg <schngrg@gmail.com>
To: tiff@remotesensing.org
Subject: Re: [Tiff] why does tiffcp::cpSeparateBufToContigBuf takes
	BYTES_per_sample as parameter?
In-Reply-To: <Pine.SOC.4.60.0410280901380.8908@blade.simplesystems.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <b35303704102805032d56f188@mail.gmail.com>
	<Pine.SOC.4.60.0410280901380.8908@blade.simplesystems.org>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Sachin Garg <schngrg@gmail.com>
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: f4a917c54afe066246dc0be0a631953b

On Thu, 28 Oct 2004 09:05:36 -0500 (CDT), Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
> On Thu, 28 Oct 2004, Sachin Garg wrote:
> >
> > Also, is it that in a tiff, bits_per_sample can take only some valid
> > values, or can any value be assigned/expected for this tag? (4, 8, 16,
> > 24, 32 seem to be popular ones but are these the only valid values, or
> > can I expect other values like 3, 6, 19 etc... too)
> 
> The bits_per_sample value can be almost any value. I have used libtiff
> with values ranging from 1 to 32 without problem.  For example, 7 is a
> legitimate value.  Most software only reads and writes 1 and powers of
> two, but TIFF files with bits_per_sample of 10 or 12 are in common use
> for some trades (e.g. to support medical/scientific CCD cameras).

If possible, can you please mail me a few sample images with bit-depth
not a multiple of 8. I couldnt find any such tif.

I promise to use them only for testing purposes.

Thanks
 
-- 
Sachin Garg [India]
http://www.geocities.com/schngrg
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
