Home
last modified time | relevance | path

Searched refs:palettesize (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.6.0/src/extra/libs/png/
Dlodepng.c2676 info->palettesize = 0; in lodepng_color_mode_init()
2706 if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ in lodepng_color_mode_copy()
2707 lodepng_memcpy(dest->palette, source->palette, source->palettesize * 4); in lodepng_color_mode_copy()
2730 if(a->palettesize != b->palettesize) return 0; in lodepng_color_mode_equal()
2731 for(i = 0; i != a->palettesize * 4; ++i) { in lodepng_color_mode_equal()
2740 info->palettesize = 0; in lodepng_palette_clear()
2749 if(info->palettesize >= 256) { in lodepng_palette_add()
2752 info->palette[4 * info->palettesize + 0] = r; in lodepng_palette_add()
2753 info->palette[4 * info->palettesize + 1] = g; in lodepng_palette_add()
2754 info->palette[4 * info->palettesize + 2] = b; in lodepng_palette_add()
[all …]
Dlodepng.h361 size_t palettesize; /*palette size in number of colors (amount of used bytes is 4 * palettesize)*/ member