# | Line 1 | Line 1 | |
---|---|---|
1 | < | /* |
1 | > | /* Copyright 1988 Regents of the University of California */ |
2 | ||
3 | #ifndef lint | |
4 | static char SCCSid[] = "$SunId$ LBL"; | |
5 | #endif | |
6 | + | |
7 | + | /* |
8 | CIQ - main program for color image quantization | |
9 | options for Floyd-Steinberg dithering by minimization of accumulated error | |
10 | or undithered quantization | |
# | Line 67 | Line 69 | colormap ocm; | |
69 | register rgbpixel *lp; | |
70 | rgbpixel *line; | |
71 | colormap map; | |
72 | + | |
73 | + | for (x = 0; x < len; x++) /* clear histogram */ |
74 | + | hist[x] = 0; |
75 | ||
76 | line = line3alloc(xmax); | |
77 | convertmap(ocm,map); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |