Lines Matching refs:palette
116 // If true, means palette is possible so avoid using different RGB values for
118 bool palette = count.size() <= 256;
122 if (key || palette) {
126 // used as a valid color key, or in case of palette ensures a color
127 // existing in the input image palette is used.
142 if (!key && !palette) {
143 // Use the last encountered RGB value if no key or palette is used: that
152 // If there are now less colors, update palette of input image to match this.
153 if (palette && inputstate->info_png.color.palettesize > 0) {
157 unsigned char* palette_in = inputstate->info_png.color.palette;
193 // Make it preserve the original palette order
241 // For very small output, also try without palette, it may be smaller thanks
242 // to no palette storage overhead.
253 if (color.palette[i * 4 + 0] != color.palette[i * 4 + 2]
254 || color.palette[i * 4 + 1] != color.palette[i * 4 + 2]) {