Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.3.148])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j2MLxbbh007091
        for <joris.at.lebbeke@skynet.be>; Tue, 22 Mar 2005 22:59:37 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j2MLxOeR006124
        for <joris.at.lebbeke@skynet.be>; Tue, 22 Mar 2005 22:59:27 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id B8F33172244F; Tue, 22 Mar 2005 16:59:08 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id C5DFB172240F
	for <tiff@remotesensing.org>; Tue, 22 Mar 2005 16:59:05 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	j2MLx2Ai004543; Tue, 22 Mar 2005 15:59:02 -0600 (CST)
Date: Tue, 22 Mar 2005 15:59:02 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: warmerdam@pobox.com
Subject: Re: [Tiff] tif_jpeg.c and 12bit JPEG Files
In-Reply-To: <931f8ea905032212387b9513e1@mail.gmail.com>
Message-ID: <Pine.SOC.4.60.0503221550120.8945@blade.simplesystems.org>
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>
	<16960.28021.4204.14634@canoe.dclg.ca>
	<Pine.SOC.4.60.0503221407310.8945@blade.simplesystems.org>
	<931f8ea905032212387b9513e1@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: libtiff-Mailinglist <tiff@remotesensing.org>,
        David Gilbert <dgilbert@dclg.ca>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: cd63dee2471be5d6caf7e5e2a1c48cb9

On Tue, 22 Mar 2005, Frank Warmerdam wrote:

> I have modified the JPEGDecode in tif_jpeg.c to take care of
> repacking the 16bit data into 12bit packed format.  BTW, the
> changes are now all committed in tif_jpeg.c in the CVS head
> for libtiff for use with the Mk1 libjpeg.

I just verified your updates against IJG JPEG 6b (not the Mk1 version) 
built at 12 bits and am happy to report that it almost works!  I say 
*almost* since the image appears as if the red and green samples have 
been interchanged.  Trees and grass in the image are shown as red.

Performance seemed slower than expected, but then again my test image 
is 125MB, tiled, and multi-frame encoded (7680x13824 largest frame) so 
that might explain the slowness.

Did you include a writer-path in your updates?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
