16 |
|
#include "resolu.h" |
17 |
|
|
18 |
|
double gamcor = 2.2; /* gamma correction */ |
19 |
– |
|
19 |
|
int bradj = 0; /* brightness adjustment */ |
21 |
– |
|
20 |
|
char *progname; |
23 |
– |
|
21 |
|
int xmax, ymax; |
22 |
|
|
23 |
+ |
static void quiterr(char *err); |
24 |
+ |
static void pr2ra(int rf, int pad); |
25 |
+ |
static void ra2pr(int rf, int pad); |
26 |
|
|
27 |
< |
main(argc, argv) |
28 |
< |
int argc; |
29 |
< |
char *argv[]; |
27 |
> |
|
28 |
> |
int |
29 |
> |
main(int argc, char *argv[]) |
30 |
|
{ |
31 |
|
struct rasterfile head; |
32 |
|
int reverse = 0; |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
< |
quiterr(err) /* print message and exit */ |
123 |
< |
char *err; |
122 |
> |
static void |
123 |
> |
quiterr( /* print message and exit */ |
124 |
> |
char *err |
125 |
> |
) |
126 |
|
{ |
127 |
|
if (err != NULL) { |
128 |
|
fprintf(stderr, "%s: %s\n", progname, err); |
132 |
|
} |
133 |
|
|
134 |
|
|
135 |
< |
pr2ra(rf, pad) /* convert 24-bit scanlines to Radiance picture */ |
136 |
< |
int rf; |
137 |
< |
int pad; |
135 |
> |
static void |
136 |
> |
pr2ra( /* convert 24-bit scanlines to Radiance picture */ |
137 |
> |
int rf, |
138 |
> |
int pad |
139 |
> |
) |
140 |
|
{ |
141 |
|
COLR *scanout; |
142 |
|
register int x; |
173 |
|
} |
174 |
|
|
175 |
|
|
176 |
< |
ra2pr(rf, pad) /* convert Radiance scanlines to 24-bit rasterfile */ |
177 |
< |
int rf; |
178 |
< |
int pad; |
176 |
> |
static void |
177 |
> |
ra2pr( /* convert Radiance scanlines to 24-bit rasterfile */ |
178 |
> |
int rf, |
179 |
> |
int pad |
180 |
> |
) |
181 |
|
{ |
182 |
|
int ord[3]; |
183 |
|
COLR *scanin; |