Home
last modified time | relevance | path

Searched refs:dst_scale (Results 1 – 7 of 7) sorted by relevance

/external/skqp/src/core/
DSkBlitRow_D32.cpp91 __m128i dst_scale = _mm_srli_epi32(src, 24); in SkBlendARGB32_SSE2() local
93 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
94 dst_scale = _mm_sub_epi32(_mm_set1_epi32(0xFFFF), dst_scale); in SkBlendARGB32_SSE2()
95 dst_scale = _mm_add_epi32(dst_scale, _mm_srli_epi32(dst_scale, 8)); in SkBlendARGB32_SSE2()
96 dst_scale = _mm_srli_epi32(dst_scale, 8); in SkBlendARGB32_SSE2()
98 dst_scale = _mm_shufflelo_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
99 dst_scale = _mm_shufflehi_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
112 dst_rb = _mm_mullo_epi16(dst_rb, dst_scale); in SkBlendARGB32_SSE2()
113 dst_ag = _mm_mullo_epi16(dst_ag, dst_scale); in SkBlendARGB32_SSE2()
157 uint16_t dst_scale = 256 - src_scale; in blit_row_s32_blend() local
[all …]
DSkBlitter_ARGB32.cpp774 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
776 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
777 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
778 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
779 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
780 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
781 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
782 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
783 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
787 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
[all …]
/external/skia/src/core/
DSkBlitRow_D32.cpp90 __m128i dst_scale = _mm_srli_epi32(src, 24); in SkBlendARGB32_SSE2() local
92 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
93 dst_scale = _mm_sub_epi32(_mm_set1_epi32(0xFFFF), dst_scale); in SkBlendARGB32_SSE2()
94 dst_scale = _mm_add_epi32(dst_scale, _mm_srli_epi32(dst_scale, 8)); in SkBlendARGB32_SSE2()
95 dst_scale = _mm_srli_epi32(dst_scale, 8); in SkBlendARGB32_SSE2()
97 dst_scale = _mm_shufflelo_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
98 dst_scale = _mm_shufflehi_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
111 dst_rb = _mm_mullo_epi16(dst_rb, dst_scale); in SkBlendARGB32_SSE2()
112 dst_ag = _mm_mullo_epi16(dst_ag, dst_scale); in SkBlendARGB32_SSE2()
156 uint16_t dst_scale = 256 - src_scale; in blit_row_s32_blend() local
[all …]
DSkBlitter_ARGB32.cpp774 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
776 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
777 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
778 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
779 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
780 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
781 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
782 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
783 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
787 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
[all …]
/external/skqp/include/private/
DSkColorData.h283 unsigned dst_scale = SkAlphaMulInv256(SkGetPackedA32(src), src_scale); in SkBlendARGB32() local
290 uint32_t dst_rb = (dst & mask) * dst_scale; in SkBlendARGB32()
291 uint32_t dst_ag = ((dst >> 8) & mask) * dst_scale; in SkBlendARGB32()
/external/skia/include/private/
DSkColorData.h283 unsigned dst_scale = SkAlphaMulInv256(SkGetPackedA32(src), src_scale); in SkBlendARGB32() local
290 uint32_t dst_rb = (dst & mask) * dst_scale; in SkBlendARGB32()
291 uint32_t dst_ag = ((dst >> 8) & mask) * dst_scale; in SkBlendARGB32()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c855 double dst_scale = lp_const_scale(dst_type); in lp_build_conv() local
857 if (dst_scale != 1.0) { in lp_build_conv()
858 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale); in lp_build_conv()