Lines Matching refs:dec_dsc

86         lv_img_src_t src_type = lv_img_src_get_type(cache[i].dec_dsc.src);  in _lv_img_cache_open()
88 … if(cache[i].dec_dsc.src == src && cache[i].dec_dsc.color.full == color.full) match = true; in _lv_img_cache_open()
91 if(strcmp(cache[i].dec_dsc.src, src) == 0) match = true; 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()
117 if(cached_src->dec_dsc.src) { in _lv_img_cache_open()
118 lv_img_decoder_close(&cached_src->dec_dsc); in _lv_img_cache_open()
128 cached_src->dec_dsc.time_to_open = 0; in _lv_img_cache_open()
129 lv_res_t open_res = lv_img_decoder_open(&cached_src->dec_dsc, src, color); in _lv_img_cache_open()
132 lv_img_decoder_close(&cached_src->dec_dsc); in _lv_img_cache_open()
133 _lv_memset_00(&cached_src->dec_dsc, sizeof(lv_img_decoder_dsc_t)); in _lv_img_cache_open()
142 if(cached_src->dec_dsc.time_to_open == 0) { in _lv_img_cache_open()
143 cached_src->dec_dsc.time_to_open = lv_tick_elaps(t_start); in _lv_img_cache_open()
146 if(cached_src->dec_dsc.time_to_open == 0) cached_src->dec_dsc.time_to_open = 1; in _lv_img_cache_open()
178 _lv_memset_00(&LV_GC_ROOT(_lv_img_cache_array)[i].dec_dsc, sizeof(lv_img_decoder_dsc_t)); in lv_img_cache_set_size()
195 if(cache[i].dec_dsc.src == src || src == NULL) { in lv_img_cache_invalidate_src()
196 if(cache[i].dec_dsc.src != NULL) { in lv_img_cache_invalidate_src()
197 lv_img_decoder_close(&cache[i].dec_dsc); in lv_img_cache_invalidate_src()
200 _lv_memset_00(&cache[i].dec_dsc, sizeof(lv_img_decoder_dsc_t)); in lv_img_cache_invalidate_src()