/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_polygon.c | 61 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 …]
|
D | lv_draw_sw_line.c | 58 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() 122 blend_area.y1 = point1->y - w_half1; in draw_line_hor() 123 blend_area.y2 = point1->y + w_half0; in draw_line_hor() [all …]
|
D | lv_draw_sw_blend.c | 213 int32_t y; in fill_set_px() local 216 for(y = blend_area->y1; y <= blend_area->y2; y++) { in fill_set_px() 218 … disp->driver->set_px_cb(disp->driver, (void *)dest_buf, dest_stride, x, y, color, opa); in fill_set_px() 226 for(y = 0; y < h; y++) { in fill_set_px() 231 …t_px_cb(disp->driver, (void *)dest_buf, dest_stride, blend_area->x1 + x, blend_area->y1 + y, color, in fill_set_px() 247 int32_t y; in fill_normal() local 252 for(y = 0; y < h; y++) { in fill_normal() 274 for(y = 0; y < h; y++) { in fill_normal() 294 for(y = 0; y < h; y++) { in fill_normal() 352 for(y = 0; y < h; y++) { in fill_normal() [all …]
|
D | lv_draw_sw_dither.h | 38 typedef void (*lv_dither_func_t)(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv… 48 … void lv_dither_none(struct _lv_gradient_cache_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w); 51 const lv_coord_t y, const lv_coord_t w); 53 const lv_coord_t y, const lv_coord_t w); 57 const lv_coord_t y, const lv_coord_t w); 59 const lv_coord_t y, const lv_coord_t w);
|
D | lv_draw_sw_arc.c | 86 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 …]
|
D | lv_draw_sw_img.c | 165 lv_coord_t y; in lv_draw_sw_img_decoded() local 167 for(y = blend_area.y1; y <= blend_area.y2; y++) { in lv_draw_sw_img_decoded() 169 mask_res_line = lv_draw_mask_apply(mask_buf_tmp, blend_area.x1, y, blend_w); in lv_draw_sw_img_decoded() 210 lv_coord_t y; in convert_cb() local 223 for(y = dest_area->y1; y <= dest_area->y2; y++) { in convert_cb() 256 for(y = 0; y < dest_h; y++) { in convert_cb() 282 for(y = 0; y < dest_h; y++) { in convert_cb() 291 for(y = 0; y < dest_h; y++) { in convert_cb()
|
D | lv_draw_sw_dither.c | 20 LV_ATTRIBUTE_FAST_MEM void lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t … in lv_dither_none() argument 23 LV_UNUSED(y); in lv_dither_none() 43 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_hor() argument 56 int8_t factor = dither_ordered_threshold_matrix[(y & 7) * 8 + ((j) & 7)] - 32; in lv_dither_ordered_hor() 66 LV_ATTRIBUTE_FAST_MEM void lv_dither_ordered_ver(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_c… in lv_dither_ordered_ver() argument 77 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver() 81 int8_t factor = dither_ordered_threshold_matrix[(y & 7) * 8 + ((j + x) & 7)] - 32; in lv_dither_ordered_ver() 102 LV_ATTRIBUTE_FAST_MEM void 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 105 LV_UNUSED(y); in lv_dither_err_diff_hor() 156 LV_ATTRIBUTE_FAST_MEM void 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 …]
|
D | lv_draw_sw_rect.c | 350 a.y1 = coords->y1 + lv_area_get_height(coords) / 2 - size.y / 2; in draw_bg_img() 351 a.y2 = a.y1 + size.y - 1; in draw_bg_img() 528 lv_coord_t y; in draw_shadow() local 569 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow() 570 blend_area.y1 = y; in draw_shadow() 571 blend_area.y2 = y; in draw_shadow() 575 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow() 612 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in draw_shadow() 613 blend_area.y1 = y; in draw_shadow() 614 blend_area.y2 = y; in draw_shadow() [all …]
|
/lvgl-3.5.0/src/misc/ |
D | lv_area.c | 82 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() 171 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() 266 p.y = ain_p->y1; in _lv_area_is_in() 270 p.y = ain_p->y1; in _lv_area_is_in() 274 p.y = ain_p->y2; in _lv_area_is_in() 278 p.y = ain_p->y2; in _lv_area_is_in() 304 p.y = aout_p->y1; in _lv_area_is_out() 308 p.y = aout_p->y1; in _lv_area_is_out() 312 p.y = aout_p->y2; in _lv_area_is_out() [all …]
|
D | lv_types.h | 74 #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.5.0/tests/unity/ |
D | unity_support.c | 85 int x, y, i_buf = 0; in lv_test_assert_img_eq() local 86 for (y = 0; y < p.height; y++) { in lv_test_assert_img_eq() 87 png_byte* row = p.row_pointers[y]; in lv_test_assert_img_eq() 118 fprintf(f, "//Diff in %s at (%d;%d), %x instead of %x)\n\n", fn_ref, x, y, act_px, ref_px); in lv_test_assert_img_eq() 122 for (y = 0; y < 480; y++) { in lv_test_assert_img_eq() 216 int y; in read_png_file() local 217 for (y=0; y<p->height; y++) in read_png_file() 218 p->row_pointers[y] = (png_byte*) malloc(png_get_rowbytes(p->png_ptr,p->info_ptr)); in read_png_file() 228 int y; in png_release() local 229 for (y=0; y<p->height; y++) free(p->row_pointers[y]); in png_release()
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_arc.c | 57 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 …]
|
D | lv_img_buf.c | 51 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color) in lv_img_buf_get_px_color() argument 59 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color() 73 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color() 84 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color() 95 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color() 100 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color() 118 lv_opa_t lv_img_buf_get_px_alpha(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in lv_img_buf_get_px_alpha() argument 123 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() 133 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha() 146 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha() [all …]
|
D | lv_draw_label.c | 128 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.5.0/src/core/ |
D | lv_obj_pos.c | 44 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 …]
|
D | lv_indev.c | 202 …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() 345 i->proc.types.pointer.last_raw_point.y = data->point.y; in indev_pointer_proc() 349 data->point.y = disp->driver->ver_res - data->point.y - 1; in indev_pointer_proc() 352 lv_coord_t tmp = data->point.y; in indev_pointer_proc() 353 data->point.y = data->point.x; in indev_pointer_proc() [all …]
|
/lvgl-3.5.0/src/extra/libs/qrcode/ |
D | qrcodegen.c | 64 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 …]
|
D | lv_qrcode.c | 132 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.5.0/src/widgets/ |
D | lv_canvas.c | 82 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 …]
|
D | lv_canvas.h | 75 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); 118 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y); 141 void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coo… 196 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, 208 void lv_canvas_draw_text(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t max_w, 219 void lv_canvas_draw_img(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, const void * src, 252 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_…
|
D | lv_line.c | 155 h = LV_MAX(line->point_array[i].y, h); in lv_line_event() 162 p->y = h; in lv_line_event() 189 p1.y = line->point_array[i].y + y_ofs; in lv_line_event() 190 p2.y = line->point_array[i + 1].y + y_ofs; in lv_line_event() 193 p1.y = h - line->point_array[i].y + y_ofs; in lv_line_event() 194 p2.y = h - line->point_array[i + 1].y + y_ofs; in lv_line_event()
|
/lvgl-3.5.0/examples/widgets/canvas/ |
D | lv_example_canvas_2.c | 36 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.5.0/tests/src/ |
D | lv_test_indev.c | 22 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.5.0/src/draw/sdl/ |
D | lv_draw_sdl_stack_blur.c | 99 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() 150 src_ptr = src + (xp + y * w); // img.pix_ptr(xp, y); in stack_blur_job() 151 dst_ptr = src + y * stride; // img.pix_ptr(0, y); in stack_blur_job() 216 for(y = 0; y < h; y++) { in stack_blur_job()
|
D | lv_draw_sdl_polygon.c | 62 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() 110 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks() local 112 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in dump_masks() 116 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks() 119 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks() 123 uint8_t * pixel = &pixels[y * pitch + x * 4]; in dump_masks()
|