2003.09.10 02:21 "[Tiff] 12-bits tiff", by Gennady Khokhorin

2003.09.10 06:56 "[Tiff] 12-bits tiff", by Andrey Kiselev

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 V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517