Home
last modified time | relevance | path

Searched refs:LV_MIN (Results 1 – 25 of 29) sorted by relevance

12

/lvgl-latest/src/misc/
Dlv_math.h121 #define LV_MIN(a, b) ((a) < (b) ? (a) : (b)) macro
122 #define LV_MIN3(a, b, c) (LV_MIN(LV_MIN(a,b), c))
123 #define LV_MIN4(a, b, c, d) (LV_MIN(LV_MIN(a,b), LV_MIN(c,d)))
129 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max))))
Dlv_fs.c144 …uint32_t buffer_remaining_length = LV_MIN((uint32_t)buffer_size - buffer_offset, (uint32_t)end - f… in lv_fs_read_cached()
167 … uint16_t data_chunk_remaining = LV_MIN(btr - buffer_remaining_length, bytes_read_to_buffer); in lv_fs_read_cached()
170 *br = LV_MIN(buffer_remaining_length + bytes_read_to_buffer, btr); in lv_fs_read_cached()
192 *br = LV_MIN(btr, bytes_read_to_buffer); in lv_fs_read_cached()
Dlv_area.c134 res_p->x2 = LV_MIN(a1_p->x2, a2_p->x2); in _lv_area_intersect()
135 res_p->y2 = LV_MIN(a1_p->y2, a2_p->y2); in _lv_area_intersect()
226 a_res_p->x1 = LV_MIN(a1_p->x1, a2_p->x1); in _lv_area_join()
227 a_res_p->y1 = LV_MIN(a1_p->y1, a2_p->y1); in _lv_area_join()
255 lv_coord_t max_radius = LV_MIN(w, h); in _lv_area_is_point_on()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_line.c61 clip_line.x1 = LV_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_sw_line()
63 clip_line.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_sw_line()
119 blend_area.x1 = LV_MIN(point1->x, point2->x); in draw_line_hor()
207 blend_area.y1 = LV_MIN(point1->y, point2->y); in draw_line_ver()
319 blend_area.x1 = LV_MIN(p1.x, p2.x) - w; in draw_line_skew()
321 blend_area.y1 = LV_MIN(p1.y, p2.y) - w; in draw_line_skew()
378 size_t mask_buf_size = LV_MIN(lv_area_get_size(&blend_area), hor_res); in draw_line_skew()
Dlv_draw_sw_rect.c141 int32_t short_side = LV_MIN(coords_bg_w, coords_bg_h); in draw_bg()
142 int32_t rout = LV_MIN(dsc->radius, short_side >> 1); in draw_bg()
408 int32_t short_side = LV_MIN(coords_w, coords_h); in draw_border()
468 lv_coord_t short_side = LV_MIN(lv_area_get_width(&bg_area), lv_area_get_height(&bg_area)); in draw_shadow()
473 short_side = LV_MIN(lv_area_get_width(&core_area), lv_area_get_height(&core_area)); in draw_shadow()
545 blend_area.y2 = LV_MIN(blend_area.y2, h_half); in draw_shadow()
628 blend_area.y2 = LV_MIN(blend_area.y2, h_half); in draw_shadow()
728 blend_area.y1 = LV_MIN(blend_area.y1, h_half + 1); in draw_shadow()
785 blend_area.y1 = LV_MIN(blend_area.y1, h_half + 1); in draw_shadow()
787 blend_area.x2 = LV_MIN(blend_area.x2, w_half - 1); in draw_shadow()
[all …]
Dlv_draw_sw_blend.c958 fg.full = LV_MIN(tmp, 1); in color_blend_true_color_additive()
962 fg.ch.red = LV_MIN(tmp, 7); in color_blend_true_color_additive()
964 fg.ch.red = LV_MIN(tmp, 31); in color_blend_true_color_additive()
966 fg.ch.red = LV_MIN(tmp, 255); in color_blend_true_color_additive()
971 fg.ch.green = LV_MIN(tmp, 7); in color_blend_true_color_additive()
975 fg.ch.green = LV_MIN(tmp, 63); in color_blend_true_color_additive()
978 tmp = LV_MIN(tmp, 63); in color_blend_true_color_additive()
985 fg.ch.green = LV_MIN(tmp, 255); in color_blend_true_color_additive()
990 fg.ch.blue = LV_MIN(tmp, 4); in color_blend_true_color_additive()
992 fg.ch.blue = LV_MIN(tmp, 31); in color_blend_true_color_additive()
[all …]
Dlv_draw_sw_polygon.c81 poly_coords.x1 = LV_MIN(poly_coords.x1, p[i].x); in lv_draw_sw_polygon()
82 poly_coords.y1 = LV_MIN(poly_coords.y1, p[i].y); in lv_draw_sw_polygon()
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_polygon.c61 poly_coords.x1 = LV_MIN(poly_coords.x1, polygon_param.cfg.points[i].x); in lv_draw_sdl_polygon()
62 poly_coords.y1 = LV_MIN(poly_coords.y1, polygon_param.cfg.points[i].y); in lv_draw_sdl_polygon()
Dlv_draw_sdl_arc.c193 *pixel = LV_MIN(old_opa, 0xFF); in dump_masks()
Dlv_draw_sdl_rect.c712 lv_coord_t short_side = LV_MIN(coords_w, coords_h); in draw_border()
713 lv_coord_t rout = LV_MIN(dsc->radius, short_side / 2);/*Get the inner area*/ in draw_border()
759 int32_t short_side = LV_MIN(inner_w, inner_h); in draw_outline()
/lvgl-latest/src/widgets/
Dlv_btnmatrix.c977 prow = LV_MIN(prow, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
978 pcol = LV_MIN(pcol, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
979 pright = LV_MIN(pright, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
980 ptop = LV_MIN(ptop, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
981 pbottom = LV_MIN(pbottom, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
985 … if(btn_area.x1 <= pleft) btn_area.x1 += obj_cords.x1 - LV_MIN(pleft, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
988 … if(btn_area.y1 <= ptop) btn_area.y1 += obj_cords.y1 - LV_MIN(ptop, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()
991 if(btn_area.x2 >= w - pright - 2) btn_area.x2 += obj_cords.x1 + LV_MIN(pright, in get_button_from_point()
995 if(btn_area.y2 >= h - pbottom - 2) btn_area.y2 += obj_cords.y1 + LV_MIN(pbottom, in get_button_from_point()
Dlv_bar.c421 lv_coord_t short_side = LV_MIN(barw, barh); in draw_indic()
425 short_side = LV_MIN(indicw, indich); in draw_indic()
Dlv_slider.c298 …lv_coord_t knob_size = LV_MIN(lv_obj_get_width(obj) + 2 * trans_w, lv_obj_get_height(obj) + 2 * tr… in lv_slider_event()
/lvgl-latest/src/draw/
Dlv_draw_arc.c115 area->y1 = y + ((LV_MIN(lv_trigo_sin(end_angle), in lv_draw_arc_get_area()
135 area->x1 = x + ((LV_MIN(lv_trigo_sin(end_angle + 90), in lv_draw_arc_get_area()
Dlv_draw_mask.c20 #define CIRCLE_CACHE_AGING(life, r) life = LV_MIN(life + (r < 16 ? 1 : (r >> 4)), 1000)
479 int32_t short_side = LV_MIN(w, h); in lv_draw_mask_radius_init()
1289 lv_coord_t x1 = LV_MIN(lines[0].p1.x, lines[0].p2.x); in lv_draw_mask_polygon()
1305 lv_coord_t x1 = LV_MIN(lines[1].p1.x, lines[1].p2.x); in lv_draw_mask_polygon()
1502 c->x_start_on_y[y] = LV_MIN(c->x_start_on_y[y], cir_x[i]); in circ_calc_aa4()
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_8.c40 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
Dlv_example_chart_2.c39 a.y1 = LV_MIN(dsc->p1->y, dsc->p2->y); in draw_event_cb()
/lvgl-latest/src/core/
Dlv_obj_scroll.c185 x1 = LV_MIN(x1, child->coords.x1); in lv_obj_get_scroll_left()
639 sb = LV_MIN(st, -sb); in lv_obj_readjust_scroll()
650 sr = LV_MIN(sl, -sr); in lv_obj_readjust_scroll()
657 sr = LV_MIN(sr, -sl); in lv_obj_readjust_scroll()
Dlv_disp.c383 t = LV_MIN(t, elaps); in lv_disp_get_inactive_time()
Dlv_obj_style.c349 if(v1.num == LV_RADIUS_CIRCLE) v1.num = LV_MIN(whalf + 1, hhalf + 1); in _lv_obj_style_create_transition()
350 if(v2.num == LV_RADIUS_CIRCLE) v2.num = LV_MIN(whalf + 1, hhalf + 1); in _lv_obj_style_create_transition()
Dlv_refr.c1196 …lv_coord_t max_row = LV_MIN((lv_coord_t)((LV_DISP_ROT_MAX_BUF / sizeof(lv_color_t)) / area_w), are… in draw_buf_rotate()
1211 lv_coord_t height = LV_MIN(max_row, area_h - row); in draw_buf_rotate()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_rect.c299 int32_t shortest_side = LV_MIN(rect_width, rect_height); in lv_vglite_create_rect_path_data()
300 int32_t final_radius = LV_MIN(radius, shortest_side / 2); in lv_vglite_create_rect_path_data()
Dlv_draw_vglite.c325 rel_clip_area.x1 = LV_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_vglite_line()
327 rel_clip_area.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_vglite_line()
/lvgl-latest/src/extra/widgets/meter/
Dlv_meter.c380 … lv_coord_t r_edge = LV_MIN(lv_area_get_width(scale_area) / 2, lv_area_get_height(scale_area) / 2); in draw_ticks_and_labels()
648 …lv_draw_arc_get_area(scale_center.x, scale_center.y, r_out, LV_MIN(start_angle, end_angle), LV_MAX… in inv_arc()
673 a.x1 = LV_MIN(scale_center.x, p_end.x) - indic->type_data.needle_line.width - 2; in inv_line()
674 a.y1 = LV_MIN(scale_center.y, p_end.y) - indic->type_data.needle_line.width - 2; in inv_line()
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c907 if(LV_MIN(point_w, point_h) > line_dsc_default.width / 2) line_dsc_default.raw_end = 1; in draw_series_line()
966 y_min = LV_MIN(y_min, p2.y); in draw_series_line()
1072 if(LV_MIN(point_w, point_h) > line_dsc_default.width / 2) line_dsc_default.raw_end = 1; in draw_series_scatter()

12