Lines Matching refs:mask
27 … lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stide);
30 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str…
35 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str…
40 … lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
44 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st…
47 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st…
52 … const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
59 const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
74 if(*mask == LV_OPA_COVER) *dest_buf = color; \
75 else *dest_buf = lv_color_mix(color, *dest_buf, *mask); \
76 mask++; \
106 lv_opa_t * mask; in lv_draw_sw_blend_basic() local
107 if(dsc->mask_buf == NULL) mask = NULL; in lv_draw_sw_blend_basic()
109 else if(dsc->mask_res == LV_DRAW_MASK_RES_FULL_COVER) mask = NULL; in lv_draw_sw_blend_basic()
110 else mask = dsc->mask_buf; in lv_draw_sw_blend_basic()
143 if(mask) { in lv_draw_sw_blend_basic()
149 mask[i] = mask[i] > 128 ? LV_OPA_COVER : LV_OPA_TRANSP; in lv_draw_sw_blend_basic()
154 … mask += mask_stride * (blend_area.y1 - dsc->mask_area->y1) + (blend_area.x1 - dsc->mask_area->x1); in lv_draw_sw_blend_basic()
166 … fill_set_px(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa, mask, mask_stride); in lv_draw_sw_blend_basic()
169 … map_set_px(dest_buf, &blend_area, dest_stride, src_buf, src_stride, dsc->opa, mask, mask_stride); in lv_draw_sw_blend_basic()
175 fill_argb(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa, mask, mask_stride); in lv_draw_sw_blend_basic()
178 …map_argb(dest_buf, &blend_area, dest_stride, src_buf, src_stride, dsc->opa, mask, mask_stride, dsc… in lv_draw_sw_blend_basic()
184 … fill_normal(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa, mask, mask_stride); in lv_draw_sw_blend_basic()
187 … map_normal(dest_buf, &blend_area, dest_stride, src_buf, src_stride, dsc->opa, mask, mask_stride); in lv_draw_sw_blend_basic()
193 …fill_blended(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa, mask, mask_stride, dsc->ble… in lv_draw_sw_blend_basic()
196 …map_blended(dest_buf, &blend_area, dest_stride, src_buf, src_stride, dsc->opa, mask, mask_stride, … in lv_draw_sw_blend_basic()
208 … lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stide) in fill_set_px() argument
215 if(mask == NULL) { in fill_set_px()
228 if(mask[x]) { in fill_set_px()
232 (uint32_t)((uint32_t)opa * mask[x]) >> 8); in fill_set_px()
235 mask += mask_stide; in fill_set_px()
241 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str… in fill_normal() argument
250 if(mask == NULL) { in fill_normal()
295 for(x = 0; x < w && ((lv_uintptr_t)(mask) & 0x3); x++) { in fill_normal()
300 uint32_t mask32 = *((uint32_t *)mask); in fill_normal()
321 mask += 4; in fill_normal()
330 mask += 4; in fill_normal()
339 mask += (mask_stride - w); in fill_normal()
354 if(*mask) { in fill_normal()
355 if(*mask != last_mask) opa_tmp = *mask == LV_OPA_COVER ? opa : in fill_normal()
356 … (uint32_t)((uint32_t)(*mask) * opa) >> 8; in fill_normal()
357 if(*mask != last_mask || last_dest_color.full != dest_buf[x].full) { in fill_normal()
360 last_mask = *mask; in fill_normal()
365 mask++; in fill_normal()
368 mask += (mask_stride - w); in fill_normal()
446 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str… in fill_argb() argument
460 if(mask == NULL) { in fill_argb()
494 set_px_argb(dest_buf8, color, *mask); in fill_argb()
495 mask++; in fill_argb()
511 if(*mask) { in fill_argb()
512 if(*mask != last_mask) opa_tmp = *mask == LV_OPA_COVER ? opa : in fill_argb()
513 … (uint32_t)((uint32_t)(*mask) * opa) >> 8; in fill_argb()
518 mask++; in fill_argb()
522 mask += (mask_stride - w); in fill_argb()
531 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str… in fill_blended() argument
558 if(mask == NULL) { in fill_blended()
579 lv_opa_t opa_tmp = mask[0] >= LV_OPA_MAX ? opa : (uint32_t)((uint32_t)mask[0] * opa) >> 8; in fill_blended()
584 if(mask[x] == 0) continue; in fill_blended()
585 if(mask[x] != last_mask || last_dest_color.full != dest_buf[x].full) { in fill_blended()
586 … opa_tmp = mask[x] >= LV_OPA_MAX ? opa : (uint32_t)((uint32_t)mask[x] * opa) >> 8; in fill_blended()
589 last_mask = mask[x]; in fill_blended()
595 mask += mask_stride; in fill_blended()
602 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st… in map_set_px() argument
613 if(mask == NULL) { in map_set_px()
625 if(mask[x]) { in map_set_px()
627 (uint32_t)((uint32_t)opa * mask[x]) >> 8); in map_set_px()
630 mask += mask_stride; in map_set_px()
637 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st… in map_normal() argument
647 if(mask == NULL) { in map_normal()
672 const lv_opa_t * mask_tmp_x = mask; in map_normal()
709 mask += mask_stride; in map_normal()
716 if(mask[x]) { in map_normal()
717 lv_opa_t opa_tmp = mask[x] >= LV_OPA_MAX ? opa : ((opa * mask[x]) >> 8); in map_normal()
723 mask += mask_stride; in map_normal()
734 … const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode) in map_argb() argument
761 if(mask == NULL) { in map_argb()
823 set_px_argb(dest_buf8, src_buf[x], mask[x]); in map_argb()
829 set_px_argb_blend(dest_buf8, src_buf[x], mask[x], blend_fp); in map_argb()
836 mask += mask_stride; in map_argb()
845 if(mask[x]) { in map_argb()
846 lv_opa_t opa_tmp = mask[x] >= LV_OPA_MAX ? opa : ((opa * mask[x]) >> 8); in map_argb()
854 if(mask[x]) { in map_argb()
855 lv_opa_t opa_tmp = mask[x] >= LV_OPA_MAX ? opa : ((opa * mask[x]) >> 8); in map_argb()
864 mask += mask_stride; in map_argb()
875 const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode) in map_blended() argument
903 if(mask == NULL) { in map_blended()
924 lv_opa_t last_opa = mask[0] >= LV_OPA_MAX ? opa : ((opa * mask[0]) >> 8); in map_blended()
928 if(mask[x] == 0) continue; in map_blended()
929 lv_opa_t opa_tmp = mask[x] >= LV_OPA_MAX ? opa : ((opa * mask[x]) >> 8); in map_blended()
940 mask += mask_stride; in map_blended()