Home
last modified time | relevance | path

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

/lvgl-2.7.6/src/lv_draw/
Dlv_img_cache.c77 if(cache[i].life > INT32_MIN + LV_IMG_CACHE_AGING) { in _lv_img_cache_open()
78 cache[i].life -= LV_IMG_CACHE_AGING; in _lv_img_cache_open()
99 cached_src->life += cached_src->dec_dsc.time_to_open * LV_IMG_CACHE_LIFE_GAIN; in _lv_img_cache_open()
100 … if(cached_src->life > LV_IMG_CACHE_LIFE_LIMIT) cached_src->life = LV_IMG_CACHE_LIFE_LIMIT; in _lv_img_cache_open()
111 if(cache[i].life < cached_src->life) { in _lv_img_cache_open()
135 cached_src->life = INT32_MIN; /*Make the empty entry very "weak" to force its use */ in _lv_img_cache_open()
139 cached_src->life = 0; in _lv_img_cache_open()
Dlv_img_cache.h37 int32_t life; member