1 |
– |
/* Copyright (c) 1993 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 |
|
* Convert Radiance file to/from AVS file. |
6 |
|
*/ |
10 |
|
#ifdef MSDOS |
11 |
|
#include <fcntl.h> |
12 |
|
#endif |
13 |
+ |
#include <time.h> |
14 |
|
#include "color.h" |
15 |
|
#include "resolu.h" |
16 |
|
|
19 |
– |
extern char *malloc(); |
20 |
– |
|
17 |
|
double gamcor = 2.2; /* gamma correction */ |
18 |
|
|
19 |
|
int bradj = 0; /* brightness adjustment */ |
77 |
|
if (feof(stdin)) |
78 |
|
quiterr("empty input file"); |
79 |
|
/* put our header */ |
80 |
+ |
newheader("RADIANCE", stdout); |
81 |
|
printargs(i, argv, stdout); |
82 |
|
fputformat(COLRFMT, stdout); |
83 |
|
putchar('\n'); |
142 |
|
quiterr("error writing Radiance picture"); |
143 |
|
} |
144 |
|
/* free scanline */ |
145 |
< |
free((char *)scanout); |
145 |
> |
free((void *)scanout); |
146 |
|
} |
147 |
|
|
148 |
|
|
172 |
|
quiterr("error writing AVS file"); |
173 |
|
} |
174 |
|
/* free scanline */ |
175 |
< |
free((char *)scanin); |
175 |
> |
free((void *)scanin); |
176 |
|
} |