/lvgl-3.6.0/src/draw/nxp/vglite/ |
D | lv_vglite_buf.c | 58 static inline void lv_vglite_set_dest_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_… 59 static inline void lv_vglite_set_buf_ptr(vg_lite_buffer_t * vgbuf, const lv_color_t * buf); 76 void lv_gpu_nxp_vglite_init_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride) in lv_gpu_nxp_vglite_init_buf() argument 78 lv_vglite_set_dest_buf(buf, area, stride); in lv_gpu_nxp_vglite_init_buf() 91 void lv_vglite_set_dest_buf_ptr(const lv_color_t * buf) in lv_vglite_set_dest_buf_ptr() argument 93 lv_vglite_set_buf_ptr(&dest_vgbuf, buf); in lv_vglite_set_dest_buf_ptr() 96 void lv_vglite_set_src_buf_ptr(const lv_color_t * buf) in lv_vglite_set_src_buf_ptr() argument 98 lv_vglite_set_buf_ptr(&src_vgbuf, buf); in lv_vglite_set_src_buf_ptr() 101 void lv_vglite_set_src_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride) in lv_vglite_set_src_buf() argument 103 if(src_vgbuf.memory != (void *)buf) in lv_vglite_set_src_buf() [all …]
|
D | lv_vglite_buf.h | 64 void lv_gpu_nxp_vglite_init_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride); 85 void lv_vglite_set_dest_buf_ptr(const lv_color_t * buf); 92 void lv_vglite_set_src_buf_ptr(const lv_color_t * buf); 101 void lv_vglite_set_src_buf(const lv_color_t * buf, const lv_area_t * area, lv_coord_t stride); 111 void lv_vglite_set_buf(vg_lite_buffer_t * vgbuf, const lv_color_t * buf,
|
/lvgl-3.6.0/src/misc/ |
D | lv_color.c | 36 void LV_ATTRIBUTE_FAST_MEM lv_color_fill(lv_color_t * buf, lv_color_t color, uint32_t px_num) in lv_color_fill() argument 39 uintptr_t buf_int = (uintptr_t)buf; in lv_color_fill() 41 *buf = color; in lv_color_fill() 42 buf++; in lv_color_fill() 47 uint32_t * buf32 = (uint32_t *)buf; in lv_color_fill() 71 buf = (lv_color_t *)buf32; in lv_color_fill() 74 *buf = color; in lv_color_fill() 75 buf++; in lv_color_fill() 80 *buf = color; in lv_color_fill() 81 buf++; in lv_color_fill() [all …]
|
D | lv_log.c | 95 char buf[512]; in _lv_log_add() local 99 …lv_snprintf(buf, sizeof(buf), "[%s]\t(%" LV_PRId32 ".%03" LV_PRId32 ", +%" LV_PRId32 ")\t %s: %s \… in _lv_log_add() 103 …lv_snprintf(buf, sizeof(buf), "[%s]\t(%" LV_PRId32 ".%03" LV_PRId32 ", +%" LV_PRId32 ")\t %s: %pV … in _lv_log_add() 106 custom_print_cb(buf); in _lv_log_add() 126 char buf[512]; in lv_log() local 128 lv_vsnprintf(buf, sizeof(buf), format, args); in lv_log() 131 lv_snprintf(buf, sizeof(buf), "%pV", (void *)&vaf); in lv_log() 133 custom_print_cb(buf); in lv_log()
|
D | lv_printf.c | 168 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() argument 183 out(buf[--len], buffer, idx++, maxlen); in _out_rev() 197 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() argument 206 buf[len++] = '0'; in _ntoa_format() 209 buf[len++] = '0'; in _ntoa_format() 222 buf[len++] = 'x'; in _ntoa_format() 225 buf[len++] = 'X'; in _ntoa_format() 228 buf[len++] = 'b'; in _ntoa_format() 231 buf[len++] = '0'; in _ntoa_format() 237 buf[len++] = '-'; in _ntoa_format() [all …]
|
D | lv_fs.c | 132 static lv_fs_res_t lv_fs_read_cached(lv_fs_file_t * file_p, char * buf, uint32_t btr, uint32_t * br) in lv_fs_read_cached() argument 148 lv_memcpy(buf, buffer + buffer_offset, btr); in lv_fs_read_cached() 153 lv_memcpy(buf, buffer + buffer_offset, buffer_remaining_length); in lv_fs_read_cached() 158 … res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)(buf + buffer_remaining_length), in lv_fs_read_cached() 168 lv_memcpy(buf + buffer_remaining_length, buffer, data_chunk_remaining); in lv_fs_read_cached() 177 res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)buf, btr, br); in lv_fs_read_cached() 193 lv_memcpy(buf, buffer, *br); in lv_fs_read_cached() 205 lv_fs_res_t lv_fs_read(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br) in lv_fs_read() argument 215 res = lv_fs_read_cached(file_p, (char *)buf, btr, &br_tmp); in lv_fs_read() 218 res = file_p->drv->read_cb(file_p->drv, file_p->file_d, buf, btr, &br_tmp); in lv_fs_read() [all …]
|
/lvgl-3.6.0/src/draw/sw/ |
D | lv_draw_sw_layer.c | 57 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create() 58 if(layer_sw_ctx->base_draw.buf == NULL) { in lv_draw_sw_layer_create() 62 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create() 63 if(layer_sw_ctx->base_draw.buf == NULL) { in lv_draw_sw_layer_create() 76 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create() 77 lv_memset_00(layer_sw_ctx->base_draw.buf, layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create() 79 if(layer_sw_ctx->base_draw.buf == NULL) { in lv_draw_sw_layer_create() 83 draw_ctx->buf = layer_sw_ctx->base_draw.buf; in lv_draw_sw_layer_create() 101 lv_memset_00(layer_ctx->buf, layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_adjust() 110 draw_ctx->buf = layer_ctx->buf; in lv_draw_sw_layer_adjust() [all …]
|
/lvgl-3.6.0/examples/scroll/ |
D | lv_example_scroll_3.c | 13 char buf[32]; in float_btn_event_cb() local 14 lv_snprintf(buf, sizeof(buf), "Track %d", (int)btn_cnt); in float_btn_event_cb() 15 lv_obj_t * list_btn = lv_list_add_btn(list, LV_SYMBOL_AUDIO, buf); in float_btn_event_cb() 34 char buf[32]; in lv_example_scroll_3() local 35 lv_snprintf(buf, sizeof(buf), "Track %d", (int)btn_cnt); in lv_example_scroll_3() 36 lv_list_add_btn(list, LV_SYMBOL_AUDIO, buf); in lv_example_scroll_3()
|
/lvgl-3.6.0/src/extra/libs/fsdrv/ |
D | lv_fs_posix.c | 40 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… 41 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… 112 char buf[256]; in fs_open() local 113 lv_snprintf(buf, sizeof(buf), LV_FS_POSIX_PATH "%s", path); in fs_open() 115 int f = open(buf, flags, 0666); in fs_open() 145 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument 148 *br = read((lv_uintptr_t)file_p, buf, btr); in fs_read() 161 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument 164 *bw = write((lv_uintptr_t)file_p, buf, btw); in fs_write() 215 char buf[256]; in fs_dir_open() local [all …]
|
D | lv_fs_stdio.c | 43 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… 44 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… 117 char buf[MAX_PATH_LEN]; in fs_open() local 118 lv_snprintf(buf, sizeof(buf), LV_FS_STDIO_PATH "%s", path); in fs_open() 120 return fopen(buf, flags); in fs_open() 147 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument 150 *br = fread(buf, 1, btr, file_p); in fs_read() 163 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument 166 *bw = fwrite(buf, 1, btw, file_p); in fs_write() 212 char buf[MAX_PATH_LEN]; in fs_dir_open() local [all …]
|
D | lv_fs_win32.c | 38 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… 39 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… 221 char buf[MAX_PATH]; in fs_open() local 222 lv_snprintf(buf, sizeof(buf), LV_FS_WIN32_PATH "%s", path); in fs_open() 225 buf, in fs_open() 259 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument 262 return ReadFile((HANDLE)file_p, buf, btr, (LPDWORD)br, NULL) in fs_read() 276 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument 279 return WriteFile((HANDLE)file_p, buf, btw, (LPDWORD)bw, NULL) in fs_write() 368 char buf[MAX_PATH_LEN]; in fs_dir_open() local [all …]
|
/lvgl-3.6.0/src/extra/libs/bmp/ |
D | lv_bmp.c | 39 lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf); 195 lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf) in decoder_read_line() argument 204 lv_fs_read(&b->f, buf, len * (b->bpp / 8), NULL); in decoder_read_line() 208 buf[i] = buf[i] ^ buf[i + 1]; in decoder_read_line() 209 buf[i + 1] = buf[i] ^ buf[i + 1]; in decoder_read_line() 210 buf[i] = buf[i] ^ buf[i + 1]; in decoder_read_line() 217 uint8_t b0 = buf[i * 4]; in decoder_read_line() 218 uint8_t b1 = buf[i * 4 + 1]; in decoder_read_line() 219 uint8_t b2 = buf[i * 4 + 2]; in decoder_read_line() 220 uint8_t b3 = buf[i * 4 + 3]; in decoder_read_line() [all …]
|
/lvgl-3.6.0/tests/src/test_cases/ |
D | test_fs.c | 35 uint8_t buf[79]; in test_read() local 39 res = lv_fs_read(&fa, buf, sizeof(buf), &br); in test_read() 41 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read() 43 res = lv_fs_read(&fb, buf, sizeof(buf), &br); in test_read() 45 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read()
|
/lvgl-3.6.0/src/extra/others/snapshot/ |
D | lv_snapshot.c | 84 lv_res_t lv_snapshot_take_to_buf(lv_obj_t * obj, lv_img_cf_t cf, lv_img_dsc_t * dsc, void * buf, ui… in lv_snapshot_take_to_buf() argument 88 LV_ASSERT_NULL(buf); in lv_snapshot_take_to_buf() 116 lv_memset(buf, 0x00, buff_size); in lv_snapshot_take_to_buf() 138 draw_ctx->buf = (void *)buf; in lv_snapshot_take_to_buf() 150 dsc->data = buf; in lv_snapshot_take_to_buf() 169 void * buf = lv_mem_alloc(buff_size); in lv_snapshot_take() local 170 LV_ASSERT_MALLOC(buf); in lv_snapshot_take() 171 if(buf == NULL) { in lv_snapshot_take() 176 LV_ASSERT_MALLOC(buf); in lv_snapshot_take() 178 lv_mem_free(buf); in lv_snapshot_take() [all …]
|
/lvgl-3.6.0/examples/others/gridnav/ |
D | lv_example_gridnav_4.c | 27 char buf[32]; in lv_example_gridnav_4() local 31 lv_snprintf(buf, sizeof(buf), "Section %d", i / 5 + 1); in lv_example_gridnav_4() 32 lv_list_add_text(list, buf); in lv_example_gridnav_4() 35 lv_snprintf(buf, sizeof(buf), "File %d", i + 1); in lv_example_gridnav_4() 36 lv_obj_t * item = lv_list_add_btn(list, LV_SYMBOL_FILE, buf); in lv_example_gridnav_4()
|
D | lv_example_gridnav_2.c | 20 char buf[32]; in lv_example_gridnav_2() local 23 lv_snprintf(buf, sizeof(buf), "File %d", i + 1); in lv_example_gridnav_2() 24 lv_obj_t * item = lv_list_add_btn(list1, LV_SYMBOL_FILE, buf); in lv_example_gridnav_2() 37 lv_snprintf(buf, sizeof(buf), "Folder %d", i + 1); in lv_example_gridnav_2() 38 lv_obj_t * item = lv_list_add_btn(list2, LV_SYMBOL_DIRECTORY, buf); in lv_example_gridnav_2()
|
/lvgl-3.6.0/examples/widgets/checkbox/ |
D | lv_example_checkbox_2.c | 55 char buf[32]; in lv_example_checkbox_2() local 63 lv_snprintf(buf, sizeof(buf), "A %d", (int)i + 1); in lv_example_checkbox_2() 64 radiobutton_create(cont1, buf); in lv_example_checkbox_2() 77 lv_snprintf(buf, sizeof(buf), "B %d", (int)i + 1); in lv_example_checkbox_2() 78 radiobutton_create(cont2, buf); in lv_example_checkbox_2()
|
/lvgl-3.6.0/examples/widgets/dropdown/ |
D | lv_example_dropdown_1.c | 9 char buf[32]; in event_handler() local 10 lv_dropdown_get_selected_str(obj, buf, sizeof(buf)); in event_handler() 11 LV_LOG_USER("Option: %s", buf); in event_handler()
|
D | lv_example_dropdown_3.c | 7 char buf[64]; in event_cb() local 8 lv_dropdown_get_selected_str(dropdown, buf, sizeof(buf)); in event_cb() 9 LV_LOG_USER("'%s' is selected", buf); in event_cb()
|
/lvgl-3.6.0/examples/widgets/roller/ |
D | lv_example_roller_1.c | 9 char buf[32]; in event_handler() local 10 lv_roller_get_selected_str(obj, buf, sizeof(buf)); in event_handler() 11 LV_LOG_USER("Selected month: %s\n", buf); in event_handler()
|
D | lv_example_roller_2.c | 9 char buf[32]; in event_handler() local 10 lv_roller_get_selected_str(obj, buf, sizeof(buf)); in event_handler() 11 LV_LOG_USER("Selected value: %s", buf); in event_handler()
|
/lvgl-3.6.0/examples/widgets/slider/ |
D | lv_example_slider_1.c | 27 char buf[8]; in slider_event_cb() local 28 lv_snprintf(buf, sizeof(buf), "%d%%", (int)lv_slider_get_value(slider)); in slider_event_cb() 29 lv_label_set_text(slider_label, buf); in slider_event_cb()
|
D | lv_example_slider_3.c | 37 char buf[16]; in slider_event_cb() local 38 …lv_snprintf(buf, sizeof(buf), "%d - %d", (int)lv_slider_get_left_value(obj), (int)lv_slider_get_va… in slider_event_cb() 41 lv_txt_get_size(&label_size, buf, LV_FONT_DEFAULT, 0, 0, LV_COORD_MAX, 0); in slider_event_cb() 51 lv_draw_label(dsc->draw_ctx, &label_draw_dsc, &label_area, buf, NULL); in slider_event_cb()
|
/lvgl-3.6.0/examples/widgets/bar/ |
D | lv_example_bar_6.c | 20 char buf[8]; in event_cb() local 21 lv_snprintf(buf, sizeof(buf), "%d", (int)lv_bar_get_value(obj)); in event_cb() 24 …lv_txt_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in event_cb() 44 lv_draw_label(dsc->draw_ctx, &label_dsc, &txt_area, buf, NULL); in event_cb()
|
/lvgl-3.6.0/src/draw/ |
D | lv_img_decoder.c | 35 lv_coord_t len, uint8_t * buf); 37 lv_coord_t len, uint8_t * buf); 39 lv_coord_t len, uint8_t * buf); 176 …er_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf) in lv_img_decoder_read_line() argument 179 …if(dsc->decoder->read_line_cb) res = dsc->decoder->read_line_cb(dsc->decoder, dsc, x, y, len, buf); in lv_img_decoder_read_line() 481 lv_coord_t y, lv_coord_t len, uint8_t * buf) in lv_img_decoder_built_in_read_line() argument 492 res = lv_img_decoder_built_in_line_true_color(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 497 res = lv_img_decoder_built_in_line_alpha(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 501 res = lv_img_decoder_built_in_line_indexed(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 538 lv_coord_t len, uint8_t * buf) in lv_img_decoder_built_in_line_true_color() argument [all …]
|