Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav013.isp.belgacom.be (inav013.isp.belgacom.be [195.238.2.245])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i9SItX9l015066
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 20:55:33 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas004.isp.belgacom.be (localhost [127.0.0.1])
        by inav013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id i9SItO8C029034
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 20:55:25 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx014.isp.belgacom.be (inmx014.isp.belgacom.be [195.238.2.217])
        by inas004.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id i9SItFgn002321
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 20:55:19 +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 inmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i9SIt9JR030385
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Oct 2004 20:55:11 +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 8368041DC9F; Thu, 28 Oct 2004 14:54:52 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from ahk.pu.ru (unknown [195.70.196.198])
	by xserve.flids.com (Postfix) with ESMTP id BA63441DC7B
	for <tiff@remotesensing.org>; Thu, 28 Oct 2004 14:54:49 -0400 (EDT)
Received: from wg.pu.ru (wg.pu.ru [193.124.85.219])
	by ahk.pu.ru (8.12.11/8.12.9) with ESMTP id i9SIsm06082357
	for <tiff@remotesensing.org>; Thu, 28 Oct 2004 22:54:48 +0400 (MSD)
	(envelope-from dron@ak4719.spb.edu)
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id SAA24127
	for tiff@remotesensing.org; Thu, 28 Oct 2004 18:54:48 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.12.11/8.12.11/Debian-5) with ESMTP id
	i9SId5Pq017644
	for <tiff@remotesensing.org>; Thu, 28 Oct 2004 22:39:05 +0400
Received: (from dron@localhost)
	by ak4719.spb.edu (8.12.11/8.12.11/Debian-5) id i9SId5Yr017641
	for tiff@remotesensing.org; Thu, 28 Oct 2004 22:39:05 +0400
From: Andrey Kiselev <dron@ak4719.spb.edu>
Date: Thu, 28 Oct 2004 22:39:04 +0400
To: tiff@remotesensing.org
Subject: Re: [Tiff] why does tiffcp::cpSeparateBufToContigBuf takes
	BYTES_per_sample as parameter?
Message-ID: <20041028183904.GB11660@ak4719.spb.edu>
Mail-Followup-To: tiff@remotesensing.org
References: <b35303704102805032d56f188@mail.gmail.com>
	<Pine.SOC.4.60.0410280901380.8908@blade.simplesystems.org>
	<b35303704102808187677935@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <b35303704102808187677935@mail.gmail.com>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S, d@_1-C=}/,
	c%<3Qp]eu!ok<"2lYJm$!9qVcg F?7o*L; |$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;
	>fuY=fc(=sX^`7Wmw8%SsR`AvM$a; 0U/eN\ P?B\FTyqD, 0np$U2!*'z_4D,
	VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
	Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;
	j~\M! gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.6+20040722i
X-Virus-Scanned: clamd / ClamAV version 0.75-1, clamav-milter version 0.75c
	on ak4719
X-Virus-Status: Clean
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: d8af3fca20547ed869b5cedb70242d2e

On Thu, Oct 28, 2004 at 08:48:41PM +0530, 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).
> 
> Thanks Bob, this means that I should be expecting any bit-depth in a
> tiff image.
> 
> But I am confused (as mentioned in my original post) how tiffcp
> routines (cpSeparateBufToContigBuf and cpContigBufToSeparateBuf)
> handle all bit-depths, they seem to be byte oriented.

The answer is simple: tiffcp doesn't support such images (howewer,
as it was noted, channel interleaved images with unusual bit depths may
be processed correctly).

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
