7 |
|
* Added white-balance adjustment 10/01 (GW). |
8 |
|
*/ |
9 |
|
|
10 |
– |
#include <stdio.h> |
10 |
|
#include <math.h> |
11 |
|
#include <ctype.h> |
13 |
– |
#include <time.h> |
14 |
– |
#include <string.h> |
12 |
|
|
13 |
+ |
#include "rtio.h" |
14 |
+ |
#include "platform.h" |
15 |
|
#include "tiffio.h" |
16 |
|
#include "color.h" |
17 |
|
#include "resolu.h" |
414 |
|
cvts.rfp = stdout; |
415 |
|
else if ((cvts.rfp = fopen(av[ac+1], "w")) == NULL) |
416 |
|
quiterr("cannot open Radiance output picture"); |
417 |
+ |
SET_FILE_BINARY(cvts.rfp); |
418 |
|
/* start output header */ |
419 |
|
newheader("RADIANCE", cvts.rfp); |
420 |
|
printargs(ac, av, cvts.rfp); |
440 |
|
{ |
441 |
|
static int tmstrlen = 0; |
442 |
|
static int ownstrlen = 0; |
443 |
< |
char fmt[32]; |
443 |
> |
char fmt[MAXFMTLEN]; |
444 |
|
|
445 |
|
if (!tmstrlen) |
446 |
|
tmstrlen = strlen(TMSTR); |
634 |
|
cvts.rfp = stdin; |
635 |
|
else if ((cvts.rfp = fopen(av[ac], "r")) == NULL) |
636 |
|
quiterr("cannot open Radiance input picture"); |
637 |
+ |
SET_FILE_BINARY(cvts.rfp); |
638 |
|
/* open TIFF file */ |
639 |
|
if ((cvts.tif = TIFFOpen(av[ac+1], "w")) == NULL) |
640 |
|
quiterr("cannot open TIFF output"); |