mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(decoder): if draw unit supports indexed image, don't add to cache (#5438)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
8d19189422
commit
f24d09b78a
@ -262,6 +262,7 @@ lv_result_t lv_bin_decoder_open(lv_image_decoder_t * decoder, lv_image_decoder_d
|
|||||||
if(dsc->args.use_indexed) {
|
if(dsc->args.use_indexed) {
|
||||||
/*Palette for indexed image and whole image of A8 image are always loaded to RAM for simplicity*/
|
/*Palette for indexed image and whole image of A8 image are always loaded to RAM for simplicity*/
|
||||||
res = load_indexed(decoder, dsc);
|
res = load_indexed(decoder, dsc);
|
||||||
|
use_directly = true; /*If draw unit supports indexed image, it can be used directly.*/
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
res = decode_indexed(decoder, dsc);
|
res = decode_indexed(decoder, dsc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user