9 |
|
*/ |
10 |
|
|
11 |
|
#include <math.h> |
12 |
– |
|
12 |
|
#include "platform.h" |
13 |
|
#include "rtio.h" |
14 |
|
#include "rtmisc.h" |
30 |
|
extern int samplefac; |
31 |
|
double gamv = 2.2; /* gamv correction */ |
32 |
|
int bradj = 0; /* brightness adjustment */ |
34 |
– |
char *progname; |
33 |
|
char errmsg[128]; |
34 |
|
COLR *inl; |
35 |
|
uby8 *tarData; |
60 |
|
int ncolors = 256; |
61 |
|
int greyscale = 0; |
62 |
|
int i; |
63 |
+ |
|
64 |
|
SET_DEFAULT_BINARY(); |
65 |
|
SET_FILE_BINARY(stdin); |
66 |
|
SET_FILE_BINARY(stdout); |
67 |
< |
progname = argv[0]; |
67 |
> |
fixargv0(argv[0]); |
68 |
|
samplefac = 0; |
69 |
|
|
70 |
|
for (i = 1; i < argc; i++) |