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

Comparing ray/src/px/clrtab.c (file contents):
Revision 2.10 by greg, Fri Jun 10 12:51:16 1994 UTC vs.
Revision 2.12 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1993 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   * Simple median-cut color quantization based on colortab.c
6   */
# Line 40 | Line 37 | static int     CLRCUBE[3][2] = {0,NRED,0,NGRN,0,NBLU};
37   #endif
38   #endif
39  
40 + static  cut(), mktabent(), closest(), addneigh(), setclosest();
41 + static int      split();
42 + static unsigned dist();
43  
44 +
45   new_histo(n)            /* clear our histogram */
46   int     n;
47   {
# Line 118 | Line 119 | int    n;
119  
120          if (n != N) {           /* get error propogation array */
121                  if (N) {
122 <                        free((char *)cerr);
122 >                        free((void *)cerr);
123                          cerr = NULL;
124                  }
125                  if (n)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines