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

Comparing ray/src/px/neuclrtab.c (file contents):
Revision 2.7 by greg, Tue Nov 22 12:19:21 1994 UTC vs.
Revision 2.9 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1994 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Neural-Net quantization algorithm based on work of Anthony Dekker
6   */
# Line 51 | Line 48 | static long    skipcount;
48  
49   #define setskip(sp,n)   ((sp)[0]=(n)>>16,(sp)[1]=((n)>>8)&255,(sp)[2]=(n)&255)
50  
51 + static  cpyclrtab();
52  
53 +
54   neu_init(npixels)               /* initialize our sample array */
55   long    npixels;
56   {
# Line 132 | Line 131 | int    ncolors;
131          cpyclrtab();
132          inxbuild();
133                                  /* we're done with our samples */
134 <        free((char *)thesamples);
134 >        free((void *)thesamples);
135                                  /* reset dithering function */
136          neu_dith_colrs((BYTE *)NULL, (COLR *)NULL, 0);
137                                  /* return new color table size */
# Line 172 | Line 171 | int    n;
171  
172          if (n != N) {           /* get error propogation array */
173                  if (N) {
174 <                        free((char *)cerr);
174 >                        free((void *)cerr);
175                          cerr = NULL;
176                  }
177                  if (n)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines