Date: Tue, 22 Mar 2005 20:00:00
From: David Gilbert <dgilbert@dclg.ca>
Subject: Re: [Tiff] tif_jpeg.c and 12bit JPEG Files
Message-ID: <16960.28021.4204.14634@canoe.dclg.ca>
References: <931f8ea905032209207728feb5@mail.gmail.com>
	<Pine.SOC.4.60.0503221158080.8945@blade.simplesystems.org>
	<931f8ea905032210105f1486b1@mail.gmail.com>
	<Pine.SOC.4.60.0503221217560.8945@blade.simplesystems.org>

> The only way that makes sense is for 12 bit samples to be
> returned the same as for an uncompressed 12 bit TIFF file.
> Likewise, 12 bit samples should be consumed so that the only
> thing special the library user needs to do is request JPEG
> compression, and possibly JPEG RGB mode.

Well... the "issue" is that the jpeg library treats 12 bit samples as
12 bit stored in 16 bit integers.  JPEG's transformation uses 16 bit
ints for the math anyways ... so someone has to do the upsampling.
Both the classic and the MK1 jpeg expect the user to do this.
