Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-e.b-one.net (mx-e.one.com [91.198.169.52])
	by mail9.b-one.net (Postfix) with ESMTP id E139C400107
	for <info@awaresystems.be>; Mon, 16 Mar 2009 11:58:45 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-e.b-one.net (Postfix) with ESMTP id 15970C2E021
	for <info@awaresystems.be>; Mon, 16 Mar 2009 11:58:44 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 4B3801D193E9B;
	Mon, 16 Mar 2009 05:57:57 -0500 (EST)
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by lists.maptools.org (Postfix) with ESMTP id 1EEEF1D193D8B
	for <Tiff@lists.maptools.org>; Mon, 16 Mar 2009 05:54:58 -0500 (EST)
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id 87794227
	for <Tiff@lists.maptools.org>; Mon, 16 Mar 2009 11:54:57 +0100 (CET)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Mon, 16 Mar 2009 11:54:04 +0100
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D063AA205@zynlms01.ZyLAB.WAN>
In-Reply-To: <E9EAAF8F753048A28F1E38C54D16B5EE@vitbdc.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] Needs help on implementing the JPEG 7 compression
Thread-Index: AcmmBzHhpMYlgVbfRo6Ys/au5PHPlgAHN3jQ
References: <E9EAAF8F753048A28F1E38C54D16B5EE@vitbdc.com>
From: "Gerben Vos" <Gerben@ZyLAB.COM>
To: <Tiff@lists.maptools.org>
Subject: Re: [Tiff] Needs help on implementing the JPEG 7 compression
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Sanjeev Balachander  wrote:
 
> I have a requirement where in i had to incorporate the JPEG 7
> compression. When i searched in the net i am getting an algorithm for
> only JPEG 6 . I am in need of some sample c code for implementin the
> JPEG 7 compression to the TIFF images.  If some one is having kindly
> do share the same if possible.

Interesting! Where did you find the algorithm for compression type 6
(old-style JPEG-in-TIFF)?

C code for compression type 7 (new-style JPEG-in-TIFF) has been
available for a long time as part of libtiff. Just download it from
http://www.remotesensing.com/libtiff/ . The code is in tif_jpeg.c .

A specification of compression type 7 can be found at
http://www.remotesensing.org/libtiff/TIFFTechNote2.html

This document also explains why it is a terribly bad idea to try to
implement compression type 6. Libtiff contains read-only code for this
deprecated compression type.

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