Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.h712 …unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16 or allow_palette is dis… member
Dlodepng.c3666 stats->numcolors = 0; in lodepng_color_stats_init()
3711 if(bpp <= 8) maxnumcolors = LODEPNG_MIN(257, stats->numcolors + (1u << bpp)); in lodepng_compute_color_stats()
3726 if(stats->numcolors >= maxnumcolors) numcolors_done = 1; in lodepng_compute_color_stats()
3729 for(i = 0; i < stats->numcolors; i++) { in lodepng_compute_color_stats()
3836 error = color_tree_add(&tree, r, g, b, a, stats->numcolors); in lodepng_compute_color_stats()
3838 if(stats->numcolors < 256) { in lodepng_compute_color_stats()
3840 unsigned n = stats->numcolors; in lodepng_compute_color_stats()
3846 ++stats->numcolors; in lodepng_compute_color_stats()
3847 numcolors_done = stats->numcolors >= maxnumcolors; in lodepng_compute_color_stats()
3930 n = stats->numcolors; in auto_choose_color()
[all …]