ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_tiff.c
(Generate patch)

Comparing ray/src/px/ra_tiff.c (file contents):
Revision 2.22 by greg, Tue Jul 1 22:44:02 2003 UTC vs.
Revision 2.25 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include  <stdio.h>
11   #include  <math.h>
12   #include  <ctype.h>
13 + #include  <time.h>
14   #include  "tiffio.h"
15   #include  "color.h"
16   #include  "resolu.h"
# Line 160 | Line 161 | doneopts:
161                  if (i != argc-2)
162                          goto userr;
163                                                  /* consistency checks */
164 <                if (CHK(C_GRY))
164 >                if (CHK(C_GRY)) {
165                          if (cvts.phot == PHOTOMETRIC_RGB)
166                                  cvts.phot = PHOTOMETRIC_MINISBLACK;
167                          else {
168                                  cvts.phot = PHOTOMETRIC_LOGL;
169                                  cvts.comp = COMPRESSION_SGILOG;
170                          }
171 +                }
172                  if (CHK(C_TWRD|C_TFLT) == (C_TWRD|C_TFLT))
173                          goto userr;
174  
# Line 541 | Line 543 | initfromrad()                  /* initialize input from a Radiance pi
543                          cvts.tf = Color2RRGGBB;
544                          SET(C_RFLT);
545                  } else if (CHK(C_TFLT)) {
546 +                        TIFFSetField(cvts.tif, TIFFTAG_SAMPLEFORMAT,
547 +                                        SAMPLEFORMAT_IEEEFP);
548                          cvts.tf = Color2RfGfBf;
549                          SET(C_RFLT);
550                  } else
# Line 553 | Line 557 | initfromrad()                  /* initialize input from a Radiance pi
557                          cvts.tf = Color2GGry;
558                          SET(C_RFLT);
559                  } else if (CHK(C_TFLT)) {
560 +                        TIFFSetField(cvts.tif, TIFFTAG_SAMPLEFORMAT,
561 +                                        SAMPLEFORMAT_IEEEFP);
562                          cvts.tf = Color2Gryf;
563                          SET(C_RFLT);
564                  } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines