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.14 by greg, Tue May 13 17:58:33 2003 UTC vs.
Revision 2.15 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Simple median-cut color quantization based on colortab.c
6   */
7  
8 < #include "standard.h"
8 > #include "copyright.h"
9  
10 + #include <string.h>
11 +
12 + #include "standard.h"
13   #include "color.h"
14 +
15                                  /* histogram resolution */
16   #define NRED            36
17   #define NGRN            48
# Line 45 | Line 49 | static unsigned        dist();
49   new_histo(n)            /* clear our histogram */
50   int     n;
51   {
52 <        bzero((void *)histo, sizeof(histo));
52 >        memset((void *)histo, '\0', sizeof(histo));
53          return(0);
54   }
55  
# Line 130 | Line 134 | int    n;
134                          return;
135                  }
136                  N = n;
137 <                bzero((void *)cerr, 3*N*sizeof(short));
137 >                memset((void *)cerr, '\0', 3*N*sizeof(short));
138          }
139          err[0] = err[1] = err[2] = 0;
140          for (x = 0; x < n; x++) {
# Line 169 | Line 173 | int    c0, c1;
173          }
174                                          /* split box */
175          branch = split(box);
176 <        bcopy((void *)box, (void *)kb, sizeof(kb));
176 >        memcpy((void *)kb, (void *)box, sizeof(kb));
177                                                  /* do left (lesser) branch */
178          kb[prim(branch)][1] = part(branch);
179          cut(kb, c0, (c0+c1)>>1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines