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.41 by greg, Tue Jul 1 19:40:35 2025 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include  <math.h>
11   #include  <ctype.h>
12
12   #include  "rtio.h"
13   #include  "platform.h"
14   #include  "tiffio.h"
# Line 108 | Line 107 | short  ortab[8] = {            /* orientation conversion table */
107   extern char     TMSTR[];        /* "CAPDATE=" from header.c */
108   char            OWNSTR[] = "OWNER=";
109  
111 char  *progname;
110  
113
111   int
112   main(int  argc, char  *argv[])
113   {
114          int  reverse = 0;
115          int  i;
116 <        
117 <        progname = argv[0];
116 >                                        /* set global progname */
117 >        fixargv0(argv[0]);
118  
119          for (i = 1; i < argc; i++)
120                  if (argv[i][0] == '-')
# Line 377 | Line 374 | initfromtif(void)              /* initialize conversion from TIFF
374                  cvts.owner[sizeof(cvts.owner)-1] = '\0';
375          }
376                                          /* add to Radiance header */
377 <        if (cvts.pixrat < .99 || cvts.pixrat > 1.01)
377 >        if (cvts.pixrat < .999 || cvts.pixrat > 1.001)
378                  fputaspect(cvts.pixrat, cvts.rfp);
379          if (CHK(C_XYZE)) {
380                  if (cvts.stonits > .0)
# Line 556 | Line 553 | initfromrad(void)                      /* initialize input from a Radianc
553                  SET(C_GAMMA|C_GAMUT);
554                  CLR(C_GRY);
555                  setcolrgam(cvts.gamcor);
556 <                if (CHK(C_XYZE|C_SPEC)) {
556 >                if (CHK(C_TWRD|C_TFLT) ? CHK(C_XYZE|C_SPEC) : CHK(C_XYZE)) {
557                          compxyz2rgbWBmat(cvts.cmat,
558                                          CHK(C_PRIM) ? cvts.prims : stdprims);
559                          SET(C_CXFM);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines