Home
last modified time | relevance | path

Searched refs:gray_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
3926 gray_ok = !stats->colored; in auto_choose_color()
3927 if(!stats->allow_greyscale) gray_ok = 0; in auto_choose_color()
3928 if(!gray_ok && bits < 8) bits = 8; in auto_choose_color()
3934 if(gray_ok && !alpha && bits <= palettebits) palette_ok = 0; /*gray is less overhead*/ in auto_choose_color()
3956 mode_out->colortype = alpha ? (gray_ok ? LCT_GREY_ALPHA : LCT_RGBA) in auto_choose_color()
3957 : (gray_ok ? LCT_GREY : LCT_RGB); in auto_choose_color()