Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 37) sorted by relevance

12

/lvgl-3.4.0/src/draw/sdl/
Dlv_draw_sdl_texture_cache.c43 static draw_cache_value_t * draw_cache_get_entry(lv_draw_sdl_ctx_t * ctx, const void * key, size_t …
68 SDL_Texture * lv_draw_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l… in lv_draw_sdl_texture_cache_get() argument
70 return lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_length, found, NULL); in lv_draw_sdl_texture_cache_get()
73 SDL_Texture * lv_draw_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key in lv_draw_sdl_texture_cache_get_with_userdata() argument
76 draw_cache_value_t * value = draw_cache_get_entry(ctx, key, key_length, found); in lv_draw_sdl_texture_cache_get_with_userdata()
84 void lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD… in lv_draw_sdl_texture_cache_put() argument
86 lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put()
89 void lv_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l… in lv_draw_sdl_texture_cache_put_advanced() argument
100 lv_lru_set(lru, key, key_length, value, 1); in lv_draw_sdl_texture_cache_put_advanced()
106 lv_lru_set(lru, key, key_length, value, 1); in lv_draw_sdl_texture_cache_put_advanced()
[all …]
Dlv_draw_sdl_line.c67 lv_draw_line_key_t key = line_key_create(dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line() local
68 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(sdl_ctx, &key, sizeof(key), NULL); in lv_draw_sdl_draw_line()
71 lv_draw_sdl_texture_cache_put(sdl_ctx, &key, sizeof(key), texture); in lv_draw_sdl_draw_line()
112 lv_draw_line_key_t key; in line_key_create() local
113 lv_memset_00(&key, sizeof(lv_draw_line_key_t)); in line_key_create()
114 key.magic = LV_GPU_CACHE_KEY_MAGIC_LINE; in line_key_create()
115 key.length = length; in line_key_create()
116 key.width = dsc->width; in line_key_create()
117 key.round = (dsc->round_start ? ROUND_START : 0) | (dsc->round_end ? ROUND_END : 0); in line_key_create()
118 return key; in line_key_create()
Dlv_draw_sdl_rect.c146 lv_draw_rect_bg_key_t key = rect_bg_key_create(radius, radius); in lv_draw_sdl_rect_bg_frag_obtain() local
149 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_bg_frag_obtain()
157 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain()
301 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(dsc->bg_img_src, 0, &k… in draw_bg_img() local
304 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &key_found, in draw_bg_img()
306 SDL_free(key); in draw_bg_img()
405 lv_draw_rect_shadow_key_t key = rect_shadow_key_create(radius, frag_size, sw); in draw_shadow() local
407 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in draw_shadow()
426 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in draw_shadow()
514 lv_draw_rect_border_key_t key = rect_border_key_create(rout, rin, outer_area, inner_area); in draw_border_generic() local
[all …]
Dlv_draw_sdl_texture_cache.h79 SDL_Texture * lv_draw_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l…
81 SDL_Texture * lv_draw_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key
84 void lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD…
86 void lv_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l…
Dlv_draw_sdl_label.c149 lv_font_glyph_key_t key; in font_key_glyph_create() local
151 SDL_memset(&key, 0, sizeof(key)); in font_key_glyph_create()
152 key.magic = LV_GPU_CACHE_KEY_MAGIC_FONT_GLYPH; in font_key_glyph_create()
153 key.font_p = font_p; in font_key_glyph_create()
154 key.letter = letter; in font_key_glyph_create()
155 return key; in font_key_glyph_create()
Dlv_draw_sdl_img.c103 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(src, draw_dsc->frame_i… in lv_draw_sdl_img_core() local
106 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &texture_f… in lv_draw_sdl_img_core()
109 … lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header); in lv_draw_sdl_img_core()
111 SDL_free(key); in lv_draw_sdl_img_core()
181 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, … in lv_draw_sdl_img_load_texture() argument
211 …lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_size, *texture, *header, SDL_free, tex_flags); in lv_draw_sdl_img_load_texture()
214 lv_draw_sdl_texture_cache_put(ctx, key, key_size, NULL); in lv_draw_sdl_img_load_texture()
377 lv_draw_img_rounded_key_t key = rounded_key_create(texture, w, h, radius); in img_rounded_frag_obtain() local
379 SDL_Texture * img_frag = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in img_rounded_frag_obtain()
441 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), img_frag); in img_rounded_frag_obtain()
[all …]
Dlv_draw_sdl_composite.c206 composite_key_t key; in mask_key_create() local
208 SDL_memset(&key, 0, sizeof(key)); in mask_key_create()
209 key.magic = LV_GPU_CACHE_KEY_MAGIC_MASK; in mask_key_create()
210 key.type = type; in mask_key_create()
211 return key; in mask_key_create()
Dlv_draw_sdl_img.h59 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, …
/lvgl-3.4.0/zephyr/
Dlvgl_mem.c23 k_spinlock_key_t key; in lvgl_malloc() local
26 key = k_spin_lock(&lvgl_heap_lock); in lvgl_malloc()
28 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_malloc()
35 k_spinlock_key_t key; in lvgl_realloc() local
38 key = k_spin_lock(&lvgl_heap_lock); in lvgl_realloc()
40 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_realloc()
47 k_spinlock_key_t key; in lvgl_free() local
49 key = k_spin_lock(&lvgl_heap_lock); in lvgl_free()
51 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_free()
/lvgl-3.4.0/src/misc/
Dlv_lru.c27 void * key; member
43 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length);
46 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length);
72 #define test_for_missing_key() error_for(!key, LV_LRU_MISSING_KEY)
123 cache->key_free(item->key); in lv_lru_del()
146 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… in lv_lru_set() argument
154 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set()
159 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set()
176 item->key = lv_mem_alloc(key_length); in lv_lru_set()
177 memcpy(item->key, key, key_length); in lv_lru_set()
[all …]
Dlv_lru.h68 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_utils.c54 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size, in _lv_utils_bsearch() argument
62 if((c = (*cmp)(key, middle)) > 0) { in _lv_utils_bsearch()
Dlv_utils.h47 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size,
/lvgl-3.4.0/src/extra/libs/gif/
Dgifdec.c288 int key; in new_table() local
295 for (key = 0; key < (1 << key_size); key++) in new_table()
296 table->entries[key] = (Entry) {1, 0xFFF, key}; in new_table()
329 uint16_t key; in get_key() local
331 key = 0; in get_key()
344 key |= ((uint16_t) ((*byte) >> rpad)) << bits_read; in get_key()
347 key &= (1 << key_size) - 1; in get_key()
349 return key; in get_key()
382 uint16_t key, clear, stop; in read_image_data() local
400 key = get_key(gif, key_size, &sub_len, &shift, &byte); /* clear code */ in read_image_data()
[all …]
/lvgl-3.4.0/src/core/
Dlv_indev.c403 i->proc.types.keypad.last_key = data->key; in indev_keypad_proc()
413 LV_LOG_INFO("%d key is pressed", data->key); in indev_keypad_proc()
417 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
424 else if(data->key == LV_KEY_ESC) { in indev_keypad_proc()
432 else if(data->key == LV_KEY_NEXT) { in indev_keypad_proc()
438 else if(data->key == LV_KEY_PREV) { in indev_keypad_proc()
445 lv_group_send_data(g, data->key); in indev_keypad_proc()
451 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
459 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
472 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
[all …]
/lvgl-3.4.0/src/extra/others/gridnav/
Dlv_gridnav.c101 uint32_t key = lv_indev_get_key(lv_indev_get_act()); in gridnav_event_cb() local
104 if(key == LV_KEY_RIGHT) { in gridnav_event_cb()
124 else if(key == LV_KEY_LEFT) { in gridnav_event_cb()
144 else if(key == LV_KEY_DOWN) { in gridnav_event_cb()
163 else if(key == LV_KEY_UP) { in gridnav_event_cb()
184 lv_event_send(dsc->focused_obj, LV_EVENT_KEY, &key); in gridnav_event_cb()
/lvgl-3.4.0/src/hal/
Dlv_hal_indev.c178 data->key = indev->proc.types.keypad.last_key; in _lv_indev_read()
182 data->key = LV_KEY_ENTER; in _lv_indev_read()
Dlv_hal_indev.h79 uint32_t key; /**< For LV_INDEV_TYPE_KEYPAD the currently pressed key*/ member
/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_gradient.h41 uint32_t key; /**< A discriminating key that's built from the drawing operation. member
Dlv_draw_sw_gradient.c163 if(c->key == *k) return LV_RES_OK; in find_item()
208 item->key = compute_key(g, size, w); in allocate_item()
274 uint32_t key = compute_key(g, size, w); in lv_gradient_get() local
276 if(iterate_cache(&find_item, &key, &item) == LV_RES_OK) { in lv_gradient_get()
/lvgl-3.4.0/docs/others/
Dgridnav.md19 This way, if the object with gridnav is focused, the arrow key presses are automatically forwarded …
22 … group use `LV_KEY_NEXT/PREV` or `lv_group_focus_next/prev()` or the `TAB` key on keyboard as usua…
/lvgl-3.4.0/src/extra/libs/png/
Dlodepng.c2910 static unsigned lodepng_add_text_sized(LodePNGInfo* info, const char* key, const char* str, size_t … in lodepng_add_text_sized() argument
2920 info->text_keys[info->text_num - 1] = alloc_string(key); in lodepng_add_text_sized()
2927 unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str) { in lodepng_add_text() argument
2928 return lodepng_add_text_sized(info, key, str, lodepng_strlen(str)); in lodepng_add_text()
2977 static unsigned lodepng_add_itext_sized(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext_sized() argument
2993 info->itext_keys[info->itext_num - 1] = alloc_string(key); in lodepng_add_itext_sized()
3001 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext() argument
3003 return lodepng_add_itext_sized(info, key, langtag, transkey, str, lodepng_strlen(str)); in lodepng_add_itext()
3665 stats->key = 0; in lodepng_color_stats_init()
3767 if(a != 65535 && (a != 0 || (stats->key && !matchkey))) { in lodepng_compute_color_stats()
[all …]
/lvgl-3.4.0/src/font/
Dlv_font_fmt_txt.c233 uint16_t key = rcp; in get_glyph_dsc_id() local
234 … uint16_t * p = _lv_utils_bsearch(&key, fdsc->cmaps[i].unicode_list, fdsc->cmaps[i].list_length, in get_glyph_dsc_id()
243 uint16_t key = rcp; in get_glyph_dsc_id() local
244 … uint16_t * p = _lv_utils_bsearch(&key, fdsc->cmaps[i].unicode_list, fdsc->cmaps[i].list_length, in get_glyph_dsc_id()
/lvgl-3.4.0/tests/src/
Dlv_test_indev.c63 data->key = key_act; in lv_test_keypad_read_cb()
/lvgl-3.4.0/docs/porting/
Dindev.md72 data->key = last_key(); /*Get the last pressed or released key*/
129 data->key = last_key(); /*Get the last pressed or released key*/

12