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 70AE380178247
	for <filtered@awaresystems.be>; Sun, 17 Jun 2012 22:01:15 +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.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-q.one.com (Postfix) with ESMTP id E525985D48C
	for <filtered@awaresystems.be>; Sun, 17 Jun 2012 20:01:14 +0000 (UTC)
Received: by pbbrq8 with SMTP id rq8so8078498pbb.21
        for <filtered@awaresystems.be>; Sun, 17 Jun 2012 13:01:12 -0700 (PDT)
Received: by 10.68.234.35 with SMTP id ub3mr44363633pbc.8.1339963272557;
        Sun, 17 Jun 2012 13:01:12 -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 u14csp41288wfl;
        Sun, 17 Jun 2012 13:01:11 -0700 (PDT)
Received: by 10.68.221.106 with SMTP id qd10mr44850094pbc.42.1339963269740;
        Sun, 17 Jun 2012 13:01:09 -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.131.80.21 with POP3 id h21mf3425374dal.29;
        Sun, 17 Jun 2012 13:01:09 -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 6DF9680178247
	for <info@awaresystems.be>; Sun, 17 Jun 2012 21:57:10 +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 15D8485A716
	for <info@awaresystems.be>; Sun, 17 Jun 2012 19:57:09 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 1C5873AD99A;
	Sun, 17 Jun 2012 14:55:39 -0500 (EST)
Received: from blu0-omc1-s26.blu0.hotmail.com (blu0-omc1-s26.blu0.hotmail.com
	[65.55.116.37])
	by lists.maptools.org (Postfix) with ESMTP id 3DBBE3AD99A
	for <tiff@lists.maptools.org>; Sun, 17 Jun 2012 14:47:47 -0500 (EST)
Received: from BLU0-SMTP141 ([65.55.116.9]) by blu0-omc1-s26.blu0.hotmail.com
	with Microsoft SMTPSVC(6.0.3790.4675); 
	Sun, 17 Jun 2012 12:47:45 -0700
X-Originating-IP: [76.187.105.60]
X-Originating-Email: [he-yang@live.com]
Message-ID: <BLU0-SMTP1417E97C73B123FA0C848D792F90@phx.gbl>
Received: from [192.168.1.3] ([76.187.105.60]) by BLU0-SMTP141.phx.gbl over
	TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); 
	Sun, 17 Jun 2012 12:47:44 -0700
Date: Sun, 17 Jun 2012 14:47:36 -0500
From: He Yang <he-yang@live.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <mailman.1.1339952401.5316.tiff@lists.maptools.org>
In-Reply-To: <mailman.1.1339952401.5316.tiff@lists.maptools.org>
X-OriginalArrivalTime: 17 Jun 2012 19:47:44.0832 (UTC)
	FILETIME=[1087E400:01CD4CC2]
Subject: Re: [Tiff] Tiff Digest, Vol 97, Issue 5
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 6/17/2012 12:00 PM, tiff-request@lists.maptools.org wrote:
> Send Tiff mailing list submissions to
> 	tiff@lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.maptools.org/mailman/listinfo/tiff
> or, via email, send a message with subject or body 'help' to
> 	tiff-request@lists.maptools.org
>
> You can reach the person managing the list at
> 	tiff-owner@lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tiff digest..."
>
>
> Today's Topics:
>
>     1. Re: about the  TIFFSetField usage (Frank Warmerdam)
>     2. another problem about TIFFSetField  Precision (He Yang)
>     3. Re: another problem about TIFFSetField  Precision
>        (Andreas Kleinert)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 16 Jun 2012 10:00:36 -0700
> From: Frank Warmerdam<warmerdam@pobox.com>
> Subject: Re: [Tiff] about the  TIFFSetField usage
> To: tiff@lists.maptools.org
> Message-ID:<4FDCBBB4.8050600@pobox.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 12-06-16 09:37 AM, He Yang wrote:
>> Hi
>>       I am a beginner, an  try to learn how to use TIFFSetField usage,  I
>> try to use  TIFFSetField as below
>>
>>         TIFFSetField(tif, tag, count, vlaue_ptr);
>>      it works, but the value is not correct when I try to use TIFFGetField
>> ,  the count = 1, and the vlaue_ptr is the pointer of a short value,
>> which value equal to 16, but when I read it back it become 1.  What I
>> did wrong?
> He Yang,
>
> The tricky thing with TIFFSetField() is that the calling sequence is very
> much determined by which tag you are getting and setting.  The library
> attempts to provide a "natural" calling sequence depending on the nature
> of the tag but this means you need to lookup the particular tag in the
> TIFFSetField man page to see the appropriate arguments.   Likewise with
> TIFFGetField.  So you will need to be more specific about the tag you
> are talking about.
>
> Best regards,
Hi  Frank
I  am trying to set the EXIFTAG_EXPOSURETIME,  which is a 
TIFF_RATIONAL,  is there are way to make sure the forward /backward 
conversion are always consistent. Does libtiff provide a way to make 
sure the rational to float and float to rational,  But from my tracing, 
I found the precision was lost during read back from the disk file not 
from the memory?

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