Lines Matching refs:x

34 …id set_px_true_color_alpha(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x,
38 …px_cb_alpha1(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
41 …px_cb_alpha2(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
44 …px_cb_alpha4(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
48 …px_cb_alpha8(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
51 static void set_px_alpha_generic(lv_img_dsc_t * d, lv_coord_t x, lv_coord_t y, lv_color_t color, lv…
161 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
167 lv_img_buf_set_px_color(&ext->dsc, x, y, c); in lv_canvas_set_px()
202 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y) in lv_canvas_get_px() argument
209 return lv_img_buf_get_px_color(&ext->dsc, x, y, color); in lv_canvas_get_px()
240 void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coo… in lv_canvas_copy_buf() argument
246 if(x + w >= (lv_coord_t)ext->dsc.header.w || y + h >= (lv_coord_t)ext->dsc.header.h) { in lv_canvas_copy_buf()
252 uint32_t px = ext->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
291 int32_t x; in lv_canvas_transform() local
309 for(x = -offset_x; x < dest_width - offset_x; x++) { in lv_canvas_transform()
311 ret = _lv_img_buf_transform(&dsc, x, y); in lv_canvas_transform()
315 …if(x + offset_x >= 0 && x + offset_x < dest_width && y + offset_y >= 0 && y + offset_y < dest_heig… in lv_canvas_transform()
318 … lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
321 …lv_color_t bg_color = lv_img_buf_get_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, dsc.cfg.c… in lv_canvas_transform()
327 … lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
332 … lv_opa_t bg_opa = lv_img_buf_get_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y); in lv_canvas_transform()
336 … lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
337 … lv_img_buf_set_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y, dsc.res.opa); in lv_canvas_transform()
341 lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, in lv_canvas_transform()
355 lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, in lv_canvas_transform()
357 … lv_img_buf_set_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y, opa_res_2); in lv_canvas_transform()
429 lv_coord_t x; in lv_canvas_blur_hor() local
444 for(x = a.x1 - r_back; x <= a.x1 + r_front; x++) { in lv_canvas_blur_hor()
445 x_safe = x < 0 ? 0 : x; in lv_canvas_blur_hor()
464 for(x = a.x1; x <= a.x2; x++) { in lv_canvas_blur_hor()
478 lv_img_buf_set_px_color(&ext->dsc, x, y, c); in lv_canvas_blur_hor()
480 if(has_alpha) lv_img_buf_set_px_alpha(&ext->dsc, x, y, opa); in lv_canvas_blur_hor()
482 x_safe = x - r_back; in lv_canvas_blur_hor()
496 x_safe = x + 1 + r_front; in lv_canvas_blur_hor()
564 lv_coord_t x; in lv_canvas_blur_ver() local
568 for(x = a.x1; x <= a.x2; x++) { in lv_canvas_blur_ver()
581 c = lv_img_buf_get_px_color(&ext->dsc, x, y_safe, color); in lv_canvas_blur_ver()
582 if(has_alpha) opa = lv_img_buf_get_px_alpha(&ext->dsc, x, y_safe); in lv_canvas_blur_ver()
613 lv_img_buf_set_px_color(&ext->dsc, x, y, c); in lv_canvas_blur_ver()
615 if(has_alpha) lv_img_buf_set_px_alpha(&ext->dsc, x, y, opa); in lv_canvas_blur_ver()
634 c = lv_img_buf_get_px_color(&ext->dsc, x, y_safe, color); in lv_canvas_blur_ver()
635 if(has_alpha) opa = lv_img_buf_get_px_alpha(&ext->dsc, x, y_safe); in lv_canvas_blur_ver()
678 uint32_t x; in lv_canvas_fill_bg() local
681 for(x = 0; x < dsc->header.w; x++) { in lv_canvas_fill_bg()
682 lv_img_buf_set_px_color(dsc, x, y, color); in lv_canvas_fill_bg()
683 lv_img_buf_set_px_alpha(dsc, x, y, opa); in lv_canvas_fill_bg()
700 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, in lv_canvas_draw_rect() argument
721 coords.x1 = x; in lv_canvas_draw_rect()
723 coords.x2 = x + w - 1; in lv_canvas_draw_rect()
771 void lv_canvas_draw_text(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t max_w, in lv_canvas_draw_text() argument
793 coords.x1 = x; in lv_canvas_draw_text()
795 coords.x2 = x + max_w - 1; in lv_canvas_draw_text()
847 void lv_canvas_draw_img(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, const void * src, in lv_canvas_draw_img() argument
875 coords.x1 = x; in lv_canvas_draw_img()
877 coords.x2 = x + header.w - 1; in lv_canvas_draw_img()
1039 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_… in lv_canvas_draw_arc() argument
1086 lv_draw_arc(x, y, r, start_angle, end_angle, &mask, arc_draw_dsc); in lv_canvas_draw_arc()
1143 …px_cb_alpha1(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, in set_px_cb_alpha1() argument
1154 set_px_alpha_generic(&d, x, y, color, opa); in set_px_cb_alpha1()
1157 …px_cb_alpha2(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, in set_px_cb_alpha2() argument
1168 set_px_alpha_generic(&d, x, y, color, opa); in set_px_cb_alpha2()
1171 …px_cb_alpha4(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, in set_px_cb_alpha4() argument
1182 set_px_alpha_generic(&d, x, y, color, opa); in set_px_cb_alpha4()
1185 …px_cb_alpha8(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, in set_px_cb_alpha8() argument
1196 set_px_alpha_generic(&d, x, y, color, opa); in set_px_cb_alpha8()
1199 static void set_px_alpha_generic(lv_img_dsc_t * d, lv_coord_t x, lv_coord_t y, lv_color_t color, lv… in set_px_alpha_generic() argument
1206 uint8_t bg = lv_img_buf_get_px_alpha(d, x, y); in set_px_alpha_generic()
1210 lv_img_buf_set_px_alpha(d, x, y, br); in set_px_alpha_generic()
1214 …id set_px_true_color_alpha(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, in set_px_true_color_alpha() argument
1228 lv_color_t bg_color = lv_img_buf_get_px_color(&d, x, y, LV_COLOR_BLACK); in set_px_true_color_alpha()
1229 lv_opa_t bg_opa = lv_img_buf_get_px_alpha(&d, x, y); in set_px_true_color_alpha()
1237 lv_img_buf_set_px_alpha(&d, x, y, res_opa); in set_px_true_color_alpha()
1238 lv_img_buf_set_px_color(&d, x, y, res_color); in set_px_true_color_alpha()