1 |
– |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* program to convert between RADIANCE and 24-bit rasterfiles. |
6 |
|
*/ |
11 |
|
#include <fcntl.h> |
12 |
|
#endif |
13 |
|
|
14 |
+ |
#include <time.h> |
15 |
+ |
|
16 |
|
#include <math.h> |
17 |
|
|
18 |
|
#include "rasterfile.h" |
21 |
|
|
22 |
|
#include "resolu.h" |
23 |
|
|
25 |
– |
extern char *malloc(); |
26 |
– |
|
24 |
|
double gamcor = 2.2; /* gamma correction */ |
25 |
|
|
26 |
|
int bradj = 0; /* brightness adjustment */ |
96 |
|
|| head.ras_depth != 24) |
97 |
|
quiterr("incompatible format"); |
98 |
|
/* put header */ |
99 |
+ |
newheader("RADIANCE", stdout); |
100 |
|
printargs(i, argv, stdout); |
101 |
|
fputformat(COLRFMT, stdout); |
102 |
|
putchar('\n'); |
174 |
|
quiterr("error writing Radiance picture"); |
175 |
|
} |
176 |
|
/* free scanline */ |
177 |
< |
free((char *)scanout); |
177 |
> |
free((void *)scanout); |
178 |
|
} |
179 |
|
|
180 |
|
|
220 |
|
quiterr("error writing rasterfile"); |
221 |
|
} |
222 |
|
/* free scanline */ |
223 |
< |
free((char *)scanin); |
223 |
> |
free((void *)scanin); |
224 |
|
} |