ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/meta2tga.c
(Generate patch)

Comparing ray/src/meta/meta2tga.c (file contents):
Revision 1.2 by schorsch, Fri Aug 1 14:14:24 2003 UTC vs.
Revision 1.4 by schorsch, Mon Oct 27 10:28:59 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
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;
# Line 65 | Line 56 | char  **argv;
56  
57   {
58   FILE  *fp;
68 FILE  *popen();
59   char  comargs[200], command[300];
60  
61    fout = stdout;
# Line 161 | Line 151 | thispage()             /* rewind current file */
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines