13 |
|
#include <time.h> |
14 |
|
#include <string.h> |
15 |
|
|
16 |
+ |
#include "platform.h" |
17 |
|
#include "tiffio.h" |
18 |
|
#include "color.h" |
19 |
|
#include "resolu.h" |
416 |
|
cvts.rfp = stdout; |
417 |
|
else if ((cvts.rfp = fopen(av[ac+1], "w")) == NULL) |
418 |
|
quiterr("cannot open Radiance output picture"); |
419 |
+ |
SET_FILE_BINARY(cvts.rfp); |
420 |
|
/* start output header */ |
421 |
|
newheader("RADIANCE", cvts.rfp); |
422 |
|
printargs(ac, av, cvts.rfp); |
636 |
|
cvts.rfp = stdin; |
637 |
|
else if ((cvts.rfp = fopen(av[ac], "r")) == NULL) |
638 |
|
quiterr("cannot open Radiance input picture"); |
639 |
+ |
SET_FILE_BINARY(cvts.rfp); |
640 |
|
/* open TIFF file */ |
641 |
|
if ((cvts.tif = TIFFOpen(av[ac+1], "w")) == NULL) |
642 |
|
quiterr("cannot open TIFF output"); |