6 |
|
* Currently, we don't know how to get back. |
7 |
|
*/ |
8 |
|
|
9 |
– |
#include <stdio.h> |
10 |
– |
#include <time.h> |
9 |
|
#include <math.h> |
10 |
|
|
11 |
+ |
#include "rtio.h" |
12 |
|
#include "platform.h" |
13 |
|
#include "color.h" |
14 |
|
#include "resolu.h" |
22 |
|
|
23 |
|
int currow; |
24 |
|
long picstart; |
25 |
< |
BYTE clrtab[256][3]; |
25 |
> |
uby8 clrtab[256][3]; |
26 |
|
|
27 |
|
extern int samplefac; |
28 |
|
|
29 |
|
|
30 |
|
COLR *scanln; |
31 |
< |
BYTE *pixscan; |
31 |
> |
uby8 *pixscan; |
32 |
|
|
33 |
|
int xmax, ymax; /* picture size */ |
34 |
|
double gamv = 2.2; /* gamma correction */ |
194 |
|
gmap[i] = clrtab[i][GRN]; |
195 |
|
bmap[i] = clrtab[i][BLU]; |
196 |
|
} |
197 |
< |
if (dither && (pixscan = (BYTE *)malloc(xmax)) == NULL) |
197 |
> |
if (dither && (pixscan = (uby8 *)malloc(xmax)) == NULL) |
198 |
|
goto memerr; |
199 |
|
return; |
200 |
|
memerr: |