Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail6.b-one.net (Postfix) with ESMTP id 4F76C8015020E
	for <filtered@awaresystems.be>; Thu, 26 Jul 2012 05:17:35 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-s: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.212.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48])
	by mx-s.one.com (Postfix) with ESMTP id E963D26DBAF2
	for <filtered@awaresystems.be>; Thu, 26 Jul 2012 03:17:34 +0000 (UTC)
Received: by vbjk17 with SMTP id k17so1575195vbj.21
        for <filtered@awaresystems.be>; Wed, 25 Jul 2012 20:17:34 -0700 (PDT)
Received: by 10.52.94.172 with SMTP id dd12mr17507558vdb.62.1343272654245;
        Wed, 25 Jul 2012 20:17:34 -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.208.231 with SMTP id mh7csp22434vec;
        Wed, 25 Jul 2012 20:17:33 -0700 (PDT)
Received: by 10.52.36.180 with SMTP id r20mr17615922vdj.15.1343272652919;
        Wed, 25 Jul 2012 20:17:32 -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.230.206.19 with POP3 id fs19mf1145285vbb.27;
        Wed, 25 Jul 2012 20:17:32 -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 EBB8D8015020E
	for <info@awaresystems.be>; Thu, 26 Jul 2012 05:14:55 +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 91BD91CD0903
	for <info@awaresystems.be>; Thu, 26 Jul 2012 03:14:55 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id C6D971EDB4D;
	Wed, 25 Jul 2012 22:13:50 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 14EE81EDB03
	for <tiff@lists.maptools.org>; Wed, 25 Jul 2012 22:12:26 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q6Q3CP7E027257; Wed, 25 Jul 2012 22:12:25 -0500 (CDT)
Date: Wed, 25 Jul 2012 22:12:25 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Tom Lane <tgl@sss.pgh.pa.us>
In-Reply-To: <9467.1343271021@sss.pgh.pa.us>
Message-ID: <alpine.GSO.2.01.1207252202060.27589@freddy.simplesystems.org>
References: <9467.1343271021@sss.pgh.pa.us>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Wed, 25 Jul 2012 22:12:25 -0500 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Confused about 4.0 API changes: TIFFField vs
 TIFFFieldInfo
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

On Wed, 25 Jul 2012, Tom Lane wrote:

> What the freeimage source code is doing with the TIFFFieldInfo stuff is
> determining the tag data type and the number of values, so that it can
> figure out how to call TIFFGetField to copy the data, without needing
> bespoke code for every possible tag.  I suppose I could replace that
> with hard-wired code for each tag they care about, but that surely does
> not seem like an improvement.
>
> Can anyone explain to me how to do this with the 4.0 API?  If it's
> not possible, isn't that a rather serious functionality regression?

I did not make this change and don't see how to achieve the function 
with the current interface.  It is likely that these structures were 
hidden because they are internal implementation structures which 
should not be frozen in an ABI.  New accessor functions can be added 
to query whatever useful information is available/necessary via this 
handle.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
