Lines Matching refs:key

43 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()
113 …return lv_lru_set(lru, key, key_length, value, width * height * SDL_BITSPERPIXEL(format) / 8) == L… in lv_draw_sdl_texture_cache_put_advanced()
124 void * key; in lv_draw_sdl_texture_img_key_create() local
129 key = SDL_malloc(key_size); in lv_draw_sdl_texture_img_key_create()
130 SDL_memcpy(key, &header, sizeof(header)); in lv_draw_sdl_texture_img_key_create()
132 SDL_memcpy(key + sizeof(header), src, srclen); in lv_draw_sdl_texture_img_key_create()
136 key = SDL_malloc(key_size); in lv_draw_sdl_texture_img_key_create()
137 SDL_memcpy(key, &header, sizeof(header)); in lv_draw_sdl_texture_img_key_create()
139 SDL_memcpy(key + sizeof(header), &src, sizeof(void *)); in lv_draw_sdl_texture_img_key_create()
142 return (lv_draw_sdl_cache_key_head_img_t *) key; in lv_draw_sdl_texture_img_key_create()
157 static draw_cache_value_t * draw_cache_get_entry(lv_draw_sdl_ctx_t * ctx, const void * key, size_t … in draw_cache_get_entry() argument
162 lv_lru_get(lru, key, key_length, (void **) &value); in draw_cache_get_entry()