Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 47) sorted by relevance

12

/lvgl-latest/src/misc/
Dlv_lru.c43 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length);
49 static void lv_lru_remove_item(lv_lru_t * cache, lv_lru_item_t * prev, lv_lru_item_t * item, uint32…
52 static lv_lru_item_t * lv_lru_pop_or_create_item(lv_lru_t * cache);
64 #define test_for_missing_cache() error_for(!cache, LV_LRU_MISSING_CACHE)
67 #define test_for_value_too_large() error_for(value_length > cache->total_memory, LV_LRU_VALUE_TO…
77 lv_lru_t * cache = (lv_lru_t *) lv_mem_alloc(sizeof(lv_lru_t)); in lv_lru_create() local
78 lv_memset_00(cache, sizeof(lv_lru_t)); in lv_lru_create()
79 if(!cache) { in lv_lru_create()
83 cache->hash_table_size = cache_size / average_length; in lv_lru_create()
84 cache->average_item_length = average_length; in lv_lru_create()
[all …]
Dlv_fs.c95 file_p->cache = lv_mem_alloc(sizeof(lv_fs_file_cache_t)); in lv_fs_open()
96 LV_ASSERT_MALLOC(file_p->cache); in lv_fs_open()
97 lv_memset_00(file_p->cache, sizeof(lv_fs_file_cache_t)); in lv_fs_open()
98 file_p->cache->start = UINT32_MAX; /*Set an invalid range by default*/ in lv_fs_open()
99 file_p->cache->end = UINT32_MAX - 1; in lv_fs_open()
117 if(file_p->drv->cache_size && file_p->cache) { in lv_fs_close()
118 if(file_p->cache->buffer) { in lv_fs_close()
119 lv_mem_free(file_p->cache->buffer); in lv_fs_close()
122 lv_mem_free(file_p->cache); in lv_fs_close()
127 file_p->cache = NULL; in lv_fs_close()
[all …]
Dlv_lru.h64 void lv_lru_del(lv_lru_t * cache);
66 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t…
68 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value);
70 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size);
77 void lv_lru_remove_lru_item(lv_lru_t * cache);
Dlv_fs.h100 lv_fs_file_cache_t * cache; member
/lvgl-latest/src/draw/
Dlv_img_cache.c74 _lv_img_cache_entry_t * cache = LV_GC_ROOT(_lv_img_cache_array); in _lv_img_cache_open() local
79 if(cache[i].life > INT32_MIN + LV_IMG_CACHE_AGING) { in _lv_img_cache_open()
80 cache[i].life -= LV_IMG_CACHE_AGING; in _lv_img_cache_open()
85 if(color.full == cache[i].dec_dsc.color.full && in _lv_img_cache_open()
86 frame_id == cache[i].dec_dsc.frame_id && in _lv_img_cache_open()
87 lv_img_cache_match(src, cache[i].dec_dsc.src)) { in _lv_img_cache_open()
91 cached_src = &cache[i]; 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()
[all …]
Dlv_draw_img.c33 static void draw_cleanup(_lv_img_cache_entry_t * cache);
366 static void draw_cleanup(_lv_img_cache_entry_t * cache) argument
370 lv_img_decoder_close(&cache->dec_dsc);
372 LV_UNUSED(cache);
/lvgl-latest/src/extra/libs/sjpg/
Dlv_sjpg.c285 uint8_t * cache = io->img_cache_buff; in img_data_cb() local
294 memcpy(cache + row_offset, buf, row_size); in img_data_cb()
747 …uint8_t * cache = (uint8_t *)sjpeg->frame_cache + x * 3 + (y % sjpeg->sjpeg_single_frame_height) *… in decoder_read_line() local
753 buf[offset + 2] = *cache++; in decoder_read_line()
754 buf[offset + 1] = *cache++; in decoder_read_line()
755 buf[offset + 0] = *cache++; in decoder_read_line()
762 uint16_t col_16bit = (*cache++ & 0xf8) << 8; in decoder_read_line()
763 col_16bit |= (*cache++ & 0xFC) << 3; in decoder_read_line()
764 col_16bit |= (*cache++ >> 3); in decoder_read_line()
777 uint8_t col_8bit = (*cache++ & 0xC0); in decoder_read_line()
[all …]
/lvgl-latest/docs/libs/
Dfreetype.md17 To cache the glyphs from the opened fonts, set `LV_FREETYPE_CACHE_SIZE >= 0` and then use the foll…
18 …y(bytes) used to cache font bitmap, outline, character maps, etc. 0 means use the system default v…
19 1. `LV_FREETYPE_CACHE_FT_FACES`:maximum number of opened FT_Face objects managed by this cache inst…
20 1. `LV_FREETYPE_CACHE_FT_SIZES`:maximum number of opened FT_Size objects managed by this cache inst…
Dtiny_ttf.md24 By default, a font will use up to 4KB of cache to speed up rendering
28 available). The cache size is indicated in bytes.
Dsjpg.md13 - SJPEG frame fragment cache enables fast fetching of lines if available in cache.
14 - By default the sjpg image cache will be image width * 2 * 16 bytes (can be modified)
/lvgl-latest/src/font/
Dlv_font_fmt_txt.c216 if(fdsc->cache && letter == fdsc->cache->last_letter) return fdsc->cache->last_glyph_id; in get_glyph_dsc_id()
255 if(fdsc->cache) { in get_glyph_dsc_id()
256 fdsc->cache->last_letter = letter; in get_glyph_dsc_id()
257 fdsc->cache->last_glyph_id = glyph_id; in get_glyph_dsc_id()
262 if(fdsc->cache) { in get_glyph_dsc_id()
263 fdsc->cache->last_letter = letter; in get_glyph_dsc_id()
264 fdsc->cache->last_glyph_id = 0; in get_glyph_dsc_id()
Dlv_font_fmt_txt.h197 lv_font_fmt_txt_glyph_cache_t * cache; member
Dlv_font_unscii_16.c600 static lv_font_fmt_txt_glyph_cache_t cache; variable
615 .cache = &cache
Dlv_font_unscii_8.c436 static lv_font_fmt_txt_glyph_cache_t cache; variable
451 .cache = &cache
Dlv_font_montserrat_20.c3176 static lv_font_fmt_txt_glyph_cache_t cache; variable
3191 .cache = &cache
Dlv_font_montserrat_22.c3605 static lv_font_fmt_txt_glyph_cache_t cache; variable
3620 .cache = &cache
Dlv_font_montserrat_24.c4016 static lv_font_fmt_txt_glyph_cache_t cache; variable
4031 .cache = &cache
Dlv_font_montserrat_26.c4551 static lv_font_fmt_txt_glyph_cache_t cache; variable
4566 .cache = &cache
Dlv_font_montserrat_28.c5100 static lv_font_fmt_txt_glyph_cache_t cache; variable
5115 .cache = &cache
Dlv_font_montserrat_28_compressed.c3230 static lv_font_fmt_txt_glyph_cache_t cache; variable
3245 .cache = &cache
Dlv_font_montserrat_32.c6171 static lv_font_fmt_txt_glyph_cache_t cache; variable
6186 .cache = &cache
Dlv_font_montserrat_34.c6970 static lv_font_fmt_txt_glyph_cache_t cache; variable
6985 .cache = &cache
Dlv_font_montserrat_36.c7614 static lv_font_fmt_txt_glyph_cache_t cache; variable
7629 .cache = &cache
/lvgl-latest/docs/overview/
Dimage.md293 The number of cache entries can be defined with `LV_IMG_CACHE_DEF_SIZE` in *lv_conf.h*. The default…
295 The size of the cache can be changed at run-time with `lv_img_cache_set_size(entry_num)`.
298 When you use more images than cache entries, LVGL can't cache all the images. Instead, the library …
300 …ld slower-to-open images are considered more valuable and are kept in the cache as long as possibl…
304 Every cache entry has a *"life"* value. Every time an image is opened through the cache, the *life*…
307 If there is no more space in the cache, the entry with the lowest life value will be closed.
312 Therefore, it's the user's responsibility to be sure there is enough RAM to cache even the largest …
314 ### Clean the cache
315cache the image again. Otherwise, there is no easy way of detecting that the underlying file chan…
317 …ache_invalidate_src(&my_png)`. If `NULL` is passed as a parameter, the whole cache will be cleaned.
/lvgl-latest/
DKconfig168 int "Default image cache size. 0 to disable caching."
189 …When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them a…
190 LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes.
191 … If the cache is too small the map will be allocated only while it's required for the drawing.
282 Texture cache size, 8MB by default.
925 int ">0 to cache this number of bytes in lv_fs_read()"
939 int ">0 to cache this number of bytes in lv_fs_read()"
953 int ">0 to cache this number of bytes in lv_fs_read()"
964 int ">0 to cache this number of bytes in lv_fs_read()"
975 int ">0 to cache this number of bytes in lv_fs_read()"
[all …]

12