/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | itoa.h | 39 inline char* u32toa(uint32_t value, char* buffer) { in u32toa() argument 40 RAPIDJSON_ASSERT(buffer != 0); in u32toa() 49 *buffer++ = cDigitsLut[d1]; in u32toa() 51 *buffer++ = cDigitsLut[d1 + 1]; in u32toa() 53 *buffer++ = cDigitsLut[d2]; in u32toa() 54 *buffer++ = cDigitsLut[d2 + 1]; in u32toa() 68 *buffer++ = cDigitsLut[d1]; in u32toa() 70 *buffer++ = cDigitsLut[d1 + 1]; in u32toa() 72 *buffer++ = cDigitsLut[d2]; in u32toa() 73 *buffer++ = cDigitsLut[d2 + 1]; in u32toa() [all …]
|
D | dtoa.h | 35 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound() argument 39 buffer[len - 1]--; in GrisuRound() 60 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen() argument 88 buffer[(*len)++] = static_cast<char>('0' + static_cast<char>(d)); in DigitGen() 93 GrisuRound(buffer, *len, delta, tmp, kPow10[kappa] << -one.e, wp_w.f); in DigitGen() 104 buffer[(*len)++] = static_cast<char>('0' + d); in DigitGen() 110 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * (index < 20 ? kPow10[index] : 0)); in DigitGen() 116 inline void Grisu2(double value, char* buffer, int* length, int* K) { in Grisu2() argument 127 DigitGen(W, Wp, Wp.f - Wm.f, buffer, length, K); in Grisu2() 130 inline char* WriteExponent(int K, char* buffer) { in WriteExponent() argument [all …]
|
/lvgl-latest/src/stdlib/builtin/ |
D | lv_sprintf_builtin.c | 121 typedef void (*out_fct_type)(char character, void * buffer, size_t idx, size_t maxlen); 130 static inline void _out_buffer(char character, void * buffer, size_t idx, size_t maxlen) in _out_buffer() argument 133 ((char *)buffer)[idx] = character; in _out_buffer() 138 static inline void _out_null(char character, void * buffer, size_t idx, size_t maxlen) in _out_null() argument 141 LV_UNUSED(buffer); in _out_null() 173 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() argument 182 out(' ', buffer, idx++, maxlen); in _out_rev() 188 out(buf[--len], buffer, idx++, maxlen); in _out_rev() 194 out(' ', buffer, idx++, maxlen); in _out_rev() 202 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() argument [all …]
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_vg_lite_utils.c | 419 void lv_vg_lite_buffer_dump_info(const vg_lite_buffer_t * buffer) in lv_vg_lite_buffer_dump_info() argument 421 LV_LOG_USER("memory: %p", (buffer)->memory); in lv_vg_lite_buffer_dump_info() 422 LV_LOG_USER("address: 0x%08x", (int)(buffer)->address); in lv_vg_lite_buffer_dump_info() 423 LV_LOG_USER("size: W%d x H%d", (int)((buffer)->width), (int)((buffer)->height)); in lv_vg_lite_buffer_dump_info() 424 LV_LOG_USER("stride: %d", (int)((buffer)->stride)); in lv_vg_lite_buffer_dump_info() 426 (int)((buffer)->format), in lv_vg_lite_buffer_dump_info() 427 lv_vg_lite_buffer_format_string((buffer)->format)); in lv_vg_lite_buffer_dump_info() 428 LV_LOG_USER("tiled: %d", (int)((buffer)->tiled)); in lv_vg_lite_buffer_dump_info() 673 vg_lite_buffer_t * buffer, in lv_vg_lite_buffer_init() argument 684 LV_ASSERT_NULL(buffer); in lv_vg_lite_buffer_init() [all …]
|
D | lv_vg_lite_utils.h | 53 #define LV_VG_LITE_ASSERT_SRC_BUFFER(buffer) LV_VG_LITE_ASSERT(lv_vg_lite_buffer_check(buffer, true… argument 54 #define LV_VG_LITE_ASSERT_DEST_BUFFER(buffer) LV_VG_LITE_ASSERT(lv_vg_lite_buffer_check(buffer, fal… argument 96 void lv_vg_lite_buffer_dump_info(const vg_lite_buffer_t * buffer); 119 vg_lite_buffer_t * buffer, 127 void lv_vg_lite_buffer_from_draw_buf(vg_lite_buffer_t * buffer, const lv_draw_buf_t * draw_buf); 131 vg_lite_color_t lv_vg_lite_image_recolor(vg_lite_buffer_t * buffer, const lv_draw_image_dsc_t * dsc… 133 bool lv_vg_lite_buffer_open_image(vg_lite_buffer_t * buffer, lv_image_decoder_dsc_t * decoder_dsc, … 155 bool lv_vg_lite_buffer_check(const vg_lite_buffer_t * buffer, bool is_src);
|
D | lv_vg_lite_grad.h | 41 vg_lite_buffer_t * buffer, 51 vg_lite_buffer_t * buffer,
|
/lvgl-latest/src/stdlib/clib/ |
D | lv_sprintf_clib.c | 40 int lv_snprintf(char * buffer, size_t count, const char * format, ...) in lv_snprintf() argument 44 const int ret = vsnprintf(buffer, count, format, va); in lv_snprintf() 49 int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va) in lv_vsnprintf() argument 51 return vsnprintf(buffer, count, format, va); in lv_vsnprintf()
|
/lvgl-latest/src/libs/thorvg/rapidjson/ |
D | writer.h | 314 char buffer[11]; in WriteInt() local 315 const char* end = internal::i32toa(i, buffer); in WriteInt() 316 PutReserve(*os_, static_cast<size_t>(end - buffer)); in WriteInt() 317 for (const char* p = buffer; p != end; ++p) in WriteInt() 323 char buffer[10]; in WriteUint() local 324 const char* end = internal::u32toa(u, buffer); in WriteUint() 325 PutReserve(*os_, static_cast<size_t>(end - buffer)); in WriteUint() 326 for (const char* p = buffer; p != end; ++p) in WriteUint() 332 char buffer[21]; in WriteInt64() local 333 const char* end = internal::i64toa(i64, buffer); in WriteInt64() [all …]
|
D | filewritestream.h | 36 …FileWriteStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), buffer… in FileWriteStream() argument
|
/lvgl-latest/src/stdlib/rtthread/ |
D | lv_sprintf_rtthread.c | 43 int lv_snprintf(char * buffer, size_t count, const char * format, ...) in lv_snprintf() argument 47 const int ret = rt_vsnprintf(buffer, count, format, va); in lv_snprintf() 52 int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va) in lv_vsnprintf() argument 54 return rt_vsnprintf(buffer, count, format, va); in lv_vsnprintf()
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgSwRasterC.h | 108 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in cRasterTranslucentRect() local 111 auto dst = &buffer[y * surface->stride]; in cRasterTranslucentRect() 118 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in cRasterTranslucentRect() local 121 auto dst = &buffer[y * surface->stride]; in cRasterTranslucentRect() 137 auto buffer = reinterpret_cast<uint64_t*>(surface->buf32); in cRasterABGRtoARGB() local 138 for (uint32_t y = 0; y < surface->h; ++y, buffer += surface->stride / 2) { in cRasterABGRtoARGB() 139 auto dst = buffer; in cRasterABGRtoARGB() 148 auto buffer = surface->buf32; in cRasterABGRtoARGB() local 149 for (uint32_t y = 0; y < surface->h; ++y, buffer += surface->stride) { in cRasterABGRtoARGB() 150 auto dst = buffer; in cRasterABGRtoARGB()
|
/lvgl-latest/docs/details/widgets/ |
D | canvas.rst | 33 The Canvas needs a buffer in which to store the drawn image. To assign a 34 buffer to a Canvas, use 35 :cpp:expr:`lv_canvas_set_buffer(canvas, buffer, width, height, LV_COLOR_FORMAT_...)`. 36 Where ``buffer`` is a static buffer (not just a local variable) to hold 37 the image of the Canvas. For example for a 100x50 ARGB8888 buffer: 38 ``static uint8_t buffer[100 * 50 * 4]``. 41 ``static uint8_t buffer[LV_CANVAS_BUF_SIZE(width, height, bits_per_pixel, stride_in_bytes)]``. 75 color format of the buffer and Canvas need to match.
|
D | lottie.rst | 18 the user needs to provide a buffer where the current animation frame is stored. 43 Set a buffer 46 In order to render the animation a buffer needs to be assigned to the Lottie Widget. 47 The animations are rendered in ARGB8888 format, therefore the buffer's size should be equal to 50 To keep the buffer size and the animation size consistent, 51 the size of the Widget (i.e. the size of the animation) is set to the dimensions of the buffer inte… 53 The buffer can be set with either :cpp:expr:`lv_lottie_set_buffer(lottie, w, h, buf)` 56 When a draw buffer is used, it must be already initialized by the user with :cpp:enumerator:`LV_COL…
|
D | label.rst | 38 :cpp:expr:`lv_label_set_text(label, "New text")`. This will allocate a buffer 39 dynamically, and the provided string will be copied into that buffer. 46 Labels are able to show text from a static character buffer as well. To do so, use 48 stored in dynamic memory and the given buffer is used directly instead. This means 49 that the contents of the character buffer *must* remain valid for the life of the 50 label or until another buffer is set via one of the above functions. 70 - allocate a static string buffer large enough contain the largest possible string, 71 - update that buffer with the new strings only when they will make a visible 73 - update the Label with :cpp:expr:`lv_label_set_text_static(label, buffer)` using that buffer. 112 Note that :cpp:enumerator:`LV_LABEL_LONG_DOT` manipulates the text buffer in-place in [all …]
|
/lvgl-latest/src/misc/ |
D | lv_fs.c | 128 file_p->cache->buffer = (void *)path_ex->buffer; in lv_fs_open() 150 path->buffer = buf; in lv_fs_make_path_from_buffer() 170 if(file_p->drv->cache_size != LV_FS_CACHE_FROM_BUFFER && file_p->cache->buffer) { in lv_fs_close() 171 lv_free(file_p->cache->buffer); in lv_fs_close() 543 char * buffer = file_p->cache->buffer; in lv_fs_read_cached() local 559 lv_memcpy(buf, buffer + buffer_offset, btr); in lv_fs_read_cached() 564 lv_memcpy(buf, buffer + buffer_offset, buffer_remaining_length); in lv_fs_read_cached() 577 …res = file_p->drv->read_cb(file_p->drv, file_p->file_d, buffer, buffer_size, &bytes_read_to_buffer… in lv_fs_read_cached() 582 lv_memcpy((char *)buf + buffer_remaining_length, buffer, data_chunk_remaining); in lv_fs_read_cached() 598 if(buffer == NULL) { in lv_fs_read_cached() [all …]
|
D | lv_fs_private.h | 31 void * buffer; member 37 const void * buffer; member
|
/lvgl-latest/docs/details/other-components/ |
D | snapshot.rst | 33 The snapshot image which is the draw buffer returned by :cpp:func:`lv_snapshot_take` 35 to invalidate cache by :cpp:func:`lv_image_cache_drop` before destroy the draw buffer. 56 for this case. It's caller's responsibility to create and destroy the draw buffer. 61 Note that snapshot may fail if provided buffer is not enough, which may 63 :cpp:func:`lv_snapshot_reshape_draw_buf` to prepare the buffer firstly and if it 64 fails, destroy the existing draw buffer and call `lv_snapshot_take` directly.
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_vg_tsvg.h | 45 nema_vg_draw_tsvg(const void* buffer); 54 void nema_vg_get_tsvg_resolution(const void *buffer, uint32_t *width, uint32_t *height);
|
D | nema_utils.h | 40 nema_buffer_t nema_load_file(const char *filename, int length, void *buffer); 41 int nema_save_file(const char *filename, int length, void *buffer);
|
/lvgl-latest/src/libs/lodepng/ |
D | lodepng.c | 305 static ucvector ucvector_init(unsigned char * buffer, size_t size) in ucvector_init() argument 308 v.data = buffer; in ucvector_init() 347 static unsigned lodepng_read32bitInt(const unsigned char * buffer) in lodepng_read32bitInt() argument 349 return (((unsigned)buffer[0] << 24u) | ((unsigned)buffer[1] << 16u) | in lodepng_read32bitInt() 350 ((unsigned)buffer[2] << 8u) | (unsigned)buffer[3]); in lodepng_read32bitInt() 356 static void lodepng_set32bitInt(unsigned char * buffer, unsigned value) in lodepng_set32bitInt() argument 358 buffer[0] = (unsigned char)((value >> 24) & 0xff); in lodepng_set32bitInt() 359 buffer[1] = (unsigned char)((value >> 16) & 0xff); in lodepng_set32bitInt() 360 buffer[2] = (unsigned char)((value >> 8) & 0xff); in lodepng_set32bitInt() 361 buffer[3] = (unsigned char)((value) & 0xff); in lodepng_set32bitInt() [all …]
|
/lvgl-latest/src/drivers/x11/ |
D | lv_x11_display.c | 52 …uint8_t * buffer[2]; /**< (double) lv display buffers, depending on @ref LV_X11_RENDER… member 178 xd->buffer[0] = realloc(xd->buffer[0], sz_buffers); in x11_resolution_evt_cb() 179 xd->buffer[1] = (LV_X11_DOUBLE_BUFFER ? realloc(xd->buffer[1], sz_buffers) : NULL); in x11_resolution_evt_cb() 180 lv_display_set_buffers(disp, xd->buffer[0], xd->buffer[1], sz_buffers, LV_X11_RENDER_MODE); in x11_resolution_evt_cb() 202 free(xd->buffer[0]); in x11_disp_delete_evt_cb() 204 free(xd->buffer[1]); in x11_disp_delete_evt_cb() 381 xd->buffer[0] = malloc(sz_buffers); in lv_x11_window_create() 382 xd->buffer[1] = (LV_X11_DOUBLE_BUFFER ? malloc(sz_buffers) : NULL); in lv_x11_window_create() 383 lv_display_set_buffers(disp, xd->buffer[0], xd->buffer[1], sz_buffers, LV_X11_RENDER_MODE); in lv_x11_window_create()
|
/lvgl-latest/docs/details/main-components/ |
D | display.rst | 239 - ``buf1`` a buffer to which LVGL can render pixels 240 - ``buf2`` a second optional buffer (see below) 241 - ``buf_size_in_bytes`` size of buffer(s) in bytes 244 - :cpp:enumerator:`LV_DISPLAY_RENDER_MODE_PARTIAL` Use the buffer(s) to render 249 - :cpp:enumerator:`LV_DISPLAY_RENDER_MODE_DIRECT` The buffer size(es) must match 251 buffer. Using this method the buffer(s) always contain the whole display image. 252 If two buffer are used, the rendered areas are automatically copied to the 253 other buffer after flushing. Due to this in :ref:`flush_callback` typically 254 only a frame buffer address needs to be changed. If a button is pressed 256 - :cpp:enumerator:`LV_DISPLAY_RENDER_MODE_FULL` The buffer size(es) must match [all …]
|
/lvgl-latest/src/stdlib/ |
D | lv_sprintf.h | 37 int lv_snprintf(char * buffer, size_t count, const char * format, ...); 39 int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va);
|
/lvgl-latest/src/drivers/uefi/ |
D | lv_uefi_display.c | 31 void * buffer; member 89 display_ctx->buffer = lv_malloc(display_ctx->buffer_size); in lv_uefi_display_create() 90 LV_ASSERT_MALLOC(display_ctx->buffer); in lv_uefi_display_create() 96 lv_display_set_buffers(display, display_ctx->buffer, NULL, (uint32_t)display_ctx->buffer_size, in lv_uefi_display_create() 267 if(display_ctx->buffer != NULL) lv_free(display_ctx->buffer); in _display_ctx_free()
|
/lvgl-latest/src/libs/libjpeg_turbo/ |
D | lv_libjpeg_turbo.c | 51 static void rotate_buffer(lv_draw_buf_t * decoded, uint8_t * buffer, uint32_t line_index, uint32_t … 278 JSAMPARRAY buffer; /* Output row buffer */ in decode_jpeg_file() local 367 buffer = (*cinfo.mem->alloc_sarray) in decode_jpeg_file() 386 jpeg_read_scanlines(&cinfo, buffer, 1); in decode_jpeg_file() 389 rotate_buffer(decoded, buffer[0], line_index, image_angle); in decode_jpeg_file() 566 static void rotate_buffer(lv_draw_buf_t * decoded, uint8_t * buffer, uint32_t line_index, uint32_t … in rotate_buffer() argument 571 lv_memcpy(decoded->data + dst_index, buffer + x * JPEG_PIXEL_SIZE, JPEG_PIXEL_SIZE); in rotate_buffer() 577 …lv_memcpy(decoded->data + dst_index, buffer + (decoded->header.w - x - 1) * JPEG_PIXEL_SIZE, JPEG_… in rotate_buffer() 583 lv_memcpy(decoded->data + dst_index, buffer + x * JPEG_PIXEL_SIZE, JPEG_PIXEL_SIZE); in rotate_buffer() 587 … lv_memcpy(decoded->data + line_index * decoded->header.stride, buffer, decoded->header.stride); in rotate_buffer()
|