Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas003.isp.belgacom.be (localhost [127.0.0.1])
        by inav010.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k8IFfKQh001274
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 17:41:20 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx008.isp.belgacom.be (inmx008.isp.belgacom.be [195.238.5.88])
        by inas003.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k8IFfCZW027807
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 17:41:14 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx008.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k8IFexvN005829
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 17:41:00 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 k8IFKRON024094;
	Mon, 18 Sep 2006 11:20:45 -0400
Received: from mail.polkadots.ca (mail.polkadots.ca [216.113.38.187])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k8IFKPIx024091
	for <tiff@lists.maptools.org>; Mon, 18 Sep 2006 11:20:26 -0400
DomainKey-Signature: a=rsa-sha1; s=MDaemon; d=polkadots.ca;
	c=simple; q=dns; h=message-id:from;
	b=L/ukPTvgN0sIn+DPQDdP7FwNRCwx07ceAVAsL4r/T4DGsXvuYo7npN5uJsxK
	e86z353KU+PpAoHDoBu5z4Z2emwMIxXE81bkLXmr2xU/NwaNxU3A+3Bok
	yk/TKzS8v+yGZx9Il8WC41gakSwao8lnnYDp4v6LIVq6PPnlJyBqcE=;
Received: from [10.254.254.165] by polkadots.ca (MDaemon PRO v9.0.6)
	with ESMTP id md50000368993.msg
	for <tiff@lists.maptools.org>; Mon, 18 Sep 2006 11:20:19 -0400
Message-ID: <450EAA75.30707@polkadots.ca>
Date: Mon, 18 Sep 2006 11:17:25 -0300
From: Thierry Pierron <t.pierron@polkadots.ca>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tiff@lists.maptools.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Authenticated-Sender: t.pierron@polkadots.ca
X-Spam-Report: * -4.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
	*      [score: 0.0000]
X-Spam-Status: No, score=-4.00 required=5.0
X-Spam-Level: 
X-Spam-Processed: mail.polkadots.ca, Mon, 18 Sep 2006 11:20:19 -0400
	(processed during SMTP session)
X-MDRemoteIP: 216.113.38.178
X-Return-Path: t.pierron@polkadots.ca
X-Envelope-From: t.pierron@polkadots.ca
X-MDaemon-Deliver-To: tiff@lists.maptools.org
Subject: [Tiff] Flate/RLE compression in TIFF
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.00001a88
X-MSP-STORE: Mon, 18 Sep 2006 17:41:25 +0200
Status:   


Hello,

I wonder if libtiff support that kind of compression (as far as I've 
seen in tiff.h, it seems that not, but who knows ...). Actually this 
compression scheme consists first to compress data line by line using 
RLE (packbits) algorithm, then compress the whole stream (not line by 
line) using zlib (flate algorithm), thus its name : Flate/RLE.

I found such compression into some EPS file. I would like to extract 
data part and put it inside a TIFF body, so that I can use libtiff to 
read them (without having to unpack them manually first, and then repack 
them using libtiff). Actually, I'm doing a similar job to read EPS file, 
compressed using COMPRESSION_CCITT_T6 (Group4) and it works rather well.

I see that there is a function TIFFRegisterCODEC() that should interrest 
me, but as far as I've seen, it seems rather under documented. Maybe 
someone can point to an example using this function ?

Regards,

-- 
Thierry Pierron



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