Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id 335A540013D
	for <info@awaresystems.be>; Sun, 14 Jun 2009 19:10:35 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0.901
X-Spam-Level: 
X-Spam-Status: No, score=0.901 tagged_above=0 required=6
	tests=[URIBL_RHS_DOB=0.901]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-k.b-one.net (Postfix) with ESMTP id 7185DC22406
	for <info@awaresystems.be>; Sun, 14 Jun 2009 19:10:34 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id F12881D18DE72;
	Sun, 14 Jun 2009 12:09:44 -0500 (EST)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by lists.maptools.org (Postfix) with SMTP id 2517C1D185AE0
	for <tiff@lists.maptools.org>; Sun, 14 Jun 2009 11:47:58 -0500 (EST)
Received: (qmail invoked by alias); 14 Jun 2009 16:47:57 -0000
Received: from f053028015.adsl.alicedsl.de (EHLO sirius.rasena) [78.53.28.15]
	by mail.gmx.net (mp018) with SMTP; 14 Jun 2009 18:47:57 +0200
X-Authenticated: #2969065
X-Provags-ID: V01U2FsdGVkX1+KfokIgHaKCnk/OuZJh/zno82m0UJqpF8jp3pGW7
	jQKbnCqceHJa8n
Received: by sirius.rasena (Postfix, from userid 500)
	id A5720133E08; Sun, 14 Jun 2009 18:50:57 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by sirius.rasena (Postfix) with ESMTP id 90DBE133D5E;
	Sun, 14 Jun 2009 18:50:57 +0200 (CEST)
Date: Sun, 14 Jun 2009 18:50:57 +0200 (CEST)
From: Kai-Uwe Behrmann <ku.b@gmx.de>
X-X-Sender: kuwe@sirius.rasena
To: Keshab Neupane <neupane.keshab@yahoo.com>
In-Reply-To: <895553.7495.qm@web111805.mail.gq1.yahoo.com>
Message-ID: <alpine.LSU.2.00.0906141843050.5247@sirius.rasena>
References: <895553.7495.qm@web111805.mail.gq1.yahoo.com>
User-Agent: Alpine 2.00 (LSU 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323584-1167926686-1244998257=:5247"
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.62
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Tiff 16 bit and 32 bit images
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Kai-Uwe Behrmann <ku.b@gmx.de>
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323584-1167926686-1244998257=:5247
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

Am 14.06.09, 06:24 -0700 schrieb Keshab Neupane:
> 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 ?

Yes, colour, grayscale or whatever is independent from the data type.

> 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 ?

You can simply cast to the according type.
uint16_t * my_16bit_per_sample_buffer = (uint16_t*) my_char_buffer;

> And also, how does this data relate to bpp,bps and spp ?

bpp  - bit per pixel
bps  - bit per sample
spp  - samples per pixel

A 16-bit RGBA image has:
64 bpp
16 bps
  4 spp


hope this helps,
Kai-Uwe Behrmann
-- 
developing for colour management 
www.behrmann.name + www.oyranos.org

--8323584-1167926686-1244998257=:5247
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
--8323584-1167926686-1244998257=:5247--
