Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 149) sorted by relevance

123456

/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_polygon.c61 if(points[i].x != points[i + 1].x || points[i].y != points[i + 1].y) { in lv_draw_sw_polygon()
67 if(points[0].x != points[point_cnt - 1].x || points[0].y != points[point_cnt - 1].y) { in lv_draw_sw_polygon()
82 poly_coords.y1 = LV_MIN(poly_coords.y1, p[i].y); in lv_draw_sw_polygon()
84 poly_coords.y2 = LV_MAX(poly_coords.y2, p[i].y); in lv_draw_sw_polygon()
99 lv_coord_t y_min = p[0].y; in lv_draw_sw_polygon()
103 if(p[i].y < y_min) { in lv_draw_sw_polygon()
104 y_min = p[i].y; in lv_draw_sw_polygon()
135 lv_coord_t dyl = p[i_next_left].y - p[y_min_i].y; in lv_draw_sw_polygon()
136 lv_coord_t dyr = p[i_next_right].y - p[y_min_i].y; in lv_draw_sw_polygon()
157 if(p[i_next_left].y >= p[i_prev_left].y) { in lv_draw_sw_polygon()
[all …]
Dlv_draw_sw_line.c58 if(point1->x == point2->x && point1->y == point2->y) return; in lv_draw_sw_line()
63 clip_line.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_sw_line()
64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line()
72 if(point1->y == point2->y) draw_line_hor(draw_ctx, dsc, point1, point2); in lv_draw_sw_line()
89 cir_area.y1 = point1->y - r; in lv_draw_sw_line()
91 cir_area.y2 = point1->y + r - r_corr ; in lv_draw_sw_line()
97 cir_area.y1 = point2->y - r; in lv_draw_sw_line()
99 cir_area.y2 = point2->y + r - r_corr ; in lv_draw_sw_line()
121 blend_area.y1 = point1->y - w_half1; in draw_line_hor()
122 blend_area.y2 = point1->y + w_half0; in draw_line_hor()
[all …]
Dlv_draw_sw_blend.c216 int32_t y; in fill_set_px() local
219 for(y = blend_area->y1; y <= blend_area->y2; y++) { in fill_set_px()
221 … disp->driver->set_px_cb(disp->driver, (void *)dest_buf, dest_stride, x, y, color, opa); in fill_set_px()
229 for(y = 0; y < h; y++) { in fill_set_px()
233 …t_px_cb(disp->driver, (void *)dest_buf, dest_stride, blend_area->x1 + x, blend_area->y1 + y, color, in fill_set_px()
250 int32_t y; in fill_normal() local
255 for(y = 0; y < h; y++) { in fill_normal()
277 for(y = 0; y < h; y++) { in fill_normal()
297 for(y = 0; y < h; y++) { in fill_normal()
355 for(y = 0; y < h; y++) { in fill_normal()
[all …]
Dlv_draw_sw_dither.h37 typedef void (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv…
46 …TTRIBUTE_FAST_MEM */ lv_dither_none(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y,
50 const lv_coord_t y, const lv_coord_t w);
52 const lv_coord_t y, const lv_coord_t w);
56 const lv_coord_t y, const lv_coord_t w);
58 const lv_coord_t y, const lv_coord_t w);
Dlv_draw_sw_arc.c86 area_out.y1 = center->y - radius; in lv_draw_sw_arc()
88 area_out.y2 = center->y + radius - 1; in lv_draw_sw_arc()
131 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sw_arc()
185 round_area.y1 += center->y; in lv_draw_sw_arc()
186 round_area.y2 += center->y; in lv_draw_sw_arc()
201 round_area.y1 += center->y; in lv_draw_sw_arc()
202 round_area.y2 += center->y; in lv_draw_sw_arc()
237 …quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_0()
240 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_0()
253 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_0()
[all …]
Dlv_draw_sw_img.c166 lv_coord_t y; in lv_draw_sw_img_decoded() local
168 for(y = blend_area.y1; y <= blend_area.y2; y++) { in lv_draw_sw_img_decoded()
170 mask_res_line = lv_draw_mask_apply(mask_buf_tmp, blend_area.x1, y, blend_w); in lv_draw_sw_img_decoded()
211 lv_coord_t y; in convert_cb() local
224 for(y = dest_area->y1; y <= dest_area->y2; y++) { in convert_cb()
257 for(y = 0; y < dest_h; y++) { in convert_cb()
283 for(y = 0; y < dest_h; y++) { in convert_cb()
292 for(y = 0; y < dest_h; y++) { in convert_cb()
Dlv_draw_sw_dither.c19 void LV_ATTRIBUTE_FAST_MEM lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t … in lv_dither_none() argument
22 LV_UNUSED(y); in lv_dither_none()
41 void LV_ATTRIBUTE_FAST_MEM lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_hor() argument
54 int8_t factor = dither_ordered_threshold_matrix[(y & 7) * 8 + ((j) & 7)] - 32; in lv_dither_ordered_hor()
65 void LV_ATTRIBUTE_FAST_MEM lv_dither_ordered_ver(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_ver() argument
76 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver()
80 int8_t factor = dither_ordered_threshold_matrix[(y & 7) * 8 + ((j + x) & 7)] - 32; in lv_dither_ordered_ver()
100 void LV_ATTRIBUTE_FAST_MEM lv_dither_err_diff_hor(lv_grad_t * grad, lv_coord_t xs, lv_coord_t y, lv… in lv_dither_err_diff_hor() argument
103 LV_UNUSED(y); in lv_dither_err_diff_hor()
154 void LV_ATTRIBUTE_FAST_MEM lv_dither_err_diff_ver(lv_grad_t * grad, lv_coord_t xs, lv_coord_t y, lv… in lv_dither_err_diff_ver() argument
[all …]
Dlv_draw_sw_rect.c344 a.y1 = coords->y1 + lv_area_get_height(coords) / 2 - size.y / 2; in draw_bg_img()
345 a.y2 = a.y1 + size.y - 1; in draw_bg_img()
521 lv_coord_t y; in draw_shadow() local
562 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
563 blend_area.y1 = y; in draw_shadow()
564 blend_area.y2 = y; in draw_shadow()
568 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
605 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in draw_shadow()
606 blend_area.y1 = y; in draw_shadow()
607 blend_area.y2 = y; in draw_shadow()
[all …]
/lvgl-3.7.0/tests/unity/
Dunity_support.c98 int x, y, i_buf = 0; in lv_test_assert_img_eq() local
99 for(y = 0; y < p.height; y++) { in lv_test_assert_img_eq()
100 png_byte * row = p.row_pointers[y]; in lv_test_assert_img_eq()
198 int y; in read_png_file() local
199 for(y = 0; y < p->height; y++) in read_png_file()
200 p->row_pointers[y] = (png_byte *) malloc(png_get_rowbytes(p->png_ptr, p->info_ptr)); in read_png_file()
266 for(uint32_t y = 0; y < height; y++) { in write_png_file() local
267 row_pointers[y] = malloc(3 * width); in write_png_file()
268 uint8_t * line = raw_img8 + y * width * 4; in write_png_file()
270 row_pointers[y][x * 3 + 0] = line[x * 4 + 2]; in write_png_file()
[all …]
/lvgl-3.7.0/src/misc/
Dlv_area.c82 void _lv_area_set_pos(lv_area_t * area_p, lv_coord_t x, lv_coord_t y) in _lv_area_set_pos() argument
87 area_p->y1 = y; in _lv_area_set_pos()
243 if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) && ((p_p->y >= a_p->y1 && p_p->y <= a_p->y2))) { in _lv_area_is_point_on()
338 p.y = ain_p->y1; in _lv_area_is_in()
342 p.y = ain_p->y1; in _lv_area_is_in()
346 p.y = ain_p->y2; in _lv_area_is_in()
350 p.y = ain_p->y2; in _lv_area_is_in()
376 p.y = aout_p->y1; in _lv_area_is_out()
380 p.y = aout_p->y1; in _lv_area_is_out()
384 p.y = aout_p->y2; in _lv_area_is_out()
[all …]
Dlv_types.h74 #define _LV_CONCAT(x, y) x ## y argument
75 #define LV_CONCAT(x, y) _LV_CONCAT(x, y) argument
77 #define _LV_CONCAT3(x, y, z) x ## y ## z argument
78 #define LV_CONCAT3(x, y, z) _LV_CONCAT3(x, y, z) argument
/lvgl-3.7.0/src/draw/
Dlv_draw_arc.c57 void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint1… in lv_draw_arc_get_area() argument
65 area->y1 = y - rout; in lv_draw_arc_get_area()
67 area->y2 = y + rout; in lv_draw_arc_get_area()
85 area->y1 = y + ((lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area()
88 area->y2 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
92 area->y2 = y + ((lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
95 area->y1 = y + ((lv_trigo_sin(end_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area()
100 area->y2 = y + ((lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
102 area->y1 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area()
107 area->y1 = y + ((lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area()
[all …]
Dlv_img_buf.c41 lv_color_t lv_img_buf_get_px_color(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t… in lv_img_buf_get_px_color() argument
49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
90 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
100 lv_opa_t lv_img_buf_get_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in lv_img_buf_get_px_alpha() argument
105 uint32_t px = dsc->header.w * y * LV_IMG_PX_SIZE_ALPHA_BYTE + x * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_img_buf_get_px_alpha()
115 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
128 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
[all …]
Dlv_draw_label.c128 pos.y = coords->y1; in lv_draw_label()
134 pos.y += y_ofs; in lv_draw_label()
151 pos.y += hint->y; in lv_draw_label()
157 while(pos.y + line_height_font < draw_ctx->clip_area->y1) { in lv_draw_label()
161 pos.y += line_height; in lv_draw_label()
164 if(hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && hint->line_start < 0) { in lv_draw_label()
166 hint->y = pos.y - coords->y1; in lv_draw_label()
293 sel_coords.y1 = pos.y; in lv_draw_label()
295 sel_coords.y2 = pos.y + line_height - 1; in lv_draw_label()
313 p1.y = pos.y + (dsc->font->line_height / 2) + line_dsc.width / 2; in lv_draw_label()
[all …]
/lvgl-3.7.0/src/extra/libs/tiny_ttf/
Dstb_rect_pack.h133 stbrp_coord x, y; member
181 stbrp_coord x, y; member
281 context->extra[0].y = 0; in stbrp_init_target()
284 context->extra[1].y = (1 << 30); in stbrp_init_target()
313 if(node->y > min_y) { in stbrp__skyline_find_min_y()
317 waste_area += visited_width * (node->y - min_y); in stbrp__skyline_find_min_y()
318 min_y = node->y; in stbrp__skyline_find_min_y()
330 waste_area += under_width * (min_y - node->y); in stbrp__skyline_find_min_y()
341 int x, y; member
359 fr.x = fr.y = 0; in stbrp__skyline_find_best_pos()
[all …]
/lvgl-3.7.0/src/extra/libs/qrcode/
Dqrcodegen.c64 testable uint8_t finiteFieldMultiply(uint8_t x, uint8_t y);
78 testable bool getModule(const uint8_t qrcode[], int x, int y);
79 testable void setModule(uint8_t qrcode[], int x, int y, bool isBlack);
80 testable void setModuleBounded(uint8_t qrcode[], int x, int y, bool isBlack);
397 testable uint8_t finiteFieldMultiply(uint8_t x, uint8_t y) { in finiteFieldMultiply() argument
402 z ^= ((y >> i) & 1) * x; in finiteFieldMultiply()
583 int y = upward ? qrsize - 1 - vert : vert; // Actual y coordinate in drawCodewords() local
584 if (!getModule(qrcode, x, y) && i < dataLen * 8) { in drawCodewords()
586 setModule(qrcode, x, y, black); in drawCodewords()
606 for (int y = 0; y < qrsize; y++) { in applyMask() local
[all …]
Dlv_qrcode.c132 int y; in lv_qrcode_update() local
133 for(y = margin; y < scaled + margin; y += scale) { in lv_qrcode_update()
139 bool a = qrcodegen_getModule(qr0, (x - margin) / scale, (y - margin) / scale); in lv_qrcode_update()
145 lv_canvas_set_px_color(qrcode, x, y, c); in lv_qrcode_update()
151 uint32_t px = row_byte_cnt * y + (x >> 3); in lv_qrcode_update()
164 uint32_t px = row_byte_cnt * y + (x >> 3); in lv_qrcode_update()
170 const uint8_t * row_ori = buf_u8 + row_byte_cnt * y; in lv_qrcode_update()
172 lv_memcpy((uint8_t *)buf_u8 + row_byte_cnt * (y + s), row_ori, row_byte_cnt); in lv_qrcode_update()
/lvgl-3.7.0/src/core/
Dlv_obj_pos.c44 void lv_obj_set_pos(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_obj_set_pos() argument
49 lv_obj_set_y(obj, y); in lv_obj_set_pos()
66 void lv_obj_set_y(lv_obj_t * obj, lv_coord_t y) in lv_obj_set_y() argument
75 if((res_y == LV_RES_OK && v_y.num != y) || res_y == LV_RES_INV) { in lv_obj_set_y()
76 lv_obj_set_style_y(obj, y, 0); in lv_obj_set_y()
355 lv_coord_t y = 0; in lv_obj_align_to() local
374 y = lv_obj_get_content_height(base) / 2 - lv_obj_get_height(obj) / 2 + btop; in lv_obj_align_to()
378 y = btop; in lv_obj_align_to()
382 y = btop; in lv_obj_align_to()
387 y = btop; in lv_obj_align_to()
[all …]
Dlv_indev.c202 …t_pos(indev->cursor, indev->proc.types.pointer.act_point.x, indev->proc.types.pointer.act_point.y); in lv_indev_set_cursor()
225 point->y = 0; in lv_indev_get_point()
230 point->y = -1; in lv_indev_get_point()
234 point->y = indev->proc.types.pointer.act_point.y; in lv_indev_get_point()
268 point->y = 0; in lv_indev_get_vect()
274 point->y = indev->proc.types.pointer.vect.y; in lv_indev_get_vect()
344 i->proc.types.pointer.last_raw_point.y = data->point.y; in indev_pointer_proc()
348 data->point.y = disp->driver->ver_res - data->point.y - 1; in indev_pointer_proc()
351 lv_coord_t tmp = data->point.y; in indev_pointer_proc()
352 data->point.y = data->point.x; in indev_pointer_proc()
[all …]
/lvgl-3.7.0/src/widgets/
Dlv_canvas.c82 void lv_canvas_set_px_color(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_color_t c) in lv_canvas_set_px_color() argument
88 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_set_px_color()
92 void lv_canvas_set_px_opa(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_canvas_set_px_opa() argument
98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa()
116 lv_color_t lv_canvas_get_px(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_canvas_get_px() argument
123 return lv_img_buf_get_px_color(&canvas->dsc, x, y, color); in lv_canvas_get_px()
138 void lv_canvas_copy_buf(lv_obj_t * obj, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_… in lv_canvas_copy_buf() argument
145 …if(x + w - 1 >= (lv_coord_t)canvas->dsc.header.w || y + h - 1 >= (lv_coord_t)canvas->dsc.header.h)… in lv_canvas_copy_buf()
151 uint32_t px = canvas->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
173 int32_t y; in lv_canvas_transform() local
[all …]
Dlv_canvas.h75 void lv_canvas_set_px_color(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c);
80 static inline void lv_canvas_set_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c) in lv_canvas_set_px() argument
82 lv_canvas_set_px_color(canvas, x, y, c); in lv_canvas_set_px()
92 void lv_canvas_set_px_opa(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_opa_t opa);
117 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y);
140 void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coo…
195 void lv_canvas_draw_rect(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h,
207 void lv_canvas_draw_text(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t max_w,
218 void lv_canvas_draw_img(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, const void * src,
251 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_…
/lvgl-3.7.0/examples/widgets/canvas/
Dlv_example_canvas_2.c36 uint32_t y; in lv_example_canvas_2() local
37 for(y = 10; y < 30; y++) { in lv_example_canvas_2()
39 lv_canvas_set_px_color(canvas, x, y, c0); in lv_example_canvas_2()
/lvgl-3.7.0/tests/src/
Dlv_test_indev.c22 data->point.y = y_act; in lv_test_mouse_read_cb()
26 void lv_test_mouse_move_to(lv_coord_t x, lv_coord_t y) in lv_test_mouse_move_to() argument
29 y_act = y; in lv_test_mouse_move_to()
32 void lv_test_mouse_move_by(lv_coord_t x, lv_coord_t y) in lv_test_mouse_move_by() argument
35 y_act += y; in lv_test_mouse_move_by()
48 void lv_test_mouse_click_at(lv_coord_t x, lv_coord_t y) in lv_test_mouse_click_at() argument
52 lv_test_mouse_move_to(x, y); in lv_test_mouse_click_at()
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_stack_blur.c99 unsigned int x, y, xp, yp, i; in stack_blur_job() local
123 for(y = minY; y < maxY; y++) { in stack_blur_job()
128 src_ptr = src + stride * y; // start of line (0,y) in stack_blur_job()
148 src_ptr = src + (xp + y * w); // img.pix_ptr(xp, y); in stack_blur_job()
149 dst_ptr = src + y * stride; // img.pix_ptr(0, y); in stack_blur_job()
214 for(y = 0; y < h; y++) { in stack_blur_job()
Dlv_draw_sdl_polygon.c62 poly_coords.y1 = LV_MIN(poly_coords.y1, polygon_param.cfg.points[i].y); in lv_draw_sdl_polygon()
64 poly_coords.y2 = LV_MAX(poly_coords.y2, polygon_param.cfg.points[i].y); in lv_draw_sdl_polygon()
116 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks() local
118 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in dump_masks()
122 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
125 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
129 uint8_t * pixel = &pixels[y * pitch + x * 4]; in dump_masks()

123456