Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.c3912 unsigned palette_ok, gray_ok; in auto_choose_color() local
3932 palette_ok = n <= 256 && bits <= 8 && n != 0; /*n==0 means likely numcolors wasn't computed*/ in auto_choose_color()
3933 …if(numpixels < n * 2) palette_ok = 0; /*don't add palette overhead if image has only a few pixels*/ in auto_choose_color()
3934 if(gray_ok && !alpha && bits <= palettebits) palette_ok = 0; /*gray is less overhead*/ in auto_choose_color()
3935 if(!stats->allow_palette) palette_ok = 0; in auto_choose_color()
3937 if(palette_ok) { in auto_choose_color()