Return-Path: <tiff-bounces@lists.maptools.org>
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx008.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j6LET9kQ015667
        for <joris.at.lebbeke@skynet.be>; Thu, 21 Jul 2005 16:29:09 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j6LER2sd029877;
	Thu, 21 Jul 2005 10:27:11 -0400
Received: from smtpauth07.mail.atl.earthlink.net
	(smtpauth07.mail.atl.earthlink.net [209.86.89.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j6LEQw43029874
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 10:26:59 -0400
Received: from [209.116.70.133] (helo=RDU-CLOSINGER1.earthlink.net)
	by smtpauth07.mail.atl.earthlink.net with asmtp (Exim 4.34)
	id 1Dvbvw-0003Hn-9J
	for tiff@lists.maptools.org; Thu, 21 Jul 2005 10:21:56 -0400
DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=test1; d=earthlink.net;
	h=Message-Id:X-Sender:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type;
	b=hGeV33womFiRvAE2ruUQx6YLsT9Iznp0MDRrn0qVEnqe//GKp6zSmz3ZSxXkxlfn;
Message-Id: <6.0.0.22.1.20050721101818.027fb458@pop.earthlink.net>
X-Sender: losinger@earthlink.net@pop.earthlink.net
X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22
Date: Thu, 21 Jul 2005 10:21:54 -0400
To: TIFF mailing list <tiff@lists.maptools.org>
From: Chris Losinger <losinger@earthlink.net>
Subject: Re: [Tiff] question of understanding / D7 and Var-Types
In-Reply-To: <931f8ea9050721070930c790c@mail.gmail.com>
References: <200507061023.j66AN7K11797@dtagbrg1.telefax400.de>
	<003501c58da2$b0fbaf70$54abf551@dfgrrxsknr4e>
	<931f8ea9050721070930c790c@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-ELNK-Trace: be870c3544bdf80c1aa676d7e74259b7b3291a7d08dfec79fa492772bdf2f619d325e128684d9072350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 209.116.70.133
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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/pipermail/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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000897
X-MSP-STORE: Thu, 21 Jul 2005 16:29:18 +0200
Status:   


         is there a place where i can get the list of tags supported by 
LibTiff and the parameters (types and count) that TIFFGetField and 
TIFFSetField expect ?

         what Frank writes below makes me think that looking at tiff_dir.c 
and checking what the va_arg calls pull off the stack isn't going to be 
100% accurate.

         -c

At 10:09 AM 7/21/2005, Frank Warmerdam wrote:
>This is a pecularity of C.  When floating point (single) values are passed to
>a function that lacks a prototype (or uses varargs "..." as in this case)
>they are automatically promoted to double.  So internally libtiff has
>to pull a double off the stack instead of a float even though it considers
>the field to be float.  Because it considers the field to be a float, when you
>request the value you have to pass a float*, not a double*.

__________________________
Chris Losinger
Smaller Animals Software, Inc.				
http://www.smalleranimals.com


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