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.23 by greg, Mon Jul 14 04:56:54 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines