9 |
|
*/ |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
+ |
#include <math.h> |
13 |
+ |
#include "color.h" |
14 |
+ |
#include "resolu.h" |
15 |
+ |
|
16 |
|
#ifdef MSDOS |
17 |
|
#include <fcntl.h> |
18 |
|
#endif |
19 |
|
|
16 |
– |
#include "color.h" |
17 |
– |
#include "resolu.h" |
18 |
– |
|
20 |
|
extern char *malloc(); |
21 |
|
|
22 |
|
int bradj = 0; /* brightness adjustment */ |
90 |
|
|
91 |
|
transfer() /* transfer Radiance picture */ |
92 |
|
{ |
92 |
– |
extern double pow(); |
93 |
|
int order; |
94 |
|
int xmax, ymax; |
95 |
|
COLR *scanin; |
127 |
|
else |
128 |
|
fwritecolrs(scanin, xmax, stdout); |
129 |
|
if (ferror(stdout)) |
130 |
< |
quiterr("error writing rasterfile"); |
130 |
> |
quiterr("error writing output picture"); |
131 |
|
} |
132 |
|
/* free scanline */ |
133 |
|
free((char *)scanin); |