Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-q.one.com (mx-q.one.com [91.198.169.248])
	by mail6.b-one.net (Postfix) with ESMTP id EBDE68017F7FB
	for <filtered@awaresystems.be>; Sun, 29 Jul 2012 21:09:20 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-q: 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-q.one.com (Postfix) with ESMTP id 7EB451C9328F
	for <filtered@awaresystems.be>; Sun, 29 Jul 2012 19:09:20 +0000 (UTC)
Received: by vcbfl11 with SMTP id fl11so5102649vcb.21
        for <filtered@awaresystems.be>; Sun, 29 Jul 2012 12:09:19 -0700 (PDT)
Received: by 10.52.90.144 with SMTP id bw16mr7599187vdb.129.1343588959739;
        Sun, 29 Jul 2012 12:09:19 -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 mh7csp115386vec;
        Sun, 29 Jul 2012 12:09:19 -0700 (PDT)
Received: by 10.52.90.199 with SMTP id by7mr7699275vdb.30.1343588958950;
        Sun, 29 Jul 2012 12:09:18 -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.15.193 with POP3 id l1mf4631275vba.9;
        Sun, 29 Jul 2012 12:09:18 -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 F17778017F7FB
	for <info@awaresystems.be>; Sun, 29 Jul 2012 20:56:14 +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 98D822AA379
	for <info@awaresystems.be>; Sun, 29 Jul 2012 18:56:14 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 8C1893AD9CB;
	Sun, 29 Jul 2012 13:55:09 -0500 (EST)
Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6])
	by lists.maptools.org (Postfix) with ESMTP id CAC471EDB48
	for <tiff@lists.maptools.org>; Sun, 29 Jul 2012 13:51:56 -0500 (EST)
Received: from even-desktop.localnet (unknown [88.162.84.61])
	by smtp6-g21.free.fr (Postfix) with ESMTP id 83015822C3;
	Sun, 29 Jul 2012 20:51:51 +0200 (CEST)
From: Even Rouault <even.rouault@mines-paris.org>
To: tiff@lists.maptools.org
Date: Sun, 29 Jul 2012 20:51:25 +0200
User-Agent: KMail/1.13.5 (Linux/2.6.32-41-generic; KDE/4.4.5; x86_64; ; )
References: <25189.1343586898@sss.pgh.pa.us>
In-Reply-To: <25189.1343586898@sss.pgh.pa.us>
MIME-Version: 1.0
Message-Id: <201207292051.25569.even.rouault@mines-paris.org>
Subject: Re: [Tiff] So ... what about exporting TIFFDataSize?
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="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Le dimanche 29 juillet 2012 20:34:58, Tom Lane a =E9crit :
> Armed with the accessor functions for TIFFField, I went back for another
> try at building freeimage with libtiff 4.0, and found there's still a
> remaining problem: it tries to use _TIFFDataSize() which is no longer
> accessible from outside the library.  Looking at this, it seems like
> we should export that function or something just like it, because the
> only alternative is for clients to have built-in knowledge that
> TIFF_RATIONAL is funny.  I see that tiffset.c has effectively duplicated
> TIFFDataSize() in-line, which is surely even worse.
> =

> So, any objections to renaming this to TIFFDataSize() and exporting it?
> Has anyone got a better naming suggestion than that?

No better suggestion, but due to the fact that the difference between the =

concepts of Size and Width might not be obvious to the reader, it might be =

wise to be really explicit in the documentation of how they differ. If I =

understand well, TIFFDataWidth() is about the size on disk, and TIFFDataSiz=
e() =

the size in memory ?

> =

> 			regards, tom lane
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
