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.2 by greg, Thu Dec 19 14:52:25 1991 UTC vs.
Revision 2.5 by greg, Thu Nov 18 09:55:26 1993 UTC

# Line 10 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10  
11   #include  <stdio.h>
12  
13 + #include  <math.h>
14 +
15   #include  "tiffio.h"
16  
17   #include  "color.h"
# Line 23 | Line 25 | int  lzcomp = 0;                       /* use Lempel-Ziv compression? */
25  
26   int  greyscale = 0;                     /* produce greyscale image? */
27  
28 < double  gamma = 2.2;                    /* gamma correction */
28 > double  gamcor = 2.2;                   /* gamma correction */
29  
30   int  bradj = 0;                         /* brightness adjustment */
31  
# Line 43 | Line 45 | char  *argv[];
45                  if (argv[i][0] == '-')
46                          switch (argv[i][1]) {
47                          case 'g':
48 <                                gamma = atof(argv[++i]);
48 >                                gamcor = atof(argv[++i]);
49                                  break;
50                          case 'z':
51                                  lzcomp = !lzcomp;
# Line 67 | Line 69 | char  *argv[];
69                  else
70                          break;
71   doneopts:
72 <        setcolrgam(gamma);
72 >        setcolrgam(gamcor);
73  
74          if (reverse)
75                  if (i != argc-2 && i != argc-1)
# Line 143 | Line 145 | char   *inpf, *outf;
145          fputs(" -r\n", stdout);
146          fputformat(COLRFMT, stdout);
147          putchar('\n');
148 <        fprtresolu(xmax, ymax, stdout);
148 >        fprtresolu((int)xmax, (int)ymax, stdout);
149                                                  /* convert image */
150          if (nsamps == 1)
151                  pconfig = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines