|
Lines 159-165
Link Here
|
| 159 |
unsigned int * const bestMatchP) { |
159 |
unsigned int * const bestMatchP) { |
| 160 |
|
160 |
|
| 161 |
unsigned int paletteIndex; |
161 |
unsigned int paletteIndex; |
| 162 |
unsigned int bestIndex; |
162 |
unsigned int bestIndex = 0; |
| 163 |
unsigned int bestMatch; |
163 |
unsigned int bestMatch; |
| 164 |
|
164 |
|
| 165 |
bestMatch = UINT_MAX; |
165 |
bestMatch = UINT_MAX; |
|
Lines 1566-1572
Link Here
|
| 1566 |
/* The color part of the color/alpha palette passed to the PNG |
1566 |
/* The color part of the color/alpha palette passed to the PNG |
| 1567 |
compressor |
1567 |
compressor |
| 1568 |
*/ |
1568 |
*/ |
| 1569 |
unsigned int palette_size; |
1569 |
unsigned int palette_size = MAXCOLORS; |
| 1570 |
|
1570 |
|
| 1571 |
gray trans_pnm[MAXCOLORS]; |
1571 |
gray trans_pnm[MAXCOLORS]; |
| 1572 |
png_byte trans[MAXCOLORS]; |
1572 |
png_byte trans[MAXCOLORS]; |