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 1.6 by greg, Mon Nov 11 14:01:23 1991 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines