Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/draw/
Dlv_img_cache.c66 _lv_img_cache_entry_t * cached_src = NULL; in _lv_img_cache_open() local
91 cached_src = &cache[i]; in _lv_img_cache_open()
92 cached_src->life += cached_src->dec_dsc.time_to_open * LV_IMG_CACHE_LIFE_GAIN; in _lv_img_cache_open()
93 … if(cached_src->life > LV_IMG_CACHE_LIFE_LIMIT) cached_src->life = LV_IMG_CACHE_LIFE_LIMIT; in _lv_img_cache_open()
100 if(cached_src) return cached_src; in _lv_img_cache_open()
103 cached_src = &cache[0]; in _lv_img_cache_open()
105 if(cache[i].life < cached_src->life) { in _lv_img_cache_open()
106 cached_src = &cache[i]; in _lv_img_cache_open()
111 if(cached_src->dec_dsc.src) { in _lv_img_cache_open()
112 lv_img_decoder_close(&cached_src->dec_dsc); in _lv_img_cache_open()
[all …]