8 |
|
#include <math.h> |
9 |
|
|
10 |
|
#include "rtio.h" |
11 |
+ |
#include "paths.h" |
12 |
|
#include "platform.h" |
13 |
|
#include "color.h" |
14 |
|
#include "tonemap.h" |
19 |
|
|
20 |
|
double gamcor = 2.2; /* gamma correction value */ |
21 |
|
|
21 |
– |
char *progname; |
22 |
– |
|
22 |
|
static void quiterr(const char *err); |
23 |
|
static void tmap2bmp(char *fnin, char *fnout, char *expec, |
24 |
|
RGBPRIMP monpri, double gamval); |
42 |
|
RESOLU rs; |
43 |
|
int i; |
44 |
|
|
45 |
< |
progname = argv[0]; |
45 |
> |
fixargv0(argv[0]); /* assigns progname */ |
46 |
|
|
47 |
|
for (i = 1; i < argc; i++) |
48 |
|
if (argv[i][0] == '-' && argv[i][1]) |