Home
last modified time | relevance | path

Searched refs:lv_mem_alloc (Results 1 – 25 of 63) sorted by relevance

123

/lvgl-latest/src/font/
Dlv_font_loader.c93 lv_font_t * font = lv_mem_alloc(sizeof(lv_font_t)); in lv_font_load()
265 uint8_t * glyph_id_ofs_list = lv_mem_alloc(ids_size); in load_cmaps_tables()
281 uint16_t * unicode_list = (uint16_t *)lv_mem_alloc(list_size); in load_cmaps_tables()
291 uint16_t * buf = lv_mem_alloc(sizeof(uint16_t) * cmap->list_length); in load_cmaps_tables()
322 lv_mem_alloc(cmaps_subtables_count * sizeof(lv_font_fmt_txt_cmap_t)); in load_cmaps()
329 cmap_table_bin_t * cmaps_tables = lv_mem_alloc(sizeof(cmap_table_bin_t) * font_dsc->cmap_num); in load_cmaps()
347lv_mem_alloc(loca_count * sizeof(lv_font_fmt_txt_glyph_dsc_t)); in load_glyph()
417 uint8_t * glyph_bmp = (uint8_t *)lv_mem_alloc(sizeof(uint8_t) * cur_bmp_size); in load_glyph()
486 lv_mem_alloc(sizeof(lv_font_fmt_txt_dsc_t)); in lvgl_load_font()
535 uint32_t * glyph_offset = lv_mem_alloc(sizeof(uint32_t) * (loca_count + 1)); in lvgl_load_font()
[all …]
/lvgl-latest/src/extra/libs/sjpg/
Dlv_sjpg.c182 uint8_t * workb_temp = lv_mem_alloc(TJPGD_WORKBUFF_SIZE); in decoder_info()
253 uint8_t * workb_temp = lv_mem_alloc(TJPGD_WORKBUFF_SIZE); in decoder_info()
353 sjpeg = lv_mem_alloc(sizeof(SJPEG)); in decoder_open()
380 sjpeg->frame_base_array = lv_mem_alloc(sizeof(uint8_t *) * sjpeg->sjpeg_total_frames); in decoder_open()
398 …sjpeg->frame_cache = (void *)lv_mem_alloc(sjpeg->sjpeg_x_res * sjpeg->sjpeg_single_frame_height * … in decoder_open()
406 sjpeg->workb = lv_mem_alloc(TJPGD_WORKBUFF_SIZE); in decoder_open()
413 sjpeg->tjpeg_jd = lv_mem_alloc(sizeof(JDEC)); in decoder_open()
426 uint8_t * workb_temp = lv_mem_alloc(TJPGD_WORKBUFF_SIZE); in decoder_open()
448 … sjpeg->frame_base_array = lv_mem_alloc(sizeof(uint8_t *) * sjpeg->sjpeg_total_frames); in decoder_open()
460 …sjpeg->frame_cache = (void *)lv_mem_alloc(sjpeg->sjpeg_x_res * sjpeg->sjpeg_single_frame_height * … in decoder_open()
[all …]
/lvgl-latest/src/extra/widgets/tabview/
Dlv_tabview.c85 new_map = lv_mem_alloc((tab_id + 1) * sizeof(const char *)); in lv_tabview_add_tab()
87 new_map[tab_id - 1] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
93 new_map = lv_mem_alloc((tab_id * 2) * sizeof(const char *)); in lv_tabview_add_tab()
96 new_map[0] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
102 new_map[tab_id * 2 - 2] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
133 tabview->map[id] = lv_mem_alloc(strlen(new_name) + 1); in lv_tabview_rename_tab()
229 tabview->map = lv_mem_alloc(sizeof(const char *)); in lv_tabview_constructor()
/lvgl-latest/src/extra/others/snapshot/
Dlv_snapshot.c131 lv_draw_ctx_t * draw_ctx = lv_mem_alloc(obj_disp->driver->draw_ctx_size); in lv_snapshot_take_to_buf()
170 void * buf = lv_mem_alloc(buf_size); in lv_snapshot_take()
176 lv_img_dsc_t * dsc = lv_mem_alloc(sizeof(lv_img_dsc_t)); in lv_snapshot_take()
/lvgl-latest/src/core/
Dlv_obj_class.c47 lv_obj_t * obj = lv_mem_alloc(s); in lv_obj_class_create_obj()
64 disp->screens = lv_mem_alloc(sizeof(lv_obj_t *)); in lv_obj_class_create_obj()
89 parent->spec_attr->children = lv_mem_alloc(sizeof(lv_obj_t *)); in lv_obj_class_create_obj()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_layer.c56 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create()
61 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create()
75 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create()
/lvgl-latest/tests/src/test_cases/
Dtest_mem.c20 void * buf1 = lv_mem_alloc(20); in test_mem_buf_realloc()
/lvgl-latest/src/extra/libs/qrcode/
Dlv_qrcode.c104 uint8_t * qr0 = lv_mem_alloc(qrcodegen_BUFFER_LEN_FOR_VERSION(qr_version)); in lv_qrcode_update()
106 uint8_t * data_tmp = lv_mem_alloc(qrcodegen_BUFFER_LEN_FOR_VERSION(qr_version)); in lv_qrcode_update()
195 uint8_t * buf = lv_mem_alloc(buf_size); in lv_qrcode_constructor()
/lvgl-latest/src/misc/
Dlv_lru.c77 lv_lru_t * cache = (lv_lru_t *) lv_mem_alloc(sizeof(lv_lru_t)); in lv_lru_create()
92 … cache->items = (lv_lru_item_t **) lv_mem_alloc(sizeof(lv_lru_item_t *) * cache->hash_table_size); in lv_lru_create()
167 item->key = lv_mem_alloc(key_length); in lv_lru_set()
341 item = (lv_lru_item_t *) lv_mem_alloc(sizeof(lv_lru_item_t)); in lv_lru_pop_or_create_item()
Dlv_ll.c71 n_new = lv_mem_alloc(ll_p->n_size + LL_NODE_META_SIZE); in _lv_ll_ins_head()
107 n_new = lv_mem_alloc(ll_p->n_size + LL_NODE_META_SIZE); in _lv_ll_ins_prev()
130 n_new = lv_mem_alloc(ll_p->n_size + LL_NODE_META_SIZE); in _lv_ll_ins_tail()
Dlv_async.c48 lv_async_info_t * info = lv_mem_alloc(sizeof(lv_async_info_t)); in lv_async_call()
Dlv_txt_ap.c153 ch_enc = (uint32_t *)lv_mem_alloc(sizeof(uint32_t) * (txt_length + 1)); in _lv_txt_ap_proc()
154 ch_fin = (uint32_t *)lv_mem_alloc(sizeof(uint32_t) * (txt_length + 1)); in _lv_txt_ap_proc()
Dlv_mem.h74 void * lv_mem_alloc(size_t size);
Dlv_mem.c125 void * lv_mem_alloc(size_t size) in lv_mem_alloc() function
203 if(data_p == &zero_mem) return lv_mem_alloc(new_size); in lv_mem_realloc()
/lvgl-latest/src/draw/
Dlv_img_decoder.c124 dsc->src = lv_mem_alloc(fnlen + 1); in lv_img_decoder_open()
342 dsc->user_data = lv_mem_alloc(sizeof(lv_img_decoder_built_in_data_t)); in lv_img_decoder_built_in_open()
375 uint8_t * fs_buf = lv_mem_alloc(len); in lv_img_decoder_built_in_open()
411 dsc->user_data = lv_mem_alloc(sizeof(lv_img_decoder_built_in_data_t)); in lv_img_decoder_built_in_open()
421 … user_data->palette = lv_mem_alloc(palette_size * sizeof(lv_color_t)); in lv_img_decoder_built_in_open()
423 user_data->opa = lv_mem_alloc(palette_size * sizeof(lv_opa_t)); in lv_img_decoder_built_in_open()
Dlv_draw_layer.c42 lv_draw_layer_ctx_t * layer_ctx = lv_mem_alloc(draw_ctx->layer_instance_size); in lv_draw_layer_create()
Dlv_img_cache.c162 LV_GC_ROOT(_lv_img_cache_array) = lv_mem_alloc(sizeof(_lv_img_cache_entry_t) * new_entry_cnt); in lv_img_cache_set_size()
/lvgl-latest/src/extra/libs/fsdrv/
Dlv_fs_fatfs.c113 FIL * f = lv_mem_alloc(sizeof(FIL)); in fs_open()
228 DIR * d = lv_mem_alloc(sizeof(DIR)); in fs_dir_open()
Dlv_fs_littlefs.c138 lfs_file_t * file_p = lv_mem_alloc(sizeof(lfs_file_t)); in fs_open()
264 lfs_dir_t * dir_p = lv_mem_alloc(sizeof(lfs_dir_t)); in fs_dir_open()
/lvgl-latest/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c14 #define STBTT_malloc(x, u) ((void)(u), lv_mem_alloc(x))
16 #define TTF_MALLOC(x) (lv_mem_alloc(x))
158 buffer = lv_mem_alloc(szb); in ttf_get_glyph_bitmap_cb()
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl.c78 draw_ctx_sdl->internals = lv_mem_alloc(sizeof(lv_draw_sdl_context_internals_t)); in lv_draw_sdl_init_ctx()
/lvgl-latest/src/extra/others/imgfont/
Dlv_imgfont.c55 imgfont_dsc_t * dsc = (imgfont_dsc_t *)lv_mem_alloc(size); in lv_imgfont_create()
/lvgl-latest/src/extra/others/fragment/
Dlv_fragment.c29 lv_fragment_t * instance = lv_mem_alloc(cls->instance_size); in lv_fragment_create()
/lvgl-latest/src/extra/libs/gif/
Dgifdec.c111 gif = lv_mem_alloc(sizeof(gd_GIF) + 5 * width * height); in gif_open()
113 gif = lv_mem_alloc(sizeof(gd_GIF) + 4 * width * height); in gif_open()
115 gif = lv_mem_alloc(sizeof(gd_GIF) + 3 * width * height); in gif_open()
304 Table *table = lv_mem_alloc(sizeof(*table) + sizeof(Entry) * init_bulk); in new_table()
/lvgl-latest/docs/others/
Dsnapshot.md19 The memory `lv_snapshot_take` uses are dynamically allocated using `lv_mem_alloc`. Use API `lv_snap…

123