Lines Matching refs:opa
92 void lv_canvas_set_px_opa(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_canvas_set_px_opa() argument
98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa()
277 lv_opa_t opa = LV_OPA_TRANSP; in lv_canvas_blur_hor() local
285 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
294 if(has_alpha) asum += opa; in lv_canvas_blur_hor()
312 if(has_alpha) opa = asum / r; in lv_canvas_blur_hor()
316 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_hor()
321 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
330 if(has_alpha) asum -= opa; in lv_canvas_blur_hor()
335 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
344 if(has_alpha) asum += opa; in lv_canvas_blur_hor()
404 lv_opa_t opa = LV_OPA_COVER; in lv_canvas_blur_ver() local
411 if(has_alpha) opa = lv_img_buf_get_px_alpha(&canvas->dsc, x, y_safe); in lv_canvas_blur_ver()
414 if(has_alpha) lv_img_buf_set_px_alpha(&line_img, 0, y_safe, opa); in lv_canvas_blur_ver()
423 if(has_alpha) asum += opa; in lv_canvas_blur_ver()
440 if(has_alpha) opa = asum / r; in lv_canvas_blur_ver()
444 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_ver()
449 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, 0, y_safe); in lv_canvas_blur_ver()
458 if(has_alpha) asum -= opa; in lv_canvas_blur_ver()
464 if(has_alpha) opa = lv_img_buf_get_px_alpha(&canvas->dsc, x, y_safe); in lv_canvas_blur_ver()
467 if(has_alpha) lv_img_buf_set_px_alpha(&line_img, 0, y_safe, opa); in lv_canvas_blur_ver()
476 if(has_alpha) asum += opa; in lv_canvas_blur_ver()
485 void lv_canvas_fill_bg(lv_obj_t * canvas, lv_color_t color, lv_opa_t opa) in lv_canvas_fill_bg() argument
498 … lv_memset((uint8_t *)dsc->data, opa > LV_OPA_50 ? 0xff : 0x00, row_byte_cnt * dsc->header.h); in lv_canvas_fill_bg()
506 lv_img_buf_set_px_alpha(dsc, x, y, opa); in lv_canvas_fill_bg()