Home
last modified time | relevance | path

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

12

/lvgl-3.4.0/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…
56 static void lv_lru_remove_lru_item(lv_lru_t * cache);
59 static lv_lru_item_t * lv_lru_pop_or_create_item(lv_lru_t * cache);
71 #define test_for_missing_cache() error_for(!cache, LV_LRU_MISSING_CACHE)
74 #define test_for_value_too_large() error_for(value_length > cache->total_memory, LV_LRU_VALUE_TO…
84 lv_lru_t * cache = (lv_lru_t *) lv_mem_alloc(sizeof(lv_lru_t)); in lv_lru_create() local
85 lv_memset_00(cache, sizeof(lv_lru_t)); in lv_lru_create()
86 if(!cache) { in lv_lru_create()
90 cache->hash_table_size = cache_size / 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()
115 if(file_p->drv->cache_size && file_p->cache) { in lv_fs_close()
116 if(file_p->cache->buffer) { in lv_fs_close()
117 lv_mem_free(file_p->cache->buffer); in lv_fs_close()
120 lv_mem_free(file_p->cache); in lv_fs_close()
125 file_p->cache = NULL; in lv_fs_close()
133 uint32_t file_position = file_p->cache->file_position; in lv_fs_read_cached()
134 uint32_t start = file_p->cache->start; in lv_fs_read_cached()
[all …]
Dlv_lru.h66 void lv_lru_del(lv_lru_t * cache);
68 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t…
70 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value);
72 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size);
Dlv_fs.h101 lv_fs_file_cache_t * cache; member
/lvgl-3.4.0/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.c32 static void draw_cleanup(_lv_img_cache_entry_t * cache);
347 static void draw_cleanup(_lv_img_cache_entry_t * cache) in draw_cleanup() argument
351 lv_img_decoder_close(&cache->dec_dsc); in draw_cleanup()
353 LV_UNUSED(cache); in draw_cleanup()
/lvgl-3.4.0/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()
751 …uint8_t * cache = (uint8_t *)sjpeg->frame_cache + x * 3 + (y % sjpeg->sjpeg_single_frame_height) *… in decoder_read_line() local
757 buf[offset + 2] = *cache++; in decoder_read_line()
758 buf[offset + 1] = *cache++; in decoder_read_line()
759 buf[offset + 0] = *cache++; in decoder_read_line()
766 uint16_t col_16bit = (*cache++ & 0xf8) << 8; in decoder_read_line()
767 col_16bit |= (*cache++ & 0xFC) << 3; in decoder_read_line()
768 col_16bit |= (*cache++ >> 3); in decoder_read_line()
781 uint8_t col_8bit = (*cache++ & 0xC0); in decoder_read_line()
[all …]
/lvgl-3.4.0/docs/libs/
Dfreetype.md21 To cache the glyphs from the opened fonts, set `LV_FREETYPE_CACHE_SIZE >= 0` and then use the foll…
22 …y(bytes) used to cache font bitmap, outline, character maps, etc. 0 means use the system default v…
23 1. `LV_FREETYPE_CACHE_FT_FACES`:maximum number of opened FT_Face objects managed by this cache inst…
24 1. `LV_FREETYPE_CACHE_FT_SIZES`:maximum number of opened FT_Size objects managed by this cache inst…
Dsjpg.md17 - SJPEG frame fragment cache enables fast fetching of lines if available in cache.
18 - By default the sjpg image cache will be image width * 2 * 16 bytes (can be modified)
/lvgl-3.4.0/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.c605 static lv_font_fmt_txt_glyph_cache_t cache; variable
620 .cache = &cache
Dlv_font_unscii_8.c441 static lv_font_fmt_txt_glyph_cache_t cache; variable
456 .cache = &cache
Dlv_font_montserrat_44.c10878 static lv_font_fmt_txt_glyph_cache_t cache; variable
10893 .cache = &cache
Dlv_font_montserrat_10.c1616 static lv_font_fmt_txt_glyph_cache_t cache; variable
1631 .cache = &cache
Dlv_font_montserrat_12.c1877 static lv_font_fmt_txt_glyph_cache_t cache; variable
1892 .cache = &cache
Dlv_font_montserrat_12_subpx.c3818 static lv_font_fmt_txt_glyph_cache_t cache; variable
3833 .cache = &cache
Dlv_font_montserrat_14.c2153 static lv_font_fmt_txt_glyph_cache_t cache; variable
2168 .cache = &cache
Dlv_font_montserrat_16.c2422 static lv_font_fmt_txt_glyph_cache_t cache; variable
2437 .cache = &cache
Dlv_font_montserrat_18.c2822 static lv_font_fmt_txt_glyph_cache_t cache; variable
2837 .cache = &cache
Dlv_font_montserrat_20.c3179 static lv_font_fmt_txt_glyph_cache_t cache; variable
3194 .cache = &cache
Dlv_font_montserrat_22.c3608 static lv_font_fmt_txt_glyph_cache_t cache; variable
3623 .cache = &cache
Dlv_font_montserrat_24.c4019 static lv_font_fmt_txt_glyph_cache_t cache; variable
4034 .cache = &cache
/lvgl-3.4.0/docs/overview/
Dimage.md297 The number of cache entries can be defined with `LV_IMG_CACHE_DEF_SIZE` in *lv_conf.h*. The default…
299 The size of the cache can be changed at run-time with `lv_img_cache_set_size(entry_num)`.
302 When you use more images than cache entries, LVGL can't cache all the images. Instead, the library …
304 …ld slower-to-open images are considered more valuable and are kept in the cache as long as possibl…
308 Every cache entry has a *"life"* value. Every time an image is opened through the cache, the *life*…
311 If there is no more space in the cache, the entry with the lowest life value will be closed.
316 Therefore, it's the user's responsibility to be sure there is enough RAM to cache even the largest …
318 ### Clean the cache
319cache the image again. Otherwise, there is no easy way of detecting that the underlying file chan…
321 …ache_invalidate_src(&my_png)`. If `NULL` is passed as a parameter, the whole cache will be cleaned.
/lvgl-3.4.0/
DKconfig160 int "Default image cache size. 0 to disable caching."
181 …When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them a…
182 LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes.
183 … If the cache is too small the map will be allocated only while it's required for the drawing.
880 string ">0 to cache this number of bytes in lv_fs_read()"
893 int ">0 to cache this number of bytes in lv_fs_read()"
907 int ">0 to cache this number of bytes in lv_fs_read()"
918 int ">0 to cache this number of bytes in lv_fs_read()"
940 menu "FreeType cache config"
942 int "Memory used by FreeType to cache characters [bytes] (-1: no caching)"
[all …]

12