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

Comparing ray/src/px/ra_gif.c (file contents):
Revision 2.11 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 2.13 by greg, Fri Jul 19 17:37:56 2019 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
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"
# Line 23 | Line 22 | int bmap[MAXCOLORS];
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 */
# Line 195 | Line 194 | mkclrmap(                      /* make our color map */
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:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines