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.37 by greg, Fri Oct 4 18:49:06 2024 UTC vs.
Revision 2.39 by greg, Fri Jun 6 19:11:21 2025 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include  <math.h>
11   #include  <ctype.h>
12 <
12 > #include  "paths.h"
13   #include  "rtio.h"
14   #include  "platform.h"
15   #include  "tiffio.h"
# Line 108 | Line 108 | short  ortab[8] = {            /* orientation conversion table */
108   extern char     TMSTR[];        /* "CAPDATE=" from header.c */
109   char            OWNSTR[] = "OWNER=";
110  
111 char  *progname;
111  
113
112   int
113   main(int  argc, char  *argv[])
114   {
115          int  reverse = 0;
116          int  i;
117 <        
118 <        progname = argv[0];
117 >                                        /* set global progname */
118 >        fixargv0(argv[0]);
119  
120          for (i = 1; i < argc; i++)
121                  if (argv[i][0] == '-')
# Line 556 | Line 554 | initfromrad(void)                      /* initialize input from a Radianc
554                  SET(C_GAMMA|C_GAMUT);
555                  CLR(C_GRY);
556                  setcolrgam(cvts.gamcor);
557 <                if (CHK(C_XYZE|C_SPEC)) {
557 >                if (CHK(C_TWRD|C_TFLT) ? CHK(C_XYZE|C_SPEC) : CHK(C_XYZE)) {
558                          compxyz2rgbWBmat(cvts.cmat,
559                                          CHK(C_PRIM) ? cvts.prims : stdprims);
560                          SET(C_CXFM);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines