8 |
|
* 11/2/88 Adapted from ra_t8.c |
9 |
|
*/ |
10 |
|
|
11 |
– |
#include <stdio.h> |
12 |
– |
#include <string.h> |
13 |
– |
#include <time.h> |
11 |
|
#include <math.h> |
15 |
– |
|
12 |
|
#include "platform.h" |
13 |
|
#include "rtio.h" |
14 |
|
#include "rtmisc.h" |
30 |
|
|
31 |
|
double gamcor = 2.2; /* gamma correction */ |
32 |
|
int bradj = 0; /* brightness adjustment */ |
37 |
– |
char *progname; |
33 |
|
char msg[128]; |
34 |
|
|
35 |
|
static int getint2(FILE *fp); |
51 |
|
struct hdStruct head; |
52 |
|
int reverse = 0; |
53 |
|
int i; |
54 |
+ |
|
55 |
|
SET_DEFAULT_BINARY(); |
56 |
|
SET_FILE_BINARY(stdin); |
57 |
|
SET_FILE_BINARY(stdout); |
58 |
< |
progname = argv[0]; |
58 |
> |
fixargv0(argv[0]); |
59 |
|
|
60 |
|
head.dataBits = 16; |
61 |
|
for (i = 1; i < argc; i++) |