Lines Matching refs:x

94 #define MAP_NORMAL_MASK_PX(x)                                                          \  argument
96 …if(*mask_tmp_x == LV_OPA_COVER) disp_buf_first[x] = map_buf_first[x]; …
97 …else disp_buf_first[x] = lv_color_mix(map_buf_first[x], disp_buf_first[x], *mask_tmp_x); …
101 #define MAP_NORMAL_MASK_PX_SCR_TRANSP(x) \ argument
103 …if(*mask_tmp_x == LV_OPA_COVER) disp_buf_first[x] = map_buf_first[x]; …
104 …isp->driver.screen_transp) lv_color_mix_with_alpha(disp_buf_first[x], disp_buf_first[x].ch.alpha, …
105 …map_buf_first[x], *mask_tmp_x, &disp_buf_first[x], &disp_buf_first[x].ch.alpha); \
106 …else disp_buf_first[x] = lv_color_mix(map_buf_first[x], disp_buf_first[x], *mask_tmp_x); …
264 int32_t x; in fill_set_px() local
269 for(x = draw_area->x1; x <= draw_area->x2; x++) { in fill_set_px()
270 disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, color, opa); in fill_set_px()
284 for(x = draw_area->x1; x <= draw_area->x2; x++) { in fill_set_px()
285 if(mask_tmp[x]) { in fill_set_px()
286 disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, color, in fill_set_px()
287 (uint32_t)((uint32_t)opa * mask_tmp[x]) >> 8); in fill_set_px()
327 int32_t x; in fill_normal() local
356 for(x = 0; x < draw_area_w ; x++) blend_buf[x].full = color.full; in fill_normal()
392 for(x = 0; x < draw_area_w; x++) { in fill_normal()
393 if(last_dest_color.full != disp_buf_first[x].full) { in fill_normal()
394 last_dest_color = disp_buf_first[x]; in fill_normal()
398 …lv_color_mix_with_alpha(disp_buf_first[x], disp_buf_first[x].ch.alpha, color, opa, &last_res_color, in fill_normal()
404 … last_res_color = lv_color_mix_premult(color_premult, disp_buf_first[x], opa_inv); in fill_normal()
407 disp_buf_first[x] = last_res_color; in fill_normal()
438 for(x = 0; x < draw_area_w; x++) { in fill_normal()
440 FILL_NORMAL_MASK_PX_SCR_TRANSP(x, color) in fill_normal()
442 FILL_NORMAL_MASK_PX(x, color) in fill_normal()
446 for(x = 0; x < draw_area_w && ((lv_uintptr_t)mask_tmp_x & 0x3); x++) { in fill_normal()
448 FILL_NORMAL_MASK_PX_SCR_TRANSP(x, color) in fill_normal()
450 FILL_NORMAL_MASK_PX(x, color) in fill_normal()
455 for(; x <= x_end4; x += 4) { in fill_normal()
458 disp_buf_first[x] = color; in fill_normal()
459 disp_buf_first[x + 1] = color; in fill_normal()
460 disp_buf_first[x + 2] = color; in fill_normal()
461 disp_buf_first[x + 3] = color; in fill_normal()
466 FILL_NORMAL_MASK_PX_SCR_TRANSP(x, color) in fill_normal()
467 FILL_NORMAL_MASK_PX_SCR_TRANSP(x + 1, color) in fill_normal()
468 FILL_NORMAL_MASK_PX_SCR_TRANSP(x + 2, color) in fill_normal()
469 FILL_NORMAL_MASK_PX_SCR_TRANSP(x + 3, color) in fill_normal()
471 FILL_NORMAL_MASK_PX(x, color) in fill_normal()
472 FILL_NORMAL_MASK_PX(x + 1, color) in fill_normal()
473 FILL_NORMAL_MASK_PX(x + 2, color) in fill_normal()
474 FILL_NORMAL_MASK_PX(x + 3, color) in fill_normal()
482 for(; x < draw_area_w ; x++) { in fill_normal()
484 FILL_NORMAL_MASK_PX_SCR_TRANSP(x, color) in fill_normal()
486 FILL_NORMAL_MASK_PX(x, color) in fill_normal()
499 for(x = 0; x < draw_area_w; x++) { in fill_normal()
503 … if(*mask_tmp_x != last_mask || last_dest_color.full != disp_buf_first[x].full) { in fill_normal()
506 …lv_color_mix_with_alpha(disp_buf_first[x], disp_buf_first[x].ch.alpha, color, opa_tmp, &last_res_c… in fill_normal()
513 … else last_res_color = lv_color_mix(color, disp_buf_first[x], opa_tmp); in fill_normal()
516 last_dest_color.full = disp_buf_first[x].full; in fill_normal()
518 disp_buf_first[x] = last_res_color; in fill_normal()
568 int32_t x; in fill_blended() local
576 for(x = draw_area->x1; x <= draw_area->x2; x++) { in fill_blended()
577 if(last_dest_color.full != disp_buf_tmp[x].full) { in fill_blended()
578 last_dest_color = disp_buf_tmp[x]; in fill_blended()
579 last_res_color = blend_fp(color, disp_buf_tmp[x], opa); in fill_blended()
581 disp_buf_tmp[x] = last_res_color; in fill_blended()
604 for(x = draw_area->x1; x <= draw_area->x2; x++) { in fill_blended()
605 if(mask_tmp[x] == 0) continue; in fill_blended()
606 if(mask_tmp[x] != last_mask || last_dest_color.full != disp_buf_tmp[x].full) { in fill_blended()
607 … lv_opa_t opa_tmp = mask_tmp[x] >= LV_OPA_MAX ? opa : (uint32_t)((uint32_t)mask_tmp[x] * opa) >> 8; in fill_blended()
609 last_res_color = blend_fp(color, disp_buf_tmp[x], opa_tmp); in fill_blended()
610 last_mask = mask_tmp[x]; in fill_blended()
611 last_dest_color.full = disp_buf_tmp[x].full; in fill_blended()
613 disp_buf_tmp[x] = last_res_color; in fill_blended()
643 int32_t x; in map_set_px() local
648 for(x = draw_area->x1; x <= draw_area->x2; x++) { in map_set_px()
649 … disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, map_buf_tmp[x], opa); in map_set_px()
661 for(x = draw_area->x1; x <= draw_area->x2; x++) { in map_set_px()
662 if(mask_tmp[x]) { in map_set_px()
663 … disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, map_buf_tmp[x], in map_set_px()
664 (uint32_t)((uint32_t)opa * mask_tmp[x]) >> 8); in map_set_px()
712 int32_t x; in map_normal() local
754 for(x = 0; x < draw_area_w; x++) { in map_normal()
757 …lv_color_mix_with_alpha(disp_buf_first[x], disp_buf_first[x].ch.alpha, map_buf_first[x], opa, &dis… in map_normal()
758 &disp_buf_first[x].ch.alpha); in map_normal()
763 disp_buf_first[x] = lv_color_mix(map_buf_first[x], disp_buf_first[x], opa); in map_normal()
782 for(x = 0; x < draw_area_w; x++) { in map_normal()
783 MAP_NORMAL_MASK_PX(x); in map_normal()
786 for(x = 0; x < draw_area_w && ((lv_uintptr_t)mask_tmp_x & 0x3); x++) { in map_normal()
788 MAP_NORMAL_MASK_PX_SCR_TRANSP(x) in map_normal()
790 MAP_NORMAL_MASK_PX(x) in map_normal()
795 for(; x < x_end4; x += 4) { in map_normal()
798 disp_buf_first[x] = map_buf_first[x]; in map_normal()
799 disp_buf_first[x + 1] = map_buf_first[x + 1]; in map_normal()
800 disp_buf_first[x + 2] = map_buf_first[x + 2]; in map_normal()
801 disp_buf_first[x + 3] = map_buf_first[x + 3]; in map_normal()
806 MAP_NORMAL_MASK_PX_SCR_TRANSP(x) in map_normal()
807 MAP_NORMAL_MASK_PX_SCR_TRANSP(x + 1) in map_normal()
808 MAP_NORMAL_MASK_PX_SCR_TRANSP(x + 2) in map_normal()
809 MAP_NORMAL_MASK_PX_SCR_TRANSP(x + 3) in map_normal()
811 MAP_NORMAL_MASK_PX(x) in map_normal()
812 MAP_NORMAL_MASK_PX(x + 1) in map_normal()
813 MAP_NORMAL_MASK_PX(x + 2) in map_normal()
814 MAP_NORMAL_MASK_PX(x + 3) in map_normal()
822 for(; x < draw_area_w ; x++) { in map_normal()
824 MAP_NORMAL_MASK_PX_SCR_TRANSP(x) in map_normal()
826 MAP_NORMAL_MASK_PX(x) in map_normal()
838 for(x = 0; x < draw_area_w; x++) { in map_normal()
839 if(mask[x]) { in map_normal()
840 lv_opa_t opa_tmp = mask[x] >= LV_OPA_MAX ? opa : ((opa * mask[x]) >> 8); in map_normal()
843 …v_color_mix_with_alpha(disp_buf_first[x], disp_buf_first[x].ch.alpha, map_buf_first[x], opa_tmp, &… in map_normal()
844 &disp_buf_first[x].ch.alpha); in map_normal()
849 … disp_buf_first[x] = lv_color_mix(map_buf_first[x], disp_buf_first[x], opa_tmp); in map_normal()
894 int32_t x; in map_blended() local
906 for(x = draw_area->x1; x <= draw_area->x2; x++) { in map_blended()
907 disp_buf_tmp[x] = blend_fp(map_buf_tmp[x], disp_buf_tmp[x], opa); in map_blended()
922 for(x = draw_area->x1; x <= draw_area->x2; x++) { in map_blended()
923 if(mask_tmp[x] == 0) continue; in map_blended()
924 lv_opa_t opa_tmp = mask_tmp[x] >= LV_OPA_MAX ? opa : ((opa * mask_tmp[x]) >> 8); in map_blended()
925 disp_buf_tmp[x] = blend_fp(map_buf_tmp[x], disp_buf_tmp[x], opa_tmp); in map_blended()