Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (ak4719.spb.edu [127.0.0.1])
	by ak4719.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id h355aGtr001797
	for <dron@localhost>; Sat, 5 Apr 2003 09:36:50 +0400
Received: from pop.in02.prd.whowhere.com [209.202.220.196]
	by localhost with POP3 (fetchmail-6.2.0)
	for dron@localhost (single-drop); Sat, 05 Apr 2003 09:36:50 +0400 (MSD)
Received: from gate7.olympiakos.com ([64.32.199.150]) by whowhere.com; Fri, 04 Apr 2003 10:52:33 -0000
X-Envelope-Sender: owner-tiff@olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 65534)
	id 9D26E110CC; Fri,  4 Apr 2003 05:51:29 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by gate7.olympiakos.com (Postfix) with SMTP
	id 890A2110C5; Fri,  4 Apr 2003 05:51:29 -0500 (EST)
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Fri, 4 Apr 2003 05:51:08 -0500
Delivered-To: tiff-outgoing@gate7.olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 16)
	id CACD1110C8; Fri,  4 Apr 2003 05:51:08 -0500 (EST)
Delivered-To: tiff@olympiakos.com
Received: from motgate5.mot.com (motgate5.mot.com [144.189.100.105])
	by gate7.olympiakos.com (Postfix) with ESMTP id E5052110C5
	for <tiff@olympiakos.com>; Fri,  4 Apr 2003 05:51:06 -0500 (EST)
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100])
	by motgate5.mot.com (Motorola/Motgate5) with ESMTP id h34AoaR7020789
	for <tiff@olympiakos.com>; Fri, 4 Apr 2003 03:50:36 -0700 (MST)
Received: [from zei02exm02.cork.cig.mot.com ([10.131.7.12]) by pobox.mot.com (MOT-pobox 2.0) with ESMTP id DAA01708 for <tiff@olympiakos.com>; Fri, 4 Apr 2003 03:51:04 -0700 (MST)]
Received: by zei02exm02.cork.cig.mot.com with Internet Mail Service (5.5.2656.59)
	id <GTG9FP76>; Fri, 4 Apr 2003 11:51:03 +0100
Message-ID: <496E31A690F7D311B93C0008C789494C06ACDB34@zei02exm01.cork.cig.mot.com>
From: Carter John-jcarte01 <John.A.Carter@motorola.com>
To: "'Michael Still'" <mikal@stillhq.com>, NTC Alpha <ntc_alpha@hotmail.com>
Cc: tiff@olympiakos.com
Subject: RE: 8bit to 12bit
Date: Fri, 4 Apr 2003 11:50:18 +0100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2656.59)
Content-Type: text/plain
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1382
Lines: 44

how would 12bit data be stored.
is it 4 bits per colour ie 4bit for red, 4 for green 4 for blue ?.
does it also mean that there are 2 pixels every 3 bytes ?
is there a color_map
if so will it need to be updated ?

-----Original Message-----
From: Michael Still [mailto:mikal@stillhq.com]
Sent: 04 April 2003 11:33
To: NTC Alpha
Cc: tiff@olympiakos.com
Subject: Re: 8bit to 12bit


On Thu, 3 Apr 2003, NTC Alpha wrote:

> I have an 8bit per color TIFF image. I have to
> convert it to 12bit per color TIFF image.
> Can this be done by libtiff? If not, could you please advise a tool?

Yes. You would have the do the conversion though. Does that make the
answer no? Oh I don't know, I'm confused with my own answer already.

You can do something like this with libtiff:

 - read in 8 bit data
 - hoon through data and convert each sample to 12 bit
 - save the data to a new file

Hope this helps,
Mikal

-- 

Michael Still (mikal@stillhq.com) | Stage 1: Steal underpants
http://www.stillhq.com            | Stage 2: ????
UTC + 10                          | Stage 3: Profit


To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

