Lines Matching refs:k

627                     int32_t k = - abs_x;  in lv_draw_mask_line()  local
628 if(k < 0) return LV_DRAW_MASK_RES_TRANSP; in lv_draw_mask_line()
629 if(k >= 0 && k < len) lv_memset_00(&mask_buf[k], len - k); in lv_draw_mask_line()
636 int32_t k = - abs_x; in lv_draw_mask_line() local
637 if(k < 0) k = 0; in lv_draw_mask_line()
638 if(k >= len) return LV_DRAW_MASK_RES_TRANSP; in lv_draw_mask_line()
639 else if(k >= 0 && k < len) lv_memset_00(&mask_buf[0], k); in lv_draw_mask_line()
720 int32_t k = xei - abs_x; in line_mask_flat() local
724 if(k >= 0 && k < len) { in line_mask_flat()
727 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_flat()
729 k++; in line_mask_flat()
733 if(k >= 0 && k < len) { in line_mask_flat()
736 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_flat()
739 k++; in line_mask_flat()
740 if(k >= len) break; in line_mask_flat()
743 if(k < len && k >= 0) { in line_mask_flat()
748 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_flat()
752 k = xei - abs_x; in line_mask_flat()
753 if(k > len) { in line_mask_flat()
756 if(k >= 0) { in line_mask_flat()
757 lv_memset_00(&mask_buf[0], k); in line_mask_flat()
761 k++; in line_mask_flat()
762 if(k < 0) { in line_mask_flat()
765 if(k <= len) { in line_mask_flat()
766 lv_memset_00(&mask_buf[k], len - k); in line_mask_flat()
777 int32_t k; in line_mask_steep() local
816 k = xsi - abs_x; in line_mask_steep()
820 k--; in line_mask_steep()
824 if(k >= 0 && k < len) { in line_mask_steep()
827 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_steep()
829 k++; in line_mask_steep()
832 k = xsi - abs_x; in line_mask_steep()
833 if(k >= len) { in line_mask_steep()
836 if(k >= 0) lv_memset_00(&mask_buf[0], k); in line_mask_steep()
840 if(k > len) k = len; in line_mask_steep()
841 if(k == 0) return LV_DRAW_MASK_RES_TRANSP; in line_mask_steep()
842 else if(k > 0) lv_memset_00(&mask_buf[k], len - k); in line_mask_steep()
850 if(k >= 0 && k < len) { in line_mask_steep()
853 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_steep()
855 k--; in line_mask_steep()
859 if(k >= 0 && k < len) { in line_mask_steep()
862 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_steep()
865 k += 2; in line_mask_steep()
868 k = xsi - abs_x - 1; in line_mask_steep()
870 if(k > len) k = len; in line_mask_steep()
871 else if(k > 0) lv_memset_00(&mask_buf[0], k); in line_mask_steep()
875 if(k > len) return LV_DRAW_MASK_RES_FULL_COVER; in line_mask_steep()
876 if(k >= 0) lv_memset_00(&mask_buf[k], len - k); in line_mask_steep()
882 if(k >= 0 && k < len) { in line_mask_steep()
885 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_steep()
888 k++; in line_mask_steep()
891 if(k >= 0 && k < len) { in line_mask_steep()
894 mask_buf[k] = mask_mix(mask_buf[k], m); in line_mask_steep()
896 k++; in line_mask_steep()
899 k = xsi - abs_x; in line_mask_steep()
900 if(k > len) return LV_DRAW_MASK_RES_TRANSP; in line_mask_steep()
901 if(k >= 0) lv_memset_00(&mask_buf[0], k); in line_mask_steep()
905 if(k > len) k = len; in line_mask_steep()
906 if(k == 0) return LV_DRAW_MASK_RES_TRANSP; in line_mask_steep()
907 else if(k > 0) lv_memset_00(&mask_buf[k], len - k); in line_mask_steep()
1110 int32_t k = rect.x1 - abs_x; /*First relevant coordinate on the of the mask*/ in lv_draw_mask_radius() local
1126 lv_coord_t cir_x_right = k + w - radius + x_start; in lv_draw_mask_radius()
1127 lv_coord_t cir_x_left = k + radius - x_start - 1; in lv_draw_mask_radius()