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; |