Home
last modified time | relevance | path

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

12

/lvgl-3.7.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 bool 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 return lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put()
89 bool 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 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced()
105 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced()
[all …]
Dlv_draw_sdl_rect.c180 lv_draw_rect_bg_key_t key = rect_bg_key_create(radius, radius); in lv_draw_sdl_rect_bg_frag_obtain() local
181 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_bg_frag_obtain()
191 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain()
202 lv_draw_rect_grad_frag_key_t key = rect_grad_frag_key_create(grad, w, h, radius); in lv_draw_sdl_rect_grad_frag_obtain() local
203 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_frag_obtain()
246 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_frag_obtain()
256 lv_draw_rect_grad_strip_key_t key = rect_grad_strip_key_create(grad); in lv_draw_sdl_rect_grad_strip_obtain() local
257 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_strip_obtain()
274 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_strip_obtain()
555 …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
[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 *in_cache = 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_texture_cache.h80 SDL_Texture * lv_draw_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l…
82 SDL_Texture * lv_draw_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key
88 bool lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD…
93 bool lv_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l…
Dlv_draw_sdl_img.c104 …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
107 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &texture_f… in lv_draw_sdl_img_core()
111 lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header, in lv_draw_sdl_img_core()
117 SDL_free(key); in lv_draw_sdl_img_core()
199 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
230 …*texture_in_cache = lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_size, *texture, *header, … in lv_draw_sdl_img_load_texture()
235 *texture_in_cache = lv_draw_sdl_texture_cache_put(ctx, key, key_size, NULL); in lv_draw_sdl_img_load_texture()
403 lv_draw_img_rounded_key_t key = rounded_key_create(texture, w, h, radius); in img_rounded_frag_obtain() local
406 SDL_Texture * img_frag = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in img_rounded_frag_obtain()
472 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), img_frag); in img_rounded_frag_obtain()
[all …]
Dlv_draw_sdl_label.c179 lv_font_glyph_key_t key; in font_key_glyph_create() local
181 SDL_memset(&key, 0, sizeof(key)); in font_key_glyph_create()
182 key.magic = LV_GPU_CACHE_KEY_MAGIC_FONT_GLYPH; in font_key_glyph_create()
183 key.font_p = font_p; in font_key_glyph_create()
184 key.letter = letter; in font_key_glyph_create()
185 return key; in font_key_glyph_create()
Dlv_draw_sdl_composite.c229 composite_key_t key; in mask_key_create() local
231 SDL_memset(&key, 0, sizeof(key)); in mask_key_create()
232 key.magic = LV_GPU_CACHE_KEY_MAGIC_MASK; in mask_key_create()
233 key.type = type; in mask_key_create()
234 return key; in mask_key_create()
Dlv_draw_sdl_img.h72 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, …
/lvgl-3.7.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);
65 #define test_for_missing_key() error_for(!key, LV_LRU_MISSING_KEY)
115 cache->key_free(item->key); in lv_lru_del()
137 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
145 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set()
150 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set()
167 item->key = lv_mem_alloc(key_length); in lv_lru_set()
168 memcpy(item->key, key, key_length); in lv_lru_set()
[all …]
Dlv_lru.h66 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);
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.7.0/tests/src/test_cases/
Dtest_slider.c48 char key = LV_KEY_RIGHT; in test_slider_event_keys_right_and_up_increment_value_by_one() local
52 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_right_and_up_increment_value_by_one()
57 key = LV_KEY_UP; in test_slider_event_keys_right_and_up_increment_value_by_one()
58 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_right_and_up_increment_value_by_one()
64 char key = LV_KEY_LEFT; in test_slider_event_keys_left_and_down_decrement_value_by_one() local
68 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_left_and_down_decrement_value_by_one()
73 key = LV_KEY_DOWN; in test_slider_event_keys_left_and_down_decrement_value_by_one()
74 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_left_and_down_decrement_value_by_one()
80 char key = LV_KEY_ENTER; in test_slider_event_invalid_key_should_not_change_values() local
84 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_invalid_key_should_not_change_values()
/lvgl-3.7.0/src/extra/libs/gif/
Dgifdec.c302 int key; in new_table() local
309 for (key = 0; key < (1 << key_size); key++) in new_table()
310 table->entries[key] = (Entry) {1, 0xFFF, key}; in new_table()
343 uint16_t key; in get_key() local
345 key = 0; in get_key()
358 key |= ((uint16_t) ((*byte) >> rpad)) << bits_read; in get_key()
361 key &= (1 << key_size) - 1; in get_key()
363 return key; in get_key()
396 uint16_t key, clear, stop; in read_image_data() local
414 key = get_key(gif, key_size, &sub_len, &shift, &byte); /* clear code */ in read_image_data()
[all …]
/lvgl-3.7.0/examples/others/ime/
Dindex.rst2 Pinyin IME 26 key input
8 Pinyin IME 9 key input
/lvgl-3.7.0/src/core/
Dlv_indev.c419 i->proc.types.keypad.last_key = data->key; in indev_keypad_proc()
429 LV_LOG_INFO("%" LV_PRIu32 " key is pressed", data->key); in indev_keypad_proc()
433 if(data->key == LV_KEY_NEXT) { in indev_keypad_proc()
439 else if(data->key == LV_KEY_PREV) { in indev_keypad_proc()
446 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
454 else if(data->key == LV_KEY_ESC) { in indev_keypad_proc()
464 lv_group_send_data(g, data->key); in indev_keypad_proc()
472 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
480 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
493 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc()
[all …]
/lvgl-3.7.0/docs/others/
Dime_pinyin.md3 …n input method (Chinese input) for keyboard object, which supports 26 key and 9 key input modes. Y…
123key and 9 key input modes. The mode switching is very simple, just call the function `lv_ime_pinyi…
Dgridnav.md15 This way, if the object with gridnav is focused, the arrow key presses are automatically forwarded …
18 … group use `LV_KEY_NEXT/PREV` or `lv_group_focus_next/prev()` or the `TAB` key on keyboard as usua…
/lvgl-3.7.0/src/extra/others/gridnav/
Dlv_gridnav.c122 uint32_t key = lv_event_get_key(e); in gridnav_event_cb() local
125 if(key == LV_KEY_RIGHT) { in gridnav_event_cb()
145 else if(key == LV_KEY_LEFT) { in gridnav_event_cb()
165 else if(key == LV_KEY_DOWN) { in gridnav_event_cb()
184 else if(key == LV_KEY_UP) { in gridnav_event_cb()
205 lv_event_send(dsc->focused_obj, LV_EVENT_KEY, &key); in gridnav_event_cb()
/lvgl-3.7.0/src/hal/
Dlv_hal_indev.c177 data->key = indev->proc.types.keypad.last_key; in _lv_indev_read()
181 data->key = LV_KEY_ENTER; in _lv_indev_read()
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_gradient.h40 uint32_t key; /**< A discriminating key that's built from the drawing operation. member
Dlv_draw_sw_gradient.c153 if(c->key == *k) return LV_RES_OK; in find_item()
198 item->key = compute_key(g, size, w); in allocate_item()
263 uint32_t key = compute_key(g, size, w); in lv_gradient_get() local
265 if(iterate_cache(&find_item, &key, &item) == LV_RES_OK) { in lv_gradient_get()
/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.c2908 static unsigned lodepng_add_text_sized(LodePNGInfo* info, const char* key, const char* str, size_t … in lodepng_add_text_sized() argument
2918 info->text_keys[info->text_num - 1] = alloc_string(key); in lodepng_add_text_sized()
2925 unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str) { in lodepng_add_text() argument
2926 return lodepng_add_text_sized(info, key, str, lodepng_strlen(str)); in lodepng_add_text()
2975 static unsigned lodepng_add_itext_sized(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext_sized() argument
2991 info->itext_keys[info->itext_num - 1] = alloc_string(key); in lodepng_add_itext_sized()
2999 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext() argument
3001 return lodepng_add_itext_sized(info, key, langtag, transkey, str, lodepng_strlen(str)); in lodepng_add_itext()
3663 stats->key = 0; in lodepng_color_stats_init()
3765 if(a != 65535 && (a != 0 || (stats->key && !matchkey))) { in lodepng_compute_color_stats()
[all …]
/lvgl-3.7.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.7.0/tests/src/
Dlv_test_indev.c63 data->key = key_act; in lv_test_keypad_read_cb()

12