Lines Matching refs:y
35 lv_coord_t y,
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()
292 int32_t y; in lv_canvas_transform() local
308 for(y = -offset_y; y < dest_height - offset_y; y++) { 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()
430 lv_coord_t y; in lv_canvas_blur_hor() local
433 for(y = a.y1; y <= a.y2; y++) { in lv_canvas_blur_hor()
441 _lv_memcpy(line_buf, &ext->dsc.data[y * line_w], line_w); 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()
565 lv_coord_t y; in lv_canvas_blur_ver() local
577 for(y = a.y1 - r_back; y <= a.y1 + r_front; y++) { in lv_canvas_blur_ver()
578 y_safe = y < 0 ? 0 : y; in lv_canvas_blur_ver()
600 for(y = a.y1; y <= a.y2; y++) { 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()
617 y_safe = y - r_back; in lv_canvas_blur_ver()
631 y_safe = y + 1 + r_front; in lv_canvas_blur_ver()
679 uint32_t y; in lv_canvas_fill_bg() local
680 for(y = 0; y < dsc->header.h; y++) { 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
722 coords.y1 = y; in lv_canvas_draw_rect()
724 coords.y2 = y + h - 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
794 coords.y1 = y; 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
876 coords.y1 = y; in lv_canvas_draw_img()
878 coords.y2 = y + header.h - 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()
1215 lv_coord_t y, 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()