6 |
|
* Added white-balance adjustment 10/01 (GW). |
7 |
|
*/ |
8 |
|
|
9 |
+ |
#include "platform.h" |
10 |
|
#include "pcond.h" |
11 |
|
|
12 |
|
|
163 |
|
/* open output file */ |
164 |
|
if (i+2 == argc && freopen(argv[i+1], "w", stdout) == NULL) |
165 |
|
syserror(argv[i+1]); |
166 |
< |
#ifdef MSDOS |
167 |
< |
setmode(fileno(infp), O_BINARY); |
167 |
< |
setmode(fileno(stdout), O_BINARY); |
168 |
< |
#endif |
166 |
> |
SET_FILE_BINARY(infp); |
167 |
> |
SET_FILE_BINARY(stdout); |
168 |
|
getahead(); /* load input header */ |
169 |
|
printargs(argc, argv, stdout); /* add to output header */ |
170 |
|
if (mbcalfile == NULL & outprims != stdprims) |
243 |
|
exit(1); |
244 |
|
} |
245 |
|
if (!gotview || ourview.type == VT_PAR) { |
246 |
< |
copystruct(&ourview, &stdview); |
246 |
> |
ourview = stdview; |
247 |
|
ourview.type = VT_PER; |
248 |
|
if (pixaspect*inpres.yr < inpres.xr) { |
249 |
|
ourview.horiz = 40.0; |