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 1.5 by greg, Thu Aug 15 15:47:35 1991 UTC vs.
Revision 2.2 by greg, Thu Dec 19 14:52:25 1991 UTC

# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14  
15   #include  "color.h"
16  
17 < extern double  atof();
17 > #include  "resolu.h"
18  
19 +
20   extern char  *malloc(), *realloc();
21  
22   int  lzcomp = 0;                        /* use Lempel-Ziv compression? */
# Line 142 | Line 143 | char   *inpf, *outf;
143          fputs(" -r\n", stdout);
144          fputformat(COLRFMT, stdout);
145          putchar('\n');
146 <        fputresolu(YDECR|YMAJOR, xmax, ymax, stdout);
146 >        fprtresolu(xmax, ymax, stdout);
147                                                  /* convert image */
148          if (nsamps == 1)
149                  pconfig = 1;
# Line 204 | Line 205 | char   *inpf, *outf;
205          if (strcmp(inpf, "-") && freopen(inpf, "r", stdin) == NULL)
206                  quiterr("cannot open Radiance input file");
207          if (checkheader(stdin, COLRFMT, NULL) < 0 ||
208 <                        fgetresolu(&xmax, &ymax, stdin) != (YDECR|YMAJOR))
208 >                        fgetresolu(&xmax, &ymax, stdin) < 0)
209                  quiterr("bad Radiance picture");
210                                                  /* open TIFF file */
211          if ((tif = TIFFOpen(outf, "w")) == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines