Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 205) sorted by relevance

123456789

/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_border.c47 if(dsc->width == 0) in lv_draw_nema_gfx_border()
56 int32_t width = dsc->width; in lv_draw_nema_gfx_border() local
59 inward_coords.x1 = coords->x1 + ceil(width / 2.0f); in lv_draw_nema_gfx_border()
60 inward_coords.x2 = coords->x2 - floor(width / 2.0f); in lv_draw_nema_gfx_border()
61 inward_coords.y1 = coords->y1 + ceil(width / 2.0f); in lv_draw_nema_gfx_border()
62 inward_coords.y2 = coords->y2 - floor(width / 2.0f); in lv_draw_nema_gfx_border()
84 float x1 = (float)coords->x1 + ((float)width / 2.0f) - (float)layer->buf_area.x1; in lv_draw_nema_gfx_border()
85 float x2 = (float)coords->x2 - ((float)width / 2.0f) - (float)layer->buf_area.x1; in lv_draw_nema_gfx_border()
86 float y1 = (float)coords->y1 + ((float)width / 2.0f) - (float)layer->buf_area.y1; in lv_draw_nema_gfx_border()
87 float y2 = (float)coords->y2 - ((float)width / 2.0f) - (float)layer->buf_area.y1; in lv_draw_nema_gfx_border()
[all …]
Dlv_draw_nema_gfx_line.c44 if(dsc->width == 0) in lv_draw_nema_gfx_line()
55 clip_area.x1 = LV_MIN(dsc->p1.x, dsc->p2.x) - dsc->width / 2; in lv_draw_nema_gfx_line()
56 clip_area.x2 = LV_MAX(dsc->p1.x, dsc->p2.x) + dsc->width / 2; in lv_draw_nema_gfx_line()
57 clip_area.y1 = LV_MIN(dsc->p1.y, dsc->p2.y) - dsc->width / 2; in lv_draw_nema_gfx_line()
58 clip_area.y2 = LV_MAX(dsc->p1.y, dsc->p2.y) + dsc->width / 2; in lv_draw_nema_gfx_line()
88 nema_draw_line_aa(point1.x, point1.y, point2.x, point2.y, dsc->width, bg_color); in lv_draw_nema_gfx_line()
Dlv_draw_nema_gfx_arc.c49 if(dsc->width == 0) in lv_draw_nema_gfx_arc()
88 nema_vg_paint_set_stroke_width(draw_nema_gfx_unit->paint, dsc->width); in lv_draw_nema_gfx_arc()
92 …nema_vg_draw_ring(center.x, center.y, (float)dsc->radius - (float)dsc->width * 0.5f, start_angle, … in lv_draw_nema_gfx_arc()
96 …nema_vg_draw_ring_generic(center.x, center.y, (float)dsc->radius - (float)dsc->width * 0.5f, start… in lv_draw_nema_gfx_arc()
/lvgl-latest/libs/nema_gfx/include/
Dnema_transitions.h65 uint32_t blending_mode, float step, int width, int height);
79 uint32_t blending_mode, float step, int width);
106 uint32_t blending_mode, float step, int width, int height);
120 uint32_t blending_mode, float step, int width, int height);
134 uint32_t blending_mode, float step, int width, int height);
148 uint32_t blending_mode, float step, int width, int height);
162 int width, int height);
176 int width, int height);
190 uint32_t blending_mode, float step, int width, int height);
204 uint32_t blending_mode, float step, int width, int height);
Dnema_vg.h57 void nema_vg_init(int width, int height);
66 void nema_vg_init_stencil_pool(int width, int height, int pool);
75 void nema_vg_init_stencil_prealloc(int width, int height, nema_buffer_t stencil_bo);
140 uint32_t nema_vg_draw_rect(float x, float y, float width, float height,
158 uint32_t nema_vg_draw_rounded_rect(float x, float y, float width, float height,
/lvgl-latest/src/stdlib/builtin/
Dlv_sprintf_builtin.c174 unsigned int width, unsigned int flags) in _out_rev() argument
181 for(i = len; i < width; i++) { in _out_rev()
193 while(idx - start_idx < width) { in _out_rev()
203 … bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_format() argument
207 if(width && (flags & FLAGS_ZEROPAD) && (negative || (flags & (FLAGS_PLUS | FLAGS_SPACE)))) { in _ntoa_format()
208 width--; in _ntoa_format()
213 while((flags & FLAGS_ZEROPAD) && (len < width) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
220 if(!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
252 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
257 … unsigned long base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_long() argument
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_arc.c24 lv_opa_t * mask_buf, int32_t width);
57 if(dsc->width == 0) return; in lv_draw_sw_arc()
60 int32_t width = dsc->width; in lv_draw_sw_arc() local
61 if(width > dsc->radius) width = dsc->radius; in lv_draw_sw_arc()
74 cir_dsc.width = width; in lv_draw_sw_arc()
83 area_in.x1 += dsc->width; in lv_draw_sw_arc()
84 area_in.y1 += dsc->width; in lv_draw_sw_arc()
85 area_in.x2 -= dsc->width; in lv_draw_sw_arc()
86 area_in.y2 -= dsc->width; in lv_draw_sw_arc()
159 circle_mask = lv_malloc(width * width); in lv_draw_sw_arc()
[all …]
Dlv_draw_sw_utils.c79 static void rotate180_argb8888(const uint32_t * src, uint32_t * dst, int32_t width, int32_t height,…
89 static void rotate180_rgb888(const uint8_t * src, uint8_t * dst, int32_t width, int32_t height, int…
91 static void rotate270_rgb888(const uint8_t * src, uint8_t * dst, int32_t width, int32_t height, int…
98 static void rotate180_rgb565(const uint16_t * src, uint16_t * dst, int32_t width, int32_t height, i…
110 static void rotate180_l8(const uint8_t * src, uint8_t * dst, int32_t width, int32_t height, int32_t…
129 void lv_draw_sw_i1_to_argb8888(const void * buf_i1, void * buf_argb8888, uint32_t width, uint32_t h… in lv_draw_sw_i1_to_argb8888() argument
135 uint32_t i1_row_byte_count = width / 8; in lv_draw_sw_i1_to_argb8888()
214 void lv_draw_sw_i1_convert_to_vtiled(const void * buf, uint32_t buf_size, uint32_t width, uint32_t … in lv_draw_sw_i1_convert_to_vtiled() argument
219 LV_ASSERT(width % 8 == 0 && height % 8 == 0); in lv_draw_sw_i1_convert_to_vtiled()
220 LV_ASSERT(buf_size >= (width / 8) * height); in lv_draw_sw_i1_convert_to_vtiled()
[all …]
/lvgl-latest/src/libs/tiny_ttf/
Dstb_rect_pack.h138 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes…
186 int width; member
259 context->align = (context->width + context->num_nodes - 1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
263 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes… in stbrp_init_target() argument
274 context->width = width; in stbrp_init_target()
283 context->extra[1].x = (stbrp_coord) width; in stbrp_init_target()
289 static int stbrp__skyline_find_min_y(stbrp_context * c, stbrp_node * first, int x0, int width, int … in stbrp__skyline_find_min_y() argument
292 int x1 = x0 + width; in stbrp__skyline_find_min_y()
328 if(under_width + visited_width > width) in stbrp__skyline_find_min_y()
329 under_width = width - visited_width; in stbrp__skyline_find_min_y()
[all …]
/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_buf.c72 void vglite_set_dest_buf(const void * buf, uint32_t width, uint32_t height, uint32_t stride, in vglite_set_dest_buf() argument
75 vglite_set_buf(&_dest_vgbuf, (void *)buf, width, height, stride, cf); in vglite_set_dest_buf()
78 void vglite_set_src_buf(const void * buf, uint32_t width, uint32_t height, uint32_t stride, in vglite_set_src_buf() argument
81 vglite_set_buf(&_src_vgbuf, (void *)buf, width, height, stride, cf); in vglite_set_src_buf()
85 uint32_t width, uint32_t height, uint32_t stride, in vglite_set_buf() argument
95 vgbuf->width = (int32_t)width; in vglite_set_buf()
Dlv_draw_vglite_border.c72 if(dsc->width == 0) in lv_draw_vglite_border()
79 int32_t width = dsc->width; in lv_draw_vglite_border() local
82 inward_coords.x1 = coords->x1 + ceil(width / 2.0f); in lv_draw_vglite_border()
83 inward_coords.x2 = coords->x2 - floor(width / 2.0f); in lv_draw_vglite_border()
84 inward_coords.y1 = coords->y1 + ceil(width / 2.0f); in lv_draw_vglite_border()
85 inward_coords.y2 = coords->y2 - floor(width / 2.0f); in lv_draw_vglite_border()
113 int32_t border_half = (int32_t)floor(dsc->width / 2.0f); in _vglite_draw_border()
134 int32_t line_width = dsc->width; in _vglite_draw_border()
150 rect[num_rect].width = coords->x2 - coords->x1 + line_width; in _vglite_draw_border()
158 rect[num_rect].width = final_radius + ceil(line_width / 2.0f); in _vglite_draw_border()
[all …]
Dlv_draw_vglite_line.c60 if(dsc->width == 0) in lv_draw_vglite_line()
69 clip_area.x1 = LV_MIN(dsc->p1.x, dsc->p2.x) - dsc->width / 2; in lv_draw_vglite_line()
70 clip_area.x2 = LV_MAX(dsc->p1.x, dsc->p2.x) + dsc->width / 2; in lv_draw_vglite_line()
71 clip_area.y1 = LV_MIN(dsc->p1.y, dsc->p2.y) - dsc->width / 2; in lv_draw_vglite_line()
72 clip_area.y2 = LV_MAX(dsc->p1.y, dsc->p2.y) + dsc->width / 2; in lv_draw_vglite_line()
112 int32_t width = dsc->width; in _vglite_draw_line() local
130 …VGLITE_CHECK_ERROR(vg_lite_set_stroke(&path, cap_style, join_style, width, 8, stroke_dash_pattern,… in _vglite_draw_line()
Dlv_vglite_buf.h83 void vglite_set_dest_buf(const void * buf, uint32_t width, uint32_t height, uint32_t stride,
96 void vglite_set_src_buf(const void * buf, uint32_t width, uint32_t height, uint32_t stride,
111 uint32_t width, uint32_t height, uint32_t stride,
/lvgl-latest/src/draw/
Dlv_draw_line.c42 dsc->width = 1; in lv_draw_line_dsc_init()
55 if(dsc->width == 0) return; in lv_draw_line()
61 a.x1 = (int32_t)LV_MIN(dsc->p1.x, dsc->p2.x) - dsc->width; in lv_draw_line()
62 a.x2 = (int32_t)LV_MAX(dsc->p1.x, dsc->p2.x) + dsc->width; in lv_draw_line()
63 a.y1 = (int32_t)LV_MIN(dsc->p1.y, dsc->p2.y) - dsc->width; in lv_draw_line()
64 a.y2 = (int32_t)LV_MAX(dsc->p1.y, dsc->p2.y) + dsc->width; in lv_draw_line()
/lvgl-latest/src/drivers/wayland/
Dlv_wayland.c148 int width; member
231 int width; member
253 static void color_fill(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
254 static void color_fill_XRGB8888(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
255 static void color_fill_RGB565(void * pixels, lv_color_t color, uint32_t width, uint32_t height);
258 static bool resize_window(struct window * window, int width, int height);
383 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_enter()
397 else if(pos_x >= (window->width + BORDER_SIZE - (BORDER_SIZE * 5))) { in pointer_handle_enter()
441 wl_surface_damage(app->cursor_surface, 0, 0, cursor_image->width, cursor_image->height); in pointer_handle_enter()
472 …pointer_obj->input.pointer.x = LV_MAX(0, LV_MIN(wl_fixed_to_int(sx), app->pointer_obj->width - 1)); in pointer_handle_motion()
[all …]
/lvgl-latest/tests/src/test_cases/
Dtest_display.c17 uint32_t width; member
56 …uint32_t buffer_size = lv_draw_buf_width_to_stride(test_set->width, test_set->color_format) * test… in exec_invalidated_drawbuf_size_test()
60 lv_display_t * disp = lv_display_create(test_set->width, test_set->height); in exec_invalidated_drawbuf_size_test()
76 .width = 10, in test_get_invalidated_drawbuf_size_rgb888_partial()
90 .width = 10, in test_get_invalidated_drawbuf_size_rgb888_full()
104 .width = 180, in test_get_invalidated_drawbuf_size_i1_full()
118 .width = 180, in test_get_invalidated_drawbuf_size_i1_partial()
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_box_shadow.c53 shadow_area.x1 = core_area.x1 - dsc->width / 2 - 1; in lv_draw_vg_lite_box_shadow()
54 shadow_area.x2 = core_area.x2 + dsc->width / 2 + 1; in lv_draw_vg_lite_box_shadow()
55 shadow_area.y1 = core_area.y1 - dsc->width / 2 - 1; in lv_draw_vg_lite_box_shadow()
56 shadow_area.y2 = core_area.y2 + dsc->width / 2 + 1; in lv_draw_vg_lite_box_shadow()
67 border_dsc.width = 3; in lv_draw_vg_lite_box_shadow()
73 int32_t half_w = dsc->width / 2; in lv_draw_vg_lite_box_shadow()
Dlv_vg_lite_stroke.c48 float width; member
154 search_key.lv.width = dsc->width; in lv_vg_lite_stroke_get()
208 if(item->lv.width <= 0) { in stroke_create_cb()
209 LV_LOG_WARN("stroke width error: %f", item->lv.width); in stroke_create_cb()
242 item->lv.width, in stroke_create_cb()
246 item->lv.width / 2, in stroke_create_cb()
358 if(lhs->lv.width != rhs->lv.width) { in stroke_compare_cb()
359 return lhs->lv.width > rhs->lv.width ? 1 : -1; in stroke_compare_cb()
/lvgl-latest/src/libs/rlottie/
Dlv_rlottie.c48 int32_t width; member
65 lv_obj_t * lv_rlottie_create_from_file(lv_obj_t * parent, int32_t width, int32_t height, const char… in lv_rlottie_create_from_file() argument
67 create_info.width = width; in lv_rlottie_create_from_file()
79 lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t * parent, int32_t width, int32_t height, const char … in lv_rlottie_create_from_raw() argument
81 create_info.width = width; in lv_rlottie_create_from_raw()
134 rlottie->scanline_width = create_info.width * LV_ARGB32 / 8; in lv_rlottie_constructor()
136 size_t allocated_buf_size = (create_info.width * create_info.height * LV_ARGB32 / 8); in lv_rlottie_constructor()
145 rlottie->imgdsc.header.w = create_info.width; in lv_rlottie_constructor()
/lvgl-latest/src/draw/renesas/dave2d/
Dlv_draw_dave2d_arc.c69 (d2_width) D2_FIX4(dsc->radius - dsc->width / 2), in lv_draw_dave2d_arc()
70 (d2_width) D2_FIX4(dsc->width)); in lv_draw_dave2d_arc()
139 (d2_width) D2_FIX4(dsc->radius - dsc->width / 2), in lv_draw_dave2d_arc()
140 (d2_width) D2_FIX4(dsc->width), in lv_draw_dave2d_arc()
152 …start_coord.x = arc_centre.x + (int16_t)(((dsc->radius - dsc->width / 2) * cos_start) >> LV_TRIGO_… in lv_draw_dave2d_arc()
153 …start_coord.y = arc_centre.y + (int16_t)(((dsc->radius - dsc->width / 2) * sin_start) >> LV_TRIGO_… in lv_draw_dave2d_arc()
159 (d2_width) D2_FIX4(dsc->width / 2), 0); in lv_draw_dave2d_arc()
161 …end_coord.x = arc_centre.x + (int16_t)(((dsc->radius - dsc->width / 2) * cos_end) >> LV_TRIGO_SHIF… in lv_draw_dave2d_arc()
162 …end_coord.y = arc_centre.y + (int16_t)(((dsc->radius - dsc->width / 2) * sin_end) >> LV_TRIGO_SHIF… in lv_draw_dave2d_arc()
168 (d2_width) D2_FIX4(dsc->width / 2), 0); in lv_draw_dave2d_arc()
Dlv_draw_dave2d_line.c19 clip_line.x1 = LV_MIN(dsc->p1.x, dsc->p2.x) - dsc->width / 2; in lv_draw_dave2d_line()
20 clip_line.x2 = LV_MAX(dsc->p1.x, dsc->p2.x) + dsc->width / 2; in lv_draw_dave2d_line()
21 clip_line.y1 = LV_MIN(dsc->p1.y, dsc->p2.y) - dsc->width / 2; in lv_draw_dave2d_line()
22 clip_line.y2 = LV_MAX(dsc->p1.y, dsc->p2.y) + dsc->width / 2; in lv_draw_dave2d_line()
77 D2_FIX4(p2_y), D2_FIX4(dsc->width), d2_le_exclude_none); in lv_draw_dave2d_line()
/lvgl-latest/scripts/
Djpg_to_sjpg.py34 width, height = im.size variable
38 print("\tRES = " + str(width) + " x " + str(height) + '\n')
54 crop = im.crop((0, i*block_size, width, row_remaining + i*block_size))
56 crop = im.crop((0, i*block_size, width, block_size + i*block_size))
80 header = header + width.to_bytes(2, byteorder='little');
121 c_code = c_code + "\t.header.w = " + str(width) + ",\n"
/lvgl-latest/src/libs/gif/
Dgifdec.c78 uint16_t width, height, depth; in gif_open() local
97 width = read_num(gif_base); in gif_open()
116 if(0 == width || 0 == height){ in gif_open()
121 if(0 == (INT_MAX - sizeof(gd_GIF) - LZW_CACHE_SIZE) / width / height / 5){ in gif_open()
125 gif = lv_malloc(sizeof(gd_GIF) + 5 * width * height + LZW_CACHE_SIZE); in gif_open()
127 if(0 == (INT_MAX - sizeof(gd_GIF)) / width / height / 5){ in gif_open()
131 gif = lv_malloc(sizeof(gd_GIF) + 5 * width * height); in gif_open()
135 gif->width = width; in gif_open()
144 gif->frame = &gif->canvas[4 * width * height]; in gif_open()
146 memset(gif->frame, gif->bgindex, gif->width * gif->height); in gif_open()
[all …]
/lvgl-latest/src/widgets/span/
Dlv_span.c70 static int32_t convert_indent_pct(lv_obj_t * spans, int32_t width);
72 …_coords_t make_span_coords(const lv_span_t * prev_span, const lv_span_t * curr_span, int32_t width,
374 int32_t width = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_spangroup_refr_mode() local
375 if(LV_COORD_IS_PCT(width)) { in lv_spangroup_refr_mode()
376 width = 100; in lv_spangroup_refr_mode()
378 int32_t height = lv_spangroup_get_expand_height(obj, width); in lv_spangroup_refr_mode()
413 uint32_t width = LV_COORD_IS_PCT(spans->indent) ? 0 : spans->indent; in lv_spangroup_get_expand_width() local
423 if(max_width > 0 && width >= max_width) { in lv_spangroup_get_expand_width()
429 width = width + letter_w + letter_space; in lv_spangroup_get_expand_width()
433 return width - letter_space; in lv_spangroup_get_expand_width()
[all …]
/lvgl-latest/src/libs/ffmpeg/
Dlv_ffmpeg.c183 int width = player->ffmpeg_ctx->video_dec_ctx->width; in lv_ffmpeg_player_set_src() local
187 data_size = width * height * 4; in lv_ffmpeg_player_set_src()
189 player->imgdsc.header.w = width; in lv_ffmpeg_player_set_src()
193 player->imgdsc.header.stride = width * lv_color_format_get_size(player->imgdsc.header.cf); in lv_ffmpeg_player_set_src()
384 int width = ffmpeg_ctx->video_dec_ctx->width; in ffmpeg_output_video_frame() local
388 if(frame->width != width in ffmpeg_output_video_frame()
400 width, in ffmpeg_output_video_frame()
403 frame->width, frame->height, in ffmpeg_output_video_frame()
415 ffmpeg_ctx->video_dec_ctx->pix_fmt, width, height); in ffmpeg_output_video_frame()
429 if((width & 0x7) || (height & 0x7)) { in ffmpeg_output_video_frame()
[all …]

123456789