From: dron@ak4719.spb.edu (Andrey Kiselev)
Date: Wed, 10 Sep 2003 10:56:12 +0400
Subject: [Tiff] 12-bits tiff
In-Reply-To: <226D2307B478954E9FAE88927B70AD4E6EB90B@admin1.aeromap.com>
References: <226D2307B478954E9FAE88927B70AD4E6EB90B@admin1.aeromap.com>
Message-ID: <20030910065612.GA15325@ak4719.spb.edu>

On Tue, Sep 09, 2003 at 06:21:37PM -0800, Gennady Khokhorin wrote:
> Does somebody have any idea what is packing schema for 12-bits image
> in terms of PACK(r,g,b), PACK4(r,g,b,a) RGBA format (tif_getimage.c)?
> I'm reading buffer from jpeg codec and want to convert it to rgba
> (tiff2rgba.c sample).

The first thing which comes to mind that they are packed 4 bits per
channel. But you should be sure you are working in RGB colorspace, not
in YCbCr. If latter you need to convert values after unpacking.

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517

