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

Comparing ray/src/meta/meta2bmp.c (file contents):
Revision 1.1 by greg, Wed May 4 23:43:19 2005 UTC vs.
Revision 1.2 by schorsch, Mon Sep 19 12:48:09 2005 UTC

# Line 12 | Line 12 | static const char RCSid[] = "$Id$";
12   #include  "plot.h"
13   #include  "rast.h"
14   #include  "bmpfile.h"
15 + #include  "targa.h"
16  
17   #define  MAXALLOC  30000
18   #define  DXSIZE  400            /* default x resolution */
# Line 39 | Line 40 | static int  lineno = 0;
40   static short  condonly = FALSE,
41                conditioned = FALSE;
42  
42 static int putthead(struct hdStruct  *hp, char  *ip, FILE  *fp);
43  
44  
45  
# Line 156 | Line 156 | initfile(void)         /* initialize this file */
156      static unsigned char  cmap[24] = {255,255,255, 255,152,0, 0,188,0, 0,0,255,
157                          179,179,0, 255,0,255, 0,200,200, 0,0,0};
158       */
159 <    static const unsigned char  cmap[8][3] = {0,0,0, 0,0,255, 0,188,0, 255,152,0,
160 <                        0,200,200, 255,0,255, 179,179,0, 255,255,255};
159 >    static const unsigned char  cmap[8][3] = {{0,0,0}, {0,0,255}, {0,188,0},
160 >                {255,152,0}, {0,200,200}, {255,0,255}, {179,179,0}, {255,255,255}};
161      static int  filenum = 0;
162      BMPHeader  *hp;
163      register int  i;
# Line 211 | Line 211 | extern void
211   printblock(void)                /* output scanline block to file */
212  
213   {
214 <    int  i, c2;
214 >    int  i;
215      register unsigned char  *scanline;
216    register int  j, beg, cnt = 0;
216  
217      if (lineno == 0)
218          initfile();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines