Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery022.isp.belgacom.be (Postfix) with ESMTP id 76B561A415B
	for <joris.at.lebbeke@skynet.be>; Thu, 14 Feb 2008 01:20:28 +0100 (CET)
Authentication-Results: in.mx.skynet.be; dkim=neutral (message not signed) header.i=none
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 14 Feb 2008 01:20:27 +0100
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m1DNwS6c030892;
	Wed, 13 Feb 2008 18:58:59 -0500
Received: from rune.pobox.com (rune.pobox.com [208.210.124.79])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m1DNp9T2030792
	for <tiff@lists.maptools.org>; Wed, 13 Feb 2008 18:51:09 -0500
Received: from rune.listbox.com (localhost [127.0.0.1])
	by rune.pobox.com (Postfix) with ESMTP id D03E019960C;
	Wed, 13 Feb 2008 18:51:28 -0500 (EST)
Received: from [192.168.2.4] (dpc674728121.direcpc.com [67.47.28.121]) (using
	TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client
	certificate
	requested) by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id
	A84D819960D; Wed, 13 Feb 2008 18:51:11 -0500 (EST)
Message-ID: <47B38228.5000308@pobox.com>
Date: Wed, 13 Feb 2008 18:50:00 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: Joel Wilson <JoelW@surdex.com>
Subject: Re: [Tiff] 12 bit jpeg
References: <9D0F7C60185DEC4E8160302B90C2FAB8210B0C@EmailServer1.sdxdomain>
In-Reply-To: <9D0F7C60185DEC4E8160302B90C2FAB8210B0C@EmailServer1.sdxdomain>
Content-Type: text/plain; charset=windows-1252; format=flowed
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
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
Content-Transfer-Encoding: quoted-printable
X-UIDL: 000000000023ceae.00002a9e
X-MSP-STORE: Thu, 14 Feb 2008 01:20:28 +0100
Status:   

Joel Wilson wrote:
> I am trying to implement 12 bit jpeg and have run into some issues.  I=20
> am using the mk1-branch version of libjpeg.  I made some minor changes=20
> to tif_jpeg.c and jcofig.h to get it to build with visual studio 9. =20
> When I try to compress a 12 bit image I receive this error.
>=20
>             JPEGLib: Missing Huffman code table entry
>=20
> I found a post that suggested to change line 1345 of tif_jpeg.c from
>=20
> if (sp->jpegtablesmode & JPEGTABLESMODE_HUFF )
>=20
> to
>=20
>             if( (sp->jpegtablesmode & JPEGTABLESMODE_HUFF  &&=20
> sp->tif->tif_dir.td_bitspersample =3D=3D 8 ))
>=20
> This did allow the compression to run, but the resulting image shows up=
=20
> as all green with some detail in the background.  I am trying to match=20
> Intergraph=92s 12 bit jpeg compressed imagery.  It appears that the=20
> problem is that my jpeg table is a third the size of when I run it with=
=20
> the Intergraph software.  Does anyone have any suggestions?

Joel,

I'm not absolutely positive the 12bit writing support ever really worked
properly.  Definately, at the time, the 12bit reading was the focus and
I think still works when built properly.

Best regards,
--=20
---------------------------------------+---------------------------------=
-----
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox=
.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.or=
g

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
