Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 8 of 8) sorted by relevance

/lvgl-2.7.6/src/lv_draw/
Dlv_draw_mask.c205 param->cfg.p1.x = p1x; in lv_draw_mask_line_points_init()
206 param->cfg.p1.y = p1y; in lv_draw_mask_line_points_init()
207 param->cfg.p2.x = p2x; in lv_draw_mask_line_points_init()
208 param->cfg.p2.y = p2y; in lv_draw_mask_line_points_init()
209 param->cfg.side = side; in lv_draw_mask_line_points_init()
253 if(param->cfg.side == LV_DRAW_MASK_LINE_SIDE_LEFT) param->inv = 0; in lv_draw_mask_line_points_init()
254 else if(param->cfg.side == LV_DRAW_MASK_LINE_SIDE_RIGHT) param->inv = 1; in lv_draw_mask_line_points_init()
255 else if(param->cfg.side == LV_DRAW_MASK_LINE_SIDE_TOP) { in lv_draw_mask_line_points_init()
259 else if(param->cfg.side == LV_DRAW_MASK_LINE_SIDE_BOTTOM) { in lv_draw_mask_line_points_init()
330 param->cfg.start_angle = start_angle; in lv_draw_mask_angle_init()
[all …]
Dlv_img_buf.h159 } cfg; member
297 const uint8_t * src_u8 = (const uint8_t *)dsc->cfg.src; in _lv_img_buf_transform()
300 int32_t xt = x - dsc->cfg.pivot_x; in _lv_img_buf_transform()
301 int32_t yt = y - dsc->cfg.pivot_y; in _lv_img_buf_transform()
305 if(dsc->cfg.zoom == LV_IMG_ZOOM_NONE) { in _lv_img_buf_transform()
310 else if(dsc->cfg.angle == 0) { in _lv_img_buf_transform()
327 if(xs_int >= dsc->cfg.src_w) return false; in _lv_img_buf_transform()
330 if(ys_int >= dsc->cfg.src_h) return false; in _lv_img_buf_transform()
339 pxi = dsc->cfg.src_w * ys_int * px_size + xs_int * px_size; in _lv_img_buf_transform()
344 pxi = dsc->cfg.src_w * ys_int * px_size + xs_int * px_size; in _lv_img_buf_transform()
[all …]
Dlv_img_buf.c422 dsc->tmp.pivot_x_256 = dsc->cfg.pivot_x * 256; in _lv_img_buf_transform_init()
423 dsc->tmp.pivot_y_256 = dsc->cfg.pivot_y * 256; in _lv_img_buf_transform_init()
425 int32_t angle_low = dsc->cfg.angle / 10; in _lv_img_buf_transform_init()
427 int32_t angle_rem = dsc->cfg.angle - (angle_low * 10); in _lv_img_buf_transform_init()
442 dsc->tmp.chroma_keyed = lv_img_cf_is_chroma_keyed(dsc->cfg.cf) ? 1 : 0; in _lv_img_buf_transform_init()
443 dsc->tmp.has_alpha = lv_img_cf_has_alpha(dsc->cfg.cf) ? 1 : 0; in _lv_img_buf_transform_init()
444 if(dsc->cfg.cf == LV_IMG_CF_TRUE_COLOR || dsc->cfg.cf == LV_IMG_CF_TRUE_COLOR_ALPHA || in _lv_img_buf_transform_init()
445 dsc->cfg.cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED) { in _lv_img_buf_transform_init()
452 dsc->tmp.img_dsc.data = dsc->cfg.src; in _lv_img_buf_transform_init()
454 dsc->tmp.img_dsc.header.cf = dsc->cfg.cf; in _lv_img_buf_transform_init()
[all …]
Dlv_draw_mask.h85 } cfg; member
119 } cfg; member
135 } cfg; member
151 } cfg; member
162 } cfg; member
Dlv_draw_img.c464 trans_dsc.cfg.angle = draw_dsc->angle; in lv_draw_map()
465 trans_dsc.cfg.zoom = draw_dsc->zoom; in lv_draw_map()
466 trans_dsc.cfg.src = map_p; in lv_draw_map()
467 trans_dsc.cfg.src_w = map_w; in lv_draw_map()
468 trans_dsc.cfg.src_h = lv_area_get_height(map_area);; in lv_draw_map()
469 trans_dsc.cfg.cf = cf; in lv_draw_map()
470 trans_dsc.cfg.pivot_x = draw_dsc->pivot.x; in lv_draw_map()
471 trans_dsc.cfg.pivot_y = draw_dsc->pivot.y; in lv_draw_map()
472 trans_dsc.cfg.color = draw_dsc->recolor; in lv_draw_map()
473 trans_dsc.cfg.antialias = draw_dsc->antialias; in lv_draw_map()
/lvgl-2.7.6/src/lv_widgets/
Dlv_objmask.c236 lv_draw_mask_line_points_init(p_new, p_ori->cfg.p1.x + xofs, p_ori->cfg.p1.y + yofs, in lv_objmask_design()
237 p_ori->cfg.p2.x + xofs, p_ori->cfg.p2.y + yofs, in lv_objmask_design()
238 p_ori->cfg.side); in lv_objmask_design()
245 … lv_draw_mask_angle_init(p_new, p_ori->cfg.vertex_p.x + xofs, p_ori->cfg.vertex_p.y + yofs, in lv_objmask_design()
246 p_ori->cfg.start_angle, p_ori->cfg.end_angle); in lv_objmask_design()
254 rect.x1 = p_ori->cfg.rect.x1 + xofs; in lv_objmask_design()
255 rect.y1 = p_ori->cfg.rect.y1 + yofs; in lv_objmask_design()
256 rect.x2 = p_ori->cfg.rect.x2 + xofs; in lv_objmask_design()
257 rect.y2 = p_ori->cfg.rect.y2 + yofs; in lv_objmask_design()
259 lv_draw_mask_radius_init(p_new, &rect, p_ori->cfg.radius, p_ori->cfg.outer); in lv_objmask_design()
[all …]
Dlv_canvas.c296 dsc.cfg.angle = angle; in lv_canvas_transform()
297 dsc.cfg.zoom = zoom; in lv_canvas_transform()
298 dsc.cfg.src = img->data; in lv_canvas_transform()
299 dsc.cfg.src_w = img->header.w; in lv_canvas_transform()
300 dsc.cfg.src_h = img->header.h; in lv_canvas_transform()
301 dsc.cfg.cf = img->header.cf; in lv_canvas_transform()
302 dsc.cfg.pivot_x = pivot_x; in lv_canvas_transform()
303 dsc.cfg.pivot_y = pivot_y; in lv_canvas_transform()
304 dsc.cfg.color = color; in lv_canvas_transform()
305 dsc.cfg.antialias = antialias; in lv_canvas_transform()
[all …]
/lvgl-2.7.6/scripts/
Dcode-format.sh1 astyle --options=code-format.cfg "../src/*.c,*.h"