Return-Path: <tiff-bounces@lists.maptools.org>
Received: from mailgate001.isp.belgacom.be (mailgate001.isp.belgacom.be [195.238.6.86])
        by inmx014.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l5S7cCD8025028
        for <joris.at.lebbeke@skynet.be>; Thu, 28 Jun 2007 09:38:13 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 28 Jun 2007 09:38:11 +0200
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 l5S7JBAX032338;
	Thu, 28 Jun 2007 03:20:33 -0400
Received: from libertypr.net (mail.libertypr.net [63.245.32.15])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l5S7I2Va032299
	for <tiff@lists.maptools.org>; Thu, 28 Jun 2007 03:18:03 -0400
Received: from sirius.homelinux.net [24.138.203.120] by libertypr.net with
	ESMTP (SMTPD-9.20) id A0A90658; Thu, 28 Jun 2007 03:18:01 -0400
Date: Thu, 28 Jun 2007 03:18:00 -0400
From: Renier Morales =?ISO-8859-1?Q?Rodr=EDguez?=
	<renier@morales-rodriguez.net>
To: tiff@lists.maptools.org
Subject: Re: [Tiff] Fw: Patch: TIFF Group 3/4 decoder support for PIL 1.1.6
Message-ID: <20070628031800.2078310e@sirius.homelinux.net>
X-Mailer: Claws Mail 2.9.1cvs38 (GTK+ 2.10.9; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
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
X-UIDL: 000000000023ceae.00002495
X-MSP-STORE: Thu, 28 Jun 2007 09:38:20 +0200
Status:   

On Wed, 27 Jun 2007 10:21:34 -0400, Frank Warmerdam
<warmerdam@pobox.com> wrote:
> If PIL wants to use the G3/G4 code from libtiff I'd suggest instead
> that the code just be copied and adapted for the purpose.  I've done
> this successfully for another g3/g4 format in my GDAL library.

Hmm. Going to need some pointers and understand a lot more about TIFF
than a wanted.
I think I've found the relevant code in tif_fax3.c (Fax4Decode). I saw
the the decoding uses a pointer to the tif struct, but it seems that the
only legal way to get a tif struct pointer is with TIFFOpen. Problem
is, in PIL, I get the bytes of the file, not the path to it, AFAICT.

You still think its possible to adapt the libtiff G3/G4 decoder if I
only have the bytes of the tif image? If so, then that means I don't
need concern myself with those STATE macros?

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