14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
+ |
#include "resolu.h" |
18 |
+ |
|
19 |
|
extern double atof(); |
20 |
|
|
21 |
|
extern char *malloc(), *realloc(); |
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; |
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) |