Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail6.b-one.net (Postfix) with ESMTP id 5CF018017F7E9
	for <filtered@awaresystems.be>; Thu, 16 Aug 2012 15:06:13 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.220.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176])
	by mx-k.one.com (Postfix) with ESMTP id DFC3B186A21D
	for <filtered@awaresystems.be>; Thu, 16 Aug 2012 13:06:12 +0000 (UTC)
Received: by vcbfl11 with SMTP id fl11so3150371vcb.21
        for <filtered@awaresystems.be>; Thu, 16 Aug 2012 06:06:11 -0700 (PDT)
Received: by 10.58.74.198 with SMTP id w6mr538687vev.22.1345122371840;
        Thu, 16 Aug 2012 06:06:11 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.58.70.138 with SMTP id m10csp523254veu;
        Thu, 16 Aug 2012 06:06:11 -0700 (PDT)
Received: by 10.220.214.205 with SMTP id hb13mr538522vcb.28.1345122370310;
        Thu, 16 Aug 2012 06:06:10 -0700 (PDT)
Received-SPF: neutral (google.com: 91.198.169.57 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.57;
Received: by 10.220.207.155 with POP3 id fy27mf2790017vcb.29;
        Thu, 16 Aug 2012 06:06:10 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.one.com (mx-j.one.com [91.198.169.57])
	by mail6.b-one.net (Postfix) with ESMTP id 1B3C88017F7E9
	for <info@awaresystems.be>; Thu, 16 Aug 2012 14:50:36 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-j.one.com (Postfix) with ESMTP id B5017107D38B
	for <info@awaresystems.be>; Thu, 16 Aug 2012 12:50:35 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id B315743A3D4;
	Thu, 16 Aug 2012 07:48:56 -0500 (EST)
Received: from iguard14-229.hkbn.net (iguard14-229.hkbn.net [203.186.16.229])
	by lists.maptools.org (Postfix) with ESMTP id 342C243A3CD
	for <tiff@lists.maptools.org>; Thu, 16 Aug 2012 07:48:24 -0500 (EST)
Received: from outguard01.hkbn.net ([203.186.94.187])
	by iguard14.hkbn.net with ESMTP; 16 Aug 2012 20:48:22 +0800
Received: from outguard01.hkbn.net (unknown [127.0.0.1])
	by IMSVA (Postfix) with ESMTP id B04F83D004A
	for <tiff@lists.maptools.org>; Thu, 16 Aug 2012 20:48:21 +0800 (HKT)
Received: from smtpo.ctimail.com (unknown [203.186.94.58])
	by outguard01.hkbn.net (Postfix) with ESMTP id 933813D0041
	for <tiff@lists.maptools.org>; Thu, 16 Aug 2012 20:48:21 +0800 (HKT)
Received: from i7.coppice.org (123203240234.ctinets.com [123.203.240.234])
	by smtpo.ctimail.com (8.14.5/8.14.5) with ESMTP id q7GCmIQl015512
	for <tiff@lists.maptools.org>; Thu, 16 Aug 2012 20:48:21 +0800
Message-ID: <502CEC12.2010504@coppice.org>
Date: Thu, 16 Aug 2012 20:48:18 +0800
From: Steve Underwood <steveu@coppice.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:14.0) Gecko/20120717 Thunderbird/14.0
MIME-Version: 1.0
To: Tiff List <tiff@lists.maptools.org>
X-TM-AS-Product-Ver: IMSVA-8.2.0.1391-6.8.0.1017-19118.000
X-TM-AS-Result: No--5.762-9.9-31-10
X-imss-scan-details: No--5.762-9.9-31-10;No--5.762-5.0-31-10
X-TMASE-Version: IMSVA-8.2.0.1391-6.8.1017-19118.000
X-TMASE-Result: 10--5.762100-5.000000
X-TMASE-MatchedRID: 4/j8LLHp3DaubeZytpejQ0KcYi5Qw/RV+pkYmVlzZ8uTRKwJ9IvW+WJr
	9a6TwZ2j2hTOUzxi3QgJ7VKkyipkn/LmcR+/mcaEW7gz/Gbgpl6RPtwwl97om/gnJH5vm2+gtYw
	ybS5m3W0wCE4f0LKX8wJBPXjffghPEGoqafnRs28ksSBZTGCrwrTrdaH1ZWqCCaz7A70l7zb6C0
	ePs7A07Y6HM5rqDwqtiacyspj6otCX1aQG1KC27u+NBi4uzd21e/L0iFi8cFovfCCo8erO7w==
Subject: [Tiff] Custom directory support
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

Hi,

I tried using the custom directory stuff in libtiff 3.9 a while ago, and 
it had problems when writing. Now I have tried 4.0.2, and things seem to 
be working OK so far. However, I wonder if I am using the library in the 
intended way, because.......

     I need to include tif_dir.h to get the definition of TIFFField and 
TIFFFieldArrayfor using custom directories, but this is not part of the 
installed set of files. Am I supposed to handle these definitions in 
another way? At the moment I have simply copied tif_dir.h into my 
project directory, and things work OK.

     The custom directory handling requires a TIFFFieldArray to define 
the tag, just like the 4.0.2 library does internally, but it seems I 
still need to use the old TIFFFieldInfo definitions to extend the list 
of tags for the main directory. Is this intentional, or have I missed 
something?

Apart from this, 4.0.2 is looking pretty nice.

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