5 |
|
* Program to convert meta-files to Targa 8-bit color-mapped format |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
|
|
10 |
< |
#define MAXALLOC 5000 |
10 |
< |
|
11 |
< |
#define DXSIZE 400 /* default x resolution */ |
12 |
< |
|
13 |
< |
#define DYSIZE 400 /* default y resolution */ |
14 |
< |
|
15 |
< |
#define XCOM "pexpand +vOCImsp -DP %s | psort +y" |
16 |
< |
|
17 |
< |
|
18 |
< |
|
19 |
< |
|
10 |
> |
#include "rtprocess.h" |
11 |
|
#include "meta.h" |
21 |
– |
|
12 |
|
#include "plot.h" |
23 |
– |
|
13 |
|
#include "rast.h" |
25 |
– |
|
14 |
|
#include "targa.h" |
15 |
|
|
16 |
+ |
#define MAXALLOC 5000 |
17 |
+ |
#define DXSIZE 400 /* default x resolution */ |
18 |
+ |
#define DYSIZE 400 /* default y resolution */ |
19 |
+ |
#define XCOM "pexpand +vOCImsp -DP %s | psort +y" |
20 |
|
|
21 |
|
|
30 |
– |
|
22 |
|
char *progname; |
23 |
|
|
24 |
|
SCANBLOCK outblock; |
56 |
|
|
57 |
|
{ |
58 |
|
FILE *fp; |
68 |
– |
FILE *popen(); |
59 |
|
char comargs[200], command[300]; |
60 |
|
|
61 |
|
fout = stdout; |
151 |
|
initfile() /* initialize this file */ |
152 |
|
{ |
153 |
|
static int filenum = 0; |
154 |
+ |
/* |
155 |
|
static unsigned char cmap[24] = {255,255,255, 255,152,0, 0,188,0, 0,0,255, |
156 |
|
179,179,0, 255,0,255, 0,200,200, 0,0,0}; |
157 |
+ |
*/ |
158 |
+ |
static unsigned char cmap[24] = {0,0,0, 0,0,255, 0,188,0, 255,152,0, |
159 |
+ |
0,200,200, 255,0,255, 179,179,0, 255,255,255}; |
160 |
|
struct hdStruct thead; |
161 |
|
register int i; |
162 |
|
|