AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.07.06 10:18 "question of understanding / D7 and Var-Types", by Matthias Lach
2005.07.21 03:16 "Re: question of understanding / D7 and Var-Types", by Joris Van Damme
2005.07.21 14:09 "Re: question of understanding / D7 and Var-Types", by Frank Warmerdam
2005.07.21 14:21 "Re: question of understanding / D7 and Var-Types", by Chris Losinger
2005.07.21 16:13 "Re: question of understanding / D7 and Var-Types", by Joris Van Damme
2005.07.21 16:38 "Re: question of understanding / D7 and Var-Types", by Chris Losinger
2005.07.21 16:47 "Re: question of understanding / D7 and Var-Types", by Frank Warmerdam

2005.07.21 14:21 "Re: question of understanding / D7 and Var-Types", by Chris Losinger

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*.


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


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