--- ray/src/px/ra_tiff.c 2003/07/01 22:44:02 2.22 +++ ray/src/px/ra_tiff.c 2003/07/16 01:32:53 2.24 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_tiff.c,v 2.22 2003/07/01 22:44:02 greg Exp $"; +static const char RCSid[] = "$Id: ra_tiff.c,v 2.24 2003/07/16 01:32:53 greg Exp $"; #endif /* * Program to convert between RADIANCE and TIFF files. @@ -10,6 +10,7 @@ static const char RCSid[] = "$Id: ra_tiff.c,v 2.22 200 #include #include #include +#include #include "tiffio.h" #include "color.h" #include "resolu.h" @@ -541,6 +542,8 @@ initfromrad() /* initialize input from a Radiance pi cvts.tf = Color2RRGGBB; SET(C_RFLT); } else if (CHK(C_TFLT)) { + TIFFSetField(cvts.tif, TIFFTAG_SAMPLEFORMAT, + SAMPLEFORMAT_IEEEFP); cvts.tf = Color2RfGfBf; SET(C_RFLT); } else @@ -553,6 +556,8 @@ initfromrad() /* initialize input from a Radiance pi cvts.tf = Color2GGry; SET(C_RFLT); } else if (CHK(C_TFLT)) { + TIFFSetField(cvts.tif, TIFFTAG_SAMPLEFORMAT, + SAMPLEFORMAT_IEEEFP); cvts.tf = Color2Gryf; SET(C_RFLT); } else