1 |
– |
/* Copyright (c) 1997 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 |
|
* Warp colors in Radiance picture to correct for input/output changes. |
6 |
|
*/ |
11 |
|
|
12 |
|
char *progname; /* global argv[0] */ |
13 |
|
|
14 |
< |
FILE *infp = stdin; /* input stream */ |
14 |
> |
FILE *infp = NULL; /* input stream */ |
15 |
|
int xres, yres; /* input picture resolution */ |
16 |
|
|
17 |
|
WARP3D *cwarp; /* our warp map */ |
29 |
|
int i; |
30 |
|
|
31 |
|
progname = argv[0]; |
32 |
+ |
infp = stdin; |
33 |
|
/* get options */ |
34 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
35 |
|
switch (argv[i][1]) { |
141 |
|
if (ngamut >= (long)xres*yres/100) |
142 |
|
fprintf(stderr, "%s: warning - %d%% of pixels out of gamut\n", |
143 |
|
progname, 100*ngamut/((long)xres*yres)); |
144 |
< |
free((char *)scan); |
144 |
> |
free((void *)scan); |
145 |
|
} |