Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 231) sorted by relevance

12345678910

/lvgl-latest/src/misc/
Dlv_array.c40 array->size = 0; in lv_array_init()
52 array->size = 0; in lv_array_init_from_buf()
67 array->size = 0; in lv_array_deinit()
78 lv_memcpy(target->data, source->data, source->size * source->element_size); in lv_array_copy()
79 target->size = source->size; in lv_array_copy()
84 if(array->size <= array->capacity / LV_ARRAY_DEFAULT_SHRINK_RATIO) { in lv_array_shrink()
85 lv_array_resize(array, array->size); in lv_array_shrink()
91 if(index >= array->size) { in lv_array_remove()
96 if(index == array->size - 1) { in lv_array_remove()
97 array->size--; in lv_array_remove()
[all …]
/lvgl-latest/src/stdlib/
Dlv_mem.c39 void * lv_malloc_core(size_t size);
62 void * lv_malloc(size_t size) in lv_malloc() argument
64 LV_TRACE_MEM("allocating %lu bytes", (unsigned long)size); in lv_malloc()
65 if(size == 0) { in lv_malloc()
70 void * alloc = lv_malloc_core(size); in lv_malloc()
73 LV_LOG_INFO("couldn't allocate memory (%lu bytes)", (unsigned long)size); in lv_malloc()
85 lv_memset(alloc, 0xaa, size); in lv_malloc()
92 void * lv_malloc_zeroed(size_t size) in lv_malloc_zeroed() argument
94 LV_TRACE_MEM("allocating %lu bytes", (unsigned long)size); in lv_malloc_zeroed()
95 if(size == 0) { in lv_malloc_zeroed()
[all …]
Dlv_mem.h69 void * lv_malloc(size_t size);
77 void * lv_calloc(size_t num, size_t size);
84 void * lv_zalloc(size_t size);
91 void * lv_malloc_zeroed(size_t size);
112 void * lv_malloc_core(size_t size);
/lvgl-latest/src/stdlib/builtin/
Dlv_tlsf.c198 tlsf_decl int tlsf_fls_sizet(size_t size) in tlsf_fls_sizet() argument
200 int high = (int)(size >> 32); in tlsf_fls_sizet()
206 bits = tlsf_fls((int)size & 0xffffffff); in tlsf_fls_sizet()
326 size_t size; member
350 offsetof(block_header_t, size) + sizeof(size_t);
383 return block->size & ~(block_header_free_bit | block_header_prev_free_bit); in block_size()
386 static void block_set_size(block_header_t * block, size_t size) in block_set_size() argument
388 const size_t oldsize = block->size; in block_set_size()
389 block->size = size | (oldsize & (block_header_free_bit | block_header_prev_free_bit)); in block_set_size()
399 return tlsf_cast(int, block->size & block_header_free_bit); in block_is_free()
[all …]
Dlv_mem_core_builtin.c48 static void lv_mem_walker(void * ptr, size_t size, int used, void * user);
139 void * lv_malloc_core(size_t size) in lv_malloc_core() argument
144 void * p = lv_tlsf_malloc(state.tlsf, size); in lv_malloc_core()
187 size_t size = lv_tlsf_block_size(p); in lv_free_core() local
189 if(state.cur_used > size) state.cur_used -= size; in lv_free_core()
257 static void lv_mem_walker(void * ptr, size_t size, int used, void * user) in lv_mem_walker() argument
262 mon_p->total_size += size; in lv_mem_walker()
268 mon_p->free_size += size; in lv_mem_walker()
269 if(size > mon_p->free_biggest_size) in lv_mem_walker()
270 mon_p->free_biggest_size = size; in lv_mem_walker()
/lvgl-latest/libs/nema_gfx/include/
Dtsi_malloc.h36 #define tsi_malloc_init(base_virt, base_phys, size, reset) \ argument
37 tsi_malloc_init_pool(0, base_virt, base_phys, size, reset)
39 #define tsi_malloc(size) tsi_malloc_pool(0, size) argument
44 int size,
50 int size,
54 void *tsi_malloc_pool(int pool, int size);
Dnema_hal.h39 int size; /**< Size of buffer */ member
104 nema_buffer_t nema_buffer_create(int size);
113 nema_buffer_t nema_buffer_create_pool(int pool, int size);
162 void *nema_host_malloc(size_t size);
/lvgl-latest/examples/event/
Dlv_example_event_draw.c5 static uint32_t size = 0; variable
11 if(size_dec) size--; in timer_cb()
12 else size++; in timer_cb()
14 if(size == 50) size_dec = true; in timer_cb()
15 else if(size == 0) size_dec = false; in timer_cb()
37 a.x2 = size; in event_cb()
38 a.y2 = size; in event_cb()
/lvgl-latest/src/stdlib/uefi/
Dlv_mem_core_uefi.c37 size_t size; member
53 void * lv_malloc_core(size_t size) in lv_malloc_core() argument
55 size_t size_with_header = size + sizeof(mem_header_t); in lv_malloc_core()
60 ptr->size = size; in lv_malloc_core()
79 if(p_header->size > new_size) return p; in lv_realloc_core()
82 lv_memcpy(p_new, p, p_header->size); in lv_realloc_core()
/lvgl-latest/src/libs/thorvg/rapidjson/
Dallocators.h86 void* Malloc(size_t size) { in Malloc() argument
87 if (size) // behavior of malloc(0) is implementation defined. in Malloc()
88 return RAPIDJSON_MALLOC(size); in Malloc()
136 size_t size; //!< Current size of allocated memory in bytes. member
185 shared_->chunkHead->size = 0; in chunk_capacity_()
201 …MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAlloc…
204 shared_(static_cast<SharedData*>(AlignBuffer(buffer, size))) in chunk_capacity_()
206 RAPIDJSON_ASSERT(size >= SIZEOF_SHARED_DATA + SIZEOF_CHUNK_HEADER); in chunk_capacity_()
208 shared_->chunkHead->capacity = size - SIZEOF_SHARED_DATA - SIZEOF_CHUNK_HEADER; in chunk_capacity_()
209 shared_->chunkHead->size = 0; in chunk_capacity_()
[all …]
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_stm32_hal.c173 void * nema_host_malloc(unsigned size) in nema_host_malloc() argument
175 return tsi_malloc(size); in nema_host_malloc()
178 nema_buffer_t nema_buffer_create(int size) in nema_buffer_create() argument
182 bo.base_virt = tsi_malloc(size); in nema_buffer_create()
184 bo.size = size; in nema_buffer_create()
190 nema_buffer_t nema_buffer_create_pool(int pool, int size) in nema_buffer_create_pool() argument
194 return nema_buffer_create(size); in nema_buffer_create_pool()
217 bo->size = 0; in nema_buffer_destroy()
/lvgl-latest/src/libs/thorvg/
DtvgLottieLoader.cpp201 bool LottieLoader::open(const char* data, uint32_t size, bool copy) in open() argument
204 content = (char*)malloc(size + 1); in open()
206 memcpy((char*)content, data, size); in open()
207 const_cast<char*>(content)[size] = '\0'; in open()
212 this->size = size; in open()
226 size = ftell(f); in open()
227 if (size == 0) { in open()
232 auto content = (char*)(malloc(sizeof(char) * size + 1)); in open()
234 auto ret = fread(content, sizeof(char), size, f); in open()
235 if (ret < size) { in open()
[all …]
DtvgPicture.cpp96 bool Picture::Impl::size(float w, float h) in size() function in Picture::Impl
176 Result Picture::load(const char* data, uint32_t size, const string& mimeType, bool copy) noexcept in load() argument
178 if (!data || size <= 0) return Result::InvalidArguments; in load()
180 return pImpl->load(data, size, mimeType, copy); in load()
184 TVG_DEPRECATED Result Picture::load(const char* data, uint32_t size, bool copy) noexcept in load() argument
186 return load(data, size, "", copy); in load()
198 Result Picture::size(float w, float h) noexcept in size() function in Picture
200 if (pImpl->size(w, h)) return Result::Success; in size()
205 Result Picture::size(float* w, float* h) const noexcept in size() function in Picture
DtvgArray.h45 Array(int32_t size) in Array()
47 reserve(size); in Array()
73 bool reserve(uint32_t size) in reserve()
75 if (size > reserved) { in reserve()
76 reserved = size; in reserve()
82 bool grow(uint32_t size) in grow()
84 return reserve(count + size); in grow()
DtvgText.cpp58 Result Text::font(const char* name, float size, const char* style) noexcept in font() argument
60 return pImpl->font(name, size, style); in font()
76 Result Text::load(const char* name, const char* data, uint32_t size, const string& mimeType, bool c… in load() argument
78 if (!name || (size == 0 && data)) return Result::InvalidArguments; in load()
86 if (!LoaderMgr::loader(name, data, size, mimeType, copy)) return Result::NonSupport; in load()
DtvgCompressor.cpp262 int size; member
270 size = FirstCode; in Dictionary()
272 for (int i = 0; i < size; ++i) { in Dictionary()
284 for (int i = 0; i < size; ++i) { in findIndex()
292 if (size == MaxDictEntries) return false; in add()
293 entries[size].code = code; in add()
294 entries[size].value = value; in add()
295 ++size; in add()
301 if (size == (1 << codeBitsWidth)) { in flush()
306 size = FirstCode; in flush()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_box_shadow.c44 static void /* LV_ATTRIBUTE_FAST_MEM */ shadow_blur_corner(int32_t size, int32_t sw, uint16_t * sh_…
577 int32_t size = sw_ori + r; in shadow_draw_corner_buf() local
597 lv_opa_t * mask_line = lv_malloc(size); in shadow_draw_corner_buf()
599 for(y = 0; y < size; y++) { in shadow_draw_corner_buf()
600 lv_memset(mask_line, 0xff, size); in shadow_draw_corner_buf()
601 lv_draw_sw_mask_res_t mask_res = mask_param.dsc.cb(mask_line, 0, y, size, &mask_param); in shadow_draw_corner_buf()
603 lv_memzero(sh_ups_tmp_buf, size * sizeof(sh_ups_tmp_buf[0])); in shadow_draw_corner_buf()
608 for(i = 1; i < size; i++) { in shadow_draw_corner_buf()
614 sh_ups_tmp_buf += size; in shadow_draw_corner_buf()
623 for(i = 0; i < size * size; i++) { in shadow_draw_corner_buf()
[all …]
/lvgl-latest/src/libs/libpng/
Dlv_libpng.c91 uint32_t * size; in decoder_info() local
108 size = (uint32_t *)&buf[16]; in decoder_info()
114 size = ((uint32_t *)img_dsc->data) + 4; in decoder_info()
123 header->w = (int32_t)((size[0] & 0xff000000) >> 24) + ((size[0] & 0x00ff0000) >> 8); in decoder_info()
124 header->h = (int32_t)((size[1] & 0xff000000) >> 24) + ((size[1] & 0x00ff0000) >> 8); in decoder_info()
182 search_key.slot.size = decoded->data_size; in decoder_open()
208 static uint8_t * alloc_file(const char * filename, uint32_t * size) in alloc_file() argument
216 *size = 0; in alloc_file()
249 *size = rn; in alloc_file()
/lvgl-latest/docs/details/base-widget/
Dcoord.rst18 - Explicitly set coordinates are stored in styles (position, size, layouts, etc.)
22 - width/height means the full size, the "content area" is smaller with padding and border width
32 When passing "length units" (a.k.a. "distance units" or "size units") as arguments to
33 functions that modify position, size, etc., to make layout of your UI convenient, you
36 :pixels: Specify size as pixels: an integer value <
40 :percentage: Specify size as a percentage of the size of the Widget's
47 percent* so that if/when the size of the parent container (or
51 :contained content: Specify size as a function of the Widget's children. The macro
52 :c:macro:`LV_SIZE_CONTENT`: passed as a size value has special
58 :inches: Specify size as 1/160-th portion of an inch as if it were pixels
[all …]
/lvgl-latest/src/libs/freetype/
Dlv_freetype_image.c31 uint32_t size; member
99 .size = dsc->size, in freetype_get_glyph_bitmap_cb()
135 error = FT_Set_Pixel_Sizes(face, 0, dsc->size); in freetype_image_create_cb()
207 if(lhs->size != rhs->size) { in freetype_image_compare_cb()
208 return lhs->size > rhs->size ? 1 : -1; in freetype_image_compare_cb()
Dlv_ftsystem.c53 long size);
124 stream->size = pos; in FT_Stream_Open()
144 filepathname, stream->size)); in FT_Stream_Open()
195 long size) in ft_alloc() argument
199 return lv_malloc((size_t)size); in ft_alloc()
250 stream->size = 0; in ft_lv_fs_stream_close()
272 if(!count && offset > stream->size) in ft_lv_fs_stream_io()
Dlv_freetype_glyph.c26 uint32_t size; member
102 .size = dsc->size, in freetype_get_glyph_dsc_cb()
145 error = FT_Set_Pixel_Sizes(face, 0, dsc->size); in freetype_glyph_create_cb()
221 if(lhs->size != rhs->size) { in freetype_glyph_compare_cb()
222 return lhs->size > rhs->size ? 1 : -1; in freetype_glyph_compare_cb()
/lvgl-latest/src/libs/lodepng/
Dlv_lodepng.c92 uint32_t * size; in decoder_info() local
109 size = (uint32_t *)&buf[16]; in decoder_info()
115 size = ((uint32_t *)img_dsc->data) + 4; in decoder_info()
124 header->w = (int32_t)((size[0] & 0xff000000) >> 24) + ((size[0] & 0x00ff0000) >> 8); in decoder_info()
125 header->h = (int32_t)((size[1] & 0xff000000) >> 24) + ((size[1] & 0x00ff0000) >> 8); in decoder_info()
210 search_key.slot.size = decoded->data_size; in decoder_open()
/lvgl-latest/src/drivers/nuttx/
Dlv_nuttx_touchscreen.c46 static void indev_set_cursor(lv_indev_t * indev, int32_t size);
93 static void indev_set_cursor(lv_indev_t * indev, int32_t size) in indev_set_cursor() argument
96 if(size <= 0) { in indev_set_cursor()
112 lv_obj_set_size(cursor_obj, size, size); in indev_set_cursor()
113 lv_obj_set_style_translate_x(cursor_obj, -size / 2, 0); in indev_set_cursor()
114 lv_obj_set_style_translate_y(cursor_obj, -size / 2, 0); in indev_set_cursor()
/lvgl-latest/src/stdlib/micropython/
Dlv_mem_core_micropython.c63 void * lv_malloc_core(size_t size) in lv_malloc_core() argument
66 return gc_alloc(size, true); in lv_malloc_core()
68 return m_malloc(size); in lv_malloc_core()

12345678910