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