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 E7C4880150C9B
	for <filtered@awaresystems.be>; Fri, 15 Jun 2012 19:13:37 +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.160.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48])
	by mx-s.one.com (Postfix) with ESMTP id 6C7A7F93AF0
	for <filtered@awaresystems.be>; Fri, 15 Jun 2012 17:13:37 +0000 (UTC)
Received: by pbbrq8 with SMTP id rq8so6152362pbb.21
        for <filtered@awaresystems.be>; Fri, 15 Jun 2012 10:13:36 -0700 (PDT)
Received: by 10.68.228.102 with SMTP id sh6mr19306207pbc.134.1339780416419;
        Fri, 15 Jun 2012 10:13:36 -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.143.92.14 with SMTP id u14csp198195wfl;
        Fri, 15 Jun 2012 10:13:35 -0700 (PDT)
Received: by 10.68.226.102 with SMTP id rr6mr22105224pbc.99.1339780414297;
        Fri, 15 Jun 2012 10:13:34 -0700 (PDT)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.248 as permitted sender) client-ip=91.198.169.248;
Received: by 10.130.131.7 with POP3 id e7mf1556939dad.22;
        Fri, 15 Jun 2012 10:13:34 -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-q.one.com (mx-q.one.com [91.198.169.248])
	by mail6.b-one.net (Postfix) with ESMTP id 781D280150C9B
	for <info@awaresystems.be>; Fri, 15 Jun 2012 19:10:29 +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-q.one.com (Postfix) with ESMTP id 3868C78D95F
	for <info@awaresystems.be>; Fri, 15 Jun 2012 17:10:29 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 71CE31EDB3F;
	Fri, 15 Jun 2012 12:09:25 -0500 (EST)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com
	[209.85.217.172])
	by lists.maptools.org (Postfix) with ESMTPS id E51F91EDB33
	for <tiff@lists.maptools.org>; Fri, 15 Jun 2012 12:08:59 -0500 (EST)
Received: by lbbgo11 with SMTP id go11so3025426lbb.3
	for <tiff@lists.maptools.org>; Fri, 15 Jun 2012 10:08:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.48.37 with SMTP id i5mr6171404lan.36.1339780137989; Fri,
	15 Jun 2012 10:08:57 -0700 (PDT)
Received: by 10.112.133.161 with HTTP; Fri, 15 Jun 2012 10:08:57 -0700 (PDT)
In-Reply-To: <BLU0-SMTP202D0F57C46C507AC79FC0992FB0@phx.gbl>
References: <BLU0-SMTP202D0F57C46C507AC79FC0992FB0@phx.gbl>
Date: Fri, 15 Jun 2012 13:08:57 -0400
Message-ID: <CAAcuQeZRKHQuQfFi_Xub-wEL2sKmSjhwg0fZK7nBYf3uf-afuA@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: He Yang <he-yang@live.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] about TIF_RATIONAL SIZE
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

On Fri, Jun 15, 2012 at 12:55 PM, He Yang <he-yang@live.com> wrote:
> Hi guys
> =A0 =A0In the tiff.h, the comments says the TIF_RATIONAL is 64bit, but in
> tif_dirinfo.c, the return value of is 4 bytes which is 32 bit. Why?
> =A0 =A0Which is correct?

Are you referring to the value in _TIFFDataSize() ? If so, the comment
above the function should explain it. Basically, rationals are stored
as 2 32-bit integers but in the libtiff API and internal structures,
they're 32-bit floats. Conversion is done in tif_dirread.c and
tif_dirwrite.c

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