14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
+ |
#include "resolu.h" |
18 |
+ |
|
19 |
|
extern double atof(), pow(); |
20 |
|
|
21 |
|
double gamma = 2.0; /* gamma correction */ |
80 |
|
printargs(i, argv, rafp); |
81 |
|
fputformat(COLRFMT, rafp); |
82 |
|
putc('\n', rafp); |
83 |
< |
fputresolu(YMAJOR|YDECR, xmax, ymax, rafp); |
83 |
> |
fprtresolu(xmax, ymax, rafp); |
84 |
|
/* convert file */ |
85 |
|
bn2ra(); |
86 |
|
} else { |
95 |
|
} |
96 |
|
/* get header */ |
97 |
|
if (checkheader(rafp, COLRFMT, NULL) < 0 || |
98 |
< |
fgetresolu(&xmax, &ymax, rafp) != (YMAJOR|YDECR)) |
98 |
> |
fgetresolu(&xmax, &ymax, rafp) < 0) |
99 |
|
quiterr("bad RADIANCE format"); |
100 |
|
if (openbarney(argv[i+1], "w") < 0) { |
101 |
|
sprintf(errmsg, "cannot open output \"%s\"", argv[i+1]); |