| 5 |
|
* Warp colors in Radiance picture to correct for input/output changes. |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
< |
#include <stdio.h> |
| 9 |
< |
|
| 8 |
> |
#include "paths.h" |
| 9 |
> |
#include "rtio.h" |
| 10 |
|
#include "resolu.h" |
| 11 |
|
#include "color.h" |
| 12 |
|
#include "warp3d.h" |
| 13 |
|
|
| 14 |
– |
char *progname; /* global argv[0] */ |
| 15 |
– |
|
| 14 |
|
FILE *infp = NULL; /* input stream */ |
| 15 |
|
int xres, yres; /* input picture resolution */ |
| 16 |
|
|
| 28 |
|
char *argv[] |
| 29 |
|
) |
| 30 |
|
{ |
| 31 |
< |
static char picfmt[LPICFMT+1] = PICFMT; |
| 31 |
> |
static char picfmt[MAXFMTLEN] = PICFMT; |
| 32 |
|
int cwflags = 0; |
| 33 |
|
int rval; |
| 34 |
|
int i; |
| 35 |
|
|
| 36 |
< |
progname = argv[0]; |
| 36 |
> |
fixargv0(argv[0]); |
| 37 |
|
infp = stdin; |
| 38 |
|
/* get options */ |
| 39 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |