| 5 |
|
* program to convert between RADIANCE and Poskanzer Pixmaps |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
– |
#include <stdio.h> |
| 8 |
|
#include <math.h> |
| 9 |
|
#include <ctype.h> |
| 10 |
< |
#include <time.h> |
| 12 |
< |
|
| 10 |
> |
#include "paths.h" |
| 11 |
|
#include "platform.h" |
| 12 |
+ |
#include "rtio.h" |
| 13 |
|
#include "color.h" |
| 14 |
|
#include "resolu.h" |
| 15 |
|
|
| 17 |
|
int bradj = 0; /* brightness adjustment */ |
| 18 |
|
double gamcor = 2.2; /* gamma correction value */ |
| 19 |
|
int maxval = 255; /* maximum primary value */ |
| 21 |
– |
char *progname; |
| 20 |
|
int xmax, ymax; |
| 21 |
|
|
| 22 |
|
typedef int colrscanf_t(COLR *scan, int len, FILE *fp); |
| 51 |
|
int ptype; |
| 52 |
|
int i; |
| 53 |
|
|
| 54 |
< |
progname = argv[0]; |
| 54 |
> |
fixargv0(argv[0]); |
| 55 |
|
|
| 56 |
|
for (i = 1; i < argc; i++) |
| 57 |
|
if (argv[i][0] == '-') |