Searched refs:palettesize (Results 1 – 3 of 3) sorted by relevance
153 if (palette && inputstate->info_png.color.palettesize > 0) { in LossyOptimizeTransparent()155 if (count.size() < inputstate->info_png.color.palettesize) { in LossyOptimizeTransparent()158 for (size_t i = 0; i < inputstate->info_png.color.palettesize; i++) { in LossyOptimizeTransparent()166 inputstate->info_png.color.palettesize = palette_out.size() / 4; in LossyOptimizeTransparent()252 for (size_t i = 0; i < color.palettesize; i++) { in TryOptimize()
2531 info->palettesize = 0; in lodepng_color_mode_init()2547 if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ in lodepng_color_mode_copy()2548 for(i = 0; i < source->palettesize * 4; i++) dest->palette[i] = source->palette[i]; in lodepng_color_mode_copy()2565 if(a->palettesize != b->palettesize) return 0; in lodepng_color_mode_equal()2566 for(i = 0; i < a->palettesize * 4; i++) in lodepng_color_mode_equal()2577 info->palettesize = 0; in lodepng_palette_clear()2593 info->palette[4 * info->palettesize + 0] = r; in lodepng_palette_add()2594 info->palette[4 * info->palettesize + 1] = g; in lodepng_palette_add()2595 info->palette[4 * info->palettesize + 2] = b; in lodepng_palette_add()2596 info->palette[4 * info->palettesize + 3] = a; in lodepng_palette_add()[all …]
332 size_t palettesize; /*palette size in number of colors (amount of bytes is 4 * palettesize)*/ member