Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 151) sorted by relevance

1234567

/lvgl-latest/src/draw/sw/
Dlv_draw_sw_border.c72 area_inner.y2 -= ((dsc->side & LV_BORDER_SIDE_BOTTOM) ? dsc->width : - (dsc->width + rout)); in lv_draw_sw_border()
131 core_area.y2 = LV_MIN(outer_area->y2 - rout, inner_area->y2); in draw_border_complex()
135 bool bottom_side = outer_area->y2 >= inner_area->y2; in draw_border_complex()
153 blend_area.y2 = inner_area->y1 - 1; in draw_border_complex()
160 blend_area.y1 = inner_area->y2 + 1; in draw_border_complex()
161 blend_area.y2 = outer_area->y2; in draw_border_complex()
170 blend_area.y2 = core_area.y2; in draw_border_complex()
178 blend_area.y2 = core_area.y2; in draw_border_complex()
186 blend_area.y2 = core_area.y2; in draw_border_complex()
202 int32_t bottom_y = outer_area->y2 - h; in draw_border_complex()
[all …]
Dlv_draw_sw_box_shadow.c65 core_area.y2 = coords->y2 + dsc->ofs_y + dsc->spread; in lv_draw_sw_box_shadow()
72 shadow_area.y2 = core_area.y2 + dsc->width / 2 + 1; in lv_draw_sw_box_shadow()
165 blend_area.y2 = shadow_area.y1 + corner_size - 1; in lv_draw_sw_box_shadow()
168 blend_area.y2 = LV_MIN(blend_area.y2, h_half); in lv_draw_sw_box_shadow()
185 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in lv_draw_sw_box_shadow()
187 blend_area.y2 = y; in lv_draw_sw_box_shadow()
207 blend_area.y1 = shadow_area.y2 - corner_size + 1; in lv_draw_sw_box_shadow()
208 blend_area.y2 = shadow_area.y2; in lv_draw_sw_box_shadow()
217 sh_buf_tmp += (blend_area.y2 - clip_area_sub.y2) * corner_size; in lv_draw_sw_box_shadow()
228 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in lv_draw_sw_box_shadow()
[all …]
Dlv_draw_sw_line.c61 clip_line.y2 = (int32_t)LV_MAX(dsc->p1.y, dsc->p2.y) + dsc->width / 2; in lv_draw_sw_line()
87 cir_area.y2 = (int32_t)dsc->p1.y + r - r_corr ; in lv_draw_sw_line()
95 cir_area.y2 = (int32_t)dsc->p2.y + r - r_corr ; in lv_draw_sw_line()
115 blend_area.y2 = (int32_t)dsc->p1.y + w_half0; in draw_line_hor()
139 int32_t y2 = blend_area.y2; in draw_line_hor() local
140 blend_area.y2 = blend_area.y1; in draw_line_hor()
149 for(h = blend_area.y1; h <= y2; h++) { in draw_line_hor()
173 blend_area.y2++; in draw_line_hor()
190 blend_area.y2 = (int32_t)LV_MAX(dsc->p1.y, dsc->p2.y) - 1; in draw_line_ver()
214 int32_t y2 = blend_area.y2; in draw_line_ver() local
[all …]
Dlv_draw_sw_mask_rect.c68 lv_area_set(&clear_area, draw_unit->clip_area->x1, dsc->area.y2 + 1, draw_unit->clip_area->x2, in lv_draw_sw_mask_rect()
69 draw_unit->clip_area->y2); in lv_draw_sw_mask_rect()
74 … lv_area_set(&clear_area, draw_unit->clip_area->x1, dsc->area.y1, dsc->area.x1 - 1, dsc->area.y2); in lv_draw_sw_mask_rect()
79 … lv_area_set(&clear_area, dsc->area.x2 + 1, dsc->area.y1, draw_unit->clip_area->x2, dsc->area.y2); in lv_draw_sw_mask_rect()
93 for(y = draw_area.y1; y <= draw_area.y2; y++) { in lv_draw_sw_mask_rect()
Dlv_draw_sw_fill.c155 int32_t bottom_y = bg_coords.y2 - h; in lv_draw_sw_fill()
156 …if(top_y < clipped_coords.y1 && bottom_y > clipped_coords.y2) continue; /*This line is clipped n… in lv_draw_sw_fill()
169 blend_area.y2 = top_y; in lv_draw_sw_fill()
209 if(bottom_y <= clipped_coords.y2) { in lv_draw_sw_fill()
211 blend_area.y2 = bottom_y; in lv_draw_sw_fill()
262 blend_area.y2 = bg_coords.y2 - rout; in lv_draw_sw_fill()
289 int32_t h_end = LV_MIN(bg_coords.y2 - rout, clipped_coords.y2); in lv_draw_sw_fill()
292 blend_area.y2 = h; in lv_draw_sw_fill()
Dlv_draw_sw_img.c125 area_rot.y2 += coords->y1; in lv_draw_sw_layer()
174 txt_area.y2 = draw_area.y2; in lv_draw_sw_layer()
175 txt_area.y1 = draw_area.y2 - txt_size.y + 1; in lv_draw_sw_layer()
321 int32_t y_last = blend_area.y2; in radius_only()
322 blend_area.y2 = blend_area.y1; in radius_only()
370 blend_area.y2 ++; in radius_only()
415 int32_t y_last = blend_area.y2; in recolor_only()
416 blend_area.y2 = blend_area.y1 + buf_h - 1; in recolor_only()
426 blend_area.y1 = blend_area.y2 + 1; in recolor_only()
427 blend_area.y2 = blend_area.y1 + buf_h - 1; in recolor_only()
[all …]
/lvgl-latest/src/misc/
Dlv_area.c41 void lv_area_set(lv_area_t * area_p, int32_t x1, int32_t y1, int32_t x2, int32_t y2) in lv_area_set() argument
46 area_p->y2 = y2; in lv_area_set()
56 area_p->y2 = area_p->y1 + h - 1; in lv_area_set_height()
73 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()
83 area->y2 += h_extra; in lv_area_increase()
91 area->y2 += y_ofs; in lv_area_move()
100 res_p->y2 = LV_MIN(a1_p->y2, a2_p->y2); in lv_area_intersect()
104 if((res_p->x1 > res_p->x2) || (res_p->y1 > res_p->y2)) { in lv_area_intersect()
133 n.y2 = a1_p->y1 + th; in lv_area_diff()
138 int32_t bh = a1_h - (a2_p->y2 - a1_p->y1); in lv_area_diff()
[all …]
/lvgl-latest/src/draw/renesas/dave2d/
Dlv_draw_dave2d_border.c33 area_inner.y2 -= ((dsc->side & LV_BORDER_SIDE_BOTTOM) ? dsc->width : - (dsc->width + rout)); in lv_draw_dave2d_border()
91 (d2_border)clip_area.y2); in dave2d_draw_border_simple()
96 bool bottom_side = local_outer_area.y2 >= local_inner_area.y2; in dave2d_draw_border_simple()
104 a.y2 = local_inner_area.y1 - 1; in dave2d_draw_border_simple()
113 a.y1 = local_inner_area.y2 + 1; in dave2d_draw_border_simple()
114 a.y2 = local_outer_area.y2; in dave2d_draw_border_simple()
126 a.y2 = (bottom_side) ? local_inner_area.y2 : local_outer_area.y2; in dave2d_draw_border_simple()
202 (d2_border)draw_area.y2); in dave2d_draw_border_complex()
210 core_area.y2 = LV_MIN(outer_area.y2 - rout, inner_area.y2); in dave2d_draw_border_complex()
213 bool bottom_side = outer_area.y2 >= inner_area.y2; in dave2d_draw_border_complex()
[all …]
Dlv_draw_dave2d_fill.c50 float y2; in lv_draw_dave2d_fill() local
61 y1 = (float)LV_MIN(coordinates.y1, coordinates.y2); in lv_draw_dave2d_fill()
62 y2 = (float)LV_MAX(coordinates.y1, coordinates.y2); in lv_draw_dave2d_fill()
72 y0 = y2 - ((y2 - y1) / (a2 - a1) * (a2)); //point where alpha is 0 in lv_draw_dave2d_fill()
73 y3 = y1 + ((y2 - y1) / (a2 - a1) * (255 - a1)); //point where alpha is 255 in lv_draw_dave2d_fill()
131 (d2_border)draw_area.y2); in lv_draw_dave2d_fill()
168 arc_area.y2 = coordinates.y1 + radius; in lv_draw_dave2d_fill()
173 (d2_border)clip_arc.y2); in lv_draw_dave2d_fill()
195 arc_area.y2 = coordinates.y1 + radius; in lv_draw_dave2d_fill()
199 (d2_border)clip_arc.y2); in lv_draw_dave2d_fill()
[all …]
Dlv_draw_dave2d_triangle.c18 tri_area.y2 = LV_MAX3(dsc->p[0].y, dsc->p[1].y, dsc->p[2].y); in lv_draw_dave2d_triangle()
99 float y2; in lv_draw_dave2d_triangle() local
111 y2 = LV_MAX3(p[0].y, p[1].y, p[2].y); in lv_draw_dave2d_triangle()
121 y0 = y2 - ((y2 - y1) / (a2 - a1) * (a2)); //point where alpha is 0 in lv_draw_dave2d_triangle()
122 y3 = y1 + ((y2 - y1) / (a2 - a1) * (255 - a1)); //point where alpha is 255 in lv_draw_dave2d_triangle()
148 (d2_border)clipped_area.y2); in lv_draw_dave2d_triangle()
/lvgl-latest/libs/nema_gfx/include/
Dnema_raster.h61 void nema_raster_triangle (int x0, int y0, int x1, int y1, int x2, int y2);
64 void nema_raster_quad (int x0,int y0,int x1,int y1,int x2,int y2,int x3,int y3);
83 nema_raster_triangle_f(float x0, float y0, float x1, float y1, float x2, float y2);
95 nema_raster_triangle_p2_f(float x2, float y2);
100 float x2, float y2, float x3, float y3);
Dnema_interpolators.h76 void nema_interpolate_tri_colors(float x0, float y0, float x1, float y1, float x2, float y2, color_…
91 …ri_depth(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2);
116 float x2, float y2, float w2, float tx2, float ty2,
/lvgl-latest/src/draw/
Dlv_draw_arc.c64 a.y2 = dsc->center.y + dsc->radius - 1; in lv_draw_arc()
90 area->y2 = y + rout; in lv_draw_arc_get_area()
111 area->y2 = y + ((lv_trigo_sin(end_angle_int) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
115 area->y2 = y + ((lv_trigo_sin(start_angle_int) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
123 area->y2 = y + ((lv_trigo_sin(start_angle_int) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
133 area->y2 = y + ((lv_trigo_sin(end_angle_int) * rin) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
141 area->y2 = y + rout + extra_area; in lv_draw_arc_get_area()
148 area->y2 = y + ((lv_trigo_sin(start_angle_int) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
154 area->y2 = y + (LV_MAX(lv_trigo_sin(end_angle_int) * rin, in lv_draw_arc_get_area()
162 area->y2 = y + ((lv_trigo_sin(end_angle_int) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgFill.cpp71 ret->pImpl->y2 = y2; in duplicate()
225 Result LinearGradient::linear(float x1, float y1, float x2, float y2) noexcept in linear() argument
230 pImpl->y2 = y2; in linear()
236 Result LinearGradient::linear(float* x1, float* y1, float* x2, float* y2) const noexcept in linear()
241 if (y2) *y2 = pImpl->y2; in linear()
DtvgScene.h166 int32_t y2 = 0; in bounds() local
175 if (y2 < region.y + region.h) y2 = (region.y + region.h); in bounds()
192 auto ret = RenderRegion{x1 + ex, y1 + ey, (x2 - x1) + ew, (y2 - y1) + eh}; in bounds()
204 auto y2 = -FLT_MAX; in bounds() local
218 if (y2 < y + h) y2 = (y + h); in bounds()
224 if (ph) *ph = (y2 - y1); in bounds()
DtvgRender.cpp57 auto y2 = rhs.y + rhs.h; in intersect() local
62 h = ((y1 < y2) ? y1 : y2) - y; in intersect()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_img.c158 src_area.y2 = img_dsc->header.h - 1; in lv_draw_vglite_img()
233 area->y2 -= shift_y; in _move_buf_close_to_area()
246 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in _vglite_blit_split()
247 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in _vglite_blit_split()
261 (src_area->y2 < VGLITE_BLIT_SPLIT_THR)) { in _vglite_blit_split()
274 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in _vglite_blit_split()
275 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in _vglite_blit_split()
288 src_area->x1, src_area->y1, src_area->x2, src_area->y2, in _vglite_blit_split()
289 dest_area->x1, dest_area->y1, dest_area->x2, dest_area->y2, in _vglite_blit_split()
319 tile_src_area.y2 = VGLITE_BLIT_SPLIT_THR - 1; in _vglite_blit_split()
[all …]
Dlv_draw_vglite_border.c85 inward_coords.y2 = coords->y2 - floor(width / 2.0f); in lv_draw_vglite_border()
129 … ((vg_lite_float_t)clip_area->x2) + 1.0f, ((vg_lite_float_t)clip_area->y2) + 1.0f)); in _vglite_draw_border()
143 int32_t rect_height = coords->y2 - coords->y1; in _vglite_draw_border()
159 rect[num_rect].height = coords->y2 - coords->y1 + line_width + 1; in _vglite_draw_border()
167 rect[num_rect].height = coords->y2 - coords->y1 + line_width + 1; in _vglite_draw_border()
173 rect[num_rect].y = coords->y2 - final_radius + 1; in _vglite_draw_border()
Dlv_draw_vglite_layer.c66 .y2 = draw_buf->header.h - 1 in lv_draw_vglite_layer()
91 area_rot.y2 += coords->y1; in lv_draw_vglite_layer()
140 txt_area.y2 = draw_area.y2; in lv_draw_vglite_layer()
141 txt_area.y1 = draw_area.y2 - txt_size.y + 1; in lv_draw_vglite_layer()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_span.c427 … .y1 = 20, .x2 = 280, .y2 = 20}, .middle = {.x1 = 40, .y1 = 20, .x2 = 241, .y2 = 36}, .trailing = … in test_spangroup_get_span_coords()
428 …y1 = 20, .x2 = 280, .y2 = 36}, .middle = {.x1 = 20, .y1 = 36, .x2 = 280, .y2 = 63}, .trailing = {.… in test_spangroup_get_span_coords()
429 …y1 = 63, .x2 = 280, .y2 = 90}, .middle = {.x1 = 20, .y1 = 90, .x2 = 280, .y2 = 90}, .trailing = {.… in test_spangroup_get_span_coords()
430 … = 90, .x2 = 280, .y2 = 112}, .middle = {.x1 = 20, .y1 = 112, .x2 = 280, .y2 = 112}, .trailing = {… in test_spangroup_get_span_coords()
431 …= 112, .x2 = 280, .y2 = 134}, .middle = {.x1 = 20, .y1 = 134, .x2 = 280, .y2 = 134}, .trailing = {… in test_spangroup_get_span_coords()
456 …lv_obj_set_size(obj_head, coords.heading.x2 - coords.heading.x1, coords.heading.y2 - coords.headin… in test_spangroup_get_span_coords()
464 …lv_obj_set_size(obj_middle, coords.middle.x2 - coords.middle.x1, coords.middle.y2 - coords.middle.… in test_spangroup_get_span_coords()
472 …lv_obj_set_size(obj_trailing, coords.trailing.x2 - coords.trailing.x1, coords.trailing.y2 - coords… in test_spangroup_get_span_coords()
/lvgl-latest/src/core/
Dlv_refr.c195 bottom.y1 = bottom.y2 - rout + 1; in lv_obj_redraw()
216 top.y2 = top.y1 + rout - 1; in lv_obj_redraw()
239 mid.y2 -= rout; in lv_obj_redraw()
291 scr_area.y2 = lv_display_get_vertical_resolution(disp) - 1; in lv_inv_area()
603 for(row = inv_a.y1; row + max_row - 1 <= inv_a.y2; row += max_row) { in refr_invalid_areas()
606 sub_area.y2 = row + max_row - 1; in refr_invalid_areas()
607 if(sub_area.y2 > inv_a.y2) sub_area.y2 = inv_a.y2; in refr_invalid_areas()
608 row_last = sub_area.y2; in refr_invalid_areas()
609 if(inv_a.y2 == row_last) disp_refr->last_part = 1; in refr_invalid_areas()
615 if(inv_a.y2 != row_last) { in refr_invalid_areas()
[all …]
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_box_shadow.c49 core_area.y2 = coords->y2 + dsc->ofs_y + dsc->spread; 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()
Dlv_draw_vg_lite_mask_rect.c75 lv_area_set(&clear_area, draw_unit->clip_area->x1, dsc->area.y2 + 1, draw_unit->clip_area->x2, in lv_draw_vg_lite_mask_rect()
76 draw_unit->clip_area->y2); in lv_draw_vg_lite_mask_rect()
81 … lv_area_set(&clear_area, draw_unit->clip_area->x1, dsc->area.y1, dsc->area.x1 - 1, dsc->area.y2); in lv_draw_vg_lite_mask_rect()
86 … lv_area_set(&clear_area, dsc->area.x2 + 1, dsc->area.y1, draw_unit->clip_area->x2, dsc->area.y2); in lv_draw_vg_lite_mask_rect()
100 for(y = draw_area.y1; y <= draw_area.y2; y++) { in lv_draw_vg_lite_mask_rect()
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp_layer.c70 .y2 = draw_buf->header.h - 1 in lv_draw_pxp_layer()
91 area_rot.y2 += coords->y1; in lv_draw_pxp_layer()
140 txt_area.y2 = draw_area.y2; in lv_draw_pxp_layer()
141 txt_area.y1 = draw_area.y2 - txt_size.y + 1; in lv_draw_pxp_layer()
/lvgl-latest/tests/src/test_cases/
Dtest_math.c25 static float lv_cubic_bezier_f(float x, float x1, float y1, float x2, float y2) in lv_cubic_bezier_f() argument
39 by = 3.f * (y2 - y1) - cy; in lv_cubic_bezier_f()
80 int x1, y1, x2, y2, y; in test_cubic_bezier_ease_functions() local
87 y2 = LV_BEZIER_VAL_FLOAT(fy2); in test_cubic_bezier_ease_functions()
91 y = lv_cubic_bezier(LV_BEZIER_VAL_FLOAT(t), x1, y1, x2, y2); in test_cubic_bezier_ease_functions()

1234567