Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-g.b-one.net (mx-g.one.com [91.198.169.54])
	by mail9.b-one.net (Postfix) with ESMTP id 3EF2740013D
	for <info@awaresystems.be>; Mon, 15 Jun 2009 19:30:51 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-g.b-one.net (Postfix) with ESMTP id 3F1611400181
	for <info@awaresystems.be>; Mon, 15 Jun 2009 19:30:50 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 54D941D34A5E6;
	Mon, 15 Jun 2009 12:28:31 -0500 (EST)
Received: from exprod6og106.obsmtp.com (exprod6og106.obsmtp.com [64.18.1.191])
	by lists.maptools.org (Postfix) with ESMTPS id A2F3E1D202406
	for <tiff@lists.maptools.org>; Mon, 15 Jun 2009 12:00:00 -0500 (EST)
Received: from source ([192.150.8.22]) by exprod6ob106.postini.com
	([64.18.5.12]) with SMTP
	ID DSNKSjZ+CcjYKEph18+HZCMUOWNNv5xH0Atb@postini.com;
	Mon, 15 Jun 2009 10:00:12 PDT
Received: from inner-relay-1.corp.adobe.com ([153.32.1.51])
	by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id
	n5FGxoWG012052; Mon, 15 Jun 2009 09:59:51 -0700 (PDT)
Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99])
	by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id
	n5FGxdiq008754; Mon, 15 Jun 2009 09:59:39 -0700 (PDT)
Received: from nambx03.corp.adobe.com ([10.8.189.93]) by
	nacas01.corp.adobe.com ([10.8.189.99]) with mapi;
	Mon, 15 Jun 2009 09:59:39 -0700
From: Chris Cox <ccox@adobe.com>
To: Keshab Neupane <neupane.keshab@yahoo.com>, "tiff@lists.maptools.org"
	<tiff@lists.maptools.org>
Date: Mon, 15 Jun 2009 09:57:08 -0700
Thread-Topic: [Tiff] Tiff 16 bit and 32 bit images
Thread-Index: Acns9Qe9zJTczMl9RBOQx4039WXUegA5UnAK
Message-ID: <2C8CDA89BA7EEB45894477CF82AC198A018148E4A6AD@nambx03.corp.adobe.com>
References: <895553.7495.qm@web111805.mail.gq1.yahoo.com>
In-Reply-To: <895553.7495.qm@web111805.mail.gq1.yahoo.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
Subject: Re: [Tiff] Tiff 16 bit and 32 bit images
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

For most things, bit depth and color mode (interpretation) are independent.
You can have 32 bit float RGB, Grayscale, LAB, etc. images.

You never count the total number of bits.  Only bits per channel.  This is important because the channel count is not limited by the color mode, and because counting the total number of bits leads to confusion (how many different ways could you pack values into 64 bits?).

16 bit RGB means 16 bits of Red, 16 bits of Green, 16 bits of Blue.

Chris

________________________________________
From: tiff-bounces@lists.maptools.org [tiff-bounces@lists.maptools.org] On Behalf Of Keshab Neupane [neupane.keshab@yahoo.com]
Sent: Sunday, June 14, 2009 6:24 AM
To: tiff@lists.maptools.org
Subject: [Tiff] Tiff 16 bit and 32 bit images

Hi All,
I am very beginner in this tiff field, If I say something silly, please excuse me.
I am writing an application to convert/save tiff image into buffer and then back to image from buffer.
For this, I need to handle all types of images. I am having trouble with tiff 16 bits signed/unsigned integer and 32 bit float  images. Does this 16/32 bit means they are colored images or they can be greyscale too ?
I am using TIFFReadScanline to read the datas, but the problem is my buffer(this is constraint) is char* and how can I access this data if they are 16/32 bit ? And also, how does this data relate to bpp,bps and spp ?
I mean can 16 bit means 16 bit for R,G,B each or 16 bit in total for R,G,B; and same with 32 bit ?
Thank you very much for your help.
Best,
Keshab




_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
