Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkColor_opts_SSE2.h254 __m128i dst_scale = SkGetPackedA32_SSE2(src); in SkBlendARGB32_SSE2() local
256 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
257 dst_scale = _mm_sub_epi32(_mm_set1_epi32(0xFFFF), dst_scale); in SkBlendARGB32_SSE2()
258 dst_scale = _mm_add_epi32(dst_scale, _mm_srli_epi32(dst_scale, 8)); in SkBlendARGB32_SSE2()
259 dst_scale = _mm_srli_epi32(dst_scale, 8); in SkBlendARGB32_SSE2()
261 dst_scale = _mm_shufflelo_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
262 dst_scale = _mm_shufflehi_epi16(dst_scale, _MM_SHUFFLE(2, 2, 0, 0)); in SkBlendARGB32_SSE2()
275 dst_rb = _mm_mullo_epi16(dst_rb, dst_scale); in SkBlendARGB32_SSE2()
276 dst_ag = _mm_mullo_epi16(dst_ag, dst_scale); in SkBlendARGB32_SSE2()
DSkBlitRow_opts_arm_neon.cpp716 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon() local
717 unsigned dr = (SkPacked32ToR16(sc) * alpha) + (SkGetPackedR16(dc) * dst_scale); in S32A_D565_Blend_neon()
718 unsigned dg = (SkPacked32ToG16(sc) * alpha) + (SkGetPackedG16(dc) * dst_scale); in S32A_D565_Blend_neon()
719 unsigned db = (SkPacked32ToB16(sc) * alpha) + (SkGetPackedB16(dc) * dst_scale); in S32A_D565_Blend_neon()
887 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() local
909 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon()
934 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon()
960 unsigned dst_scale; in S32A_Blend_BlitRow32_neon() local
967 dst_scale = vget_lane_u8(vsrc, 3); in S32A_Blend_BlitRow32_neon()
968 dst_scale = SkAlphaMulInv256(dst_scale, alpha256); in S32A_Blend_BlitRow32_neon()
[all …]
/external/skia/src/core/
DSkBlitter_A8.cpp103 unsigned dst_scale) { in blend_8_pixels() argument
104 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
105 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
106 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
107 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
108 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
109 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
110 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
111 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
115 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
[all …]
DSkBlitter_ARGB32.cpp146 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
148 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
149 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
150 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
151 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
152 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
153 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
154 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
155 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
159 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
[all …]
DSkXfermode4f.cpp281 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_linear_dst_1() local
295 r4 = s4 + d4 * dst_scale; in srcover_linear_dst_1()
302 dst[i] = Sk4f_toL32(s4 + d4 * dst_scale); in srcover_linear_dst_1()
310 Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_srgb_dst_1() local
325 r4 = s4 + d4 * dst_scale; in srcover_srgb_dst_1()
347 dst[i] = Sk4f_toS32(s4 + d4 * dst_scale); in srcover_srgb_dst_1()
419 Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_1_lcd() local
427 Sk4f r4 = s4 + d4 * dst_scale; in srcover_1_lcd()
441 Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_n_lcd() local
443 Sk4f r4 = s4 + d4 * dst_scale; in srcover_n_lcd()
DSkBlitRow_D16.cpp183 int dst_scale = SkAlphaMulInv256(sa, src_scale); in S32A_D565_Blend_Dither() local
193 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
194 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
195 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
DSkBlitter_RGB16.cpp591 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, in blend_8_pixels() argument
593 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); in blend_8_pixels()
594 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); in blend_8_pixels()
595 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); in blend_8_pixels()
596 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); in blend_8_pixels()
597 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); in blend_8_pixels()
598 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); in blend_8_pixels()
599 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); in blend_8_pixels()
600 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); in blend_8_pixels()
604 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color
[all …]
DSkSpriteBlitter_RGB16.cpp34 unsigned dst_scale = SkAlphaMulInv256(sa, src_scale); in D16_S32A_Blend_Pixel_helper() local
35 dr = (SkPacked32ToR16(sc) * src_scale + SkGetPackedR16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
36 dg = (SkPacked32ToG16(sc) * src_scale + SkGetPackedG16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
37 db = (SkPacked32ToB16(sc) * src_scale + SkGetPackedB16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
DSkXfermodeF16.cpp122 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_1() local
125 const Sk4f r4 = s4 + d4 * dst_scale; in srcover_1()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c557 double dst_scale = lp_const_scale(dst_type); in lp_build_conv() local
560 if (dst_scale != 1.0) { in lp_build_conv()
561 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale); in lp_build_conv()
/external/skia/include/core/
DSkColorPriv.h590 unsigned dst_scale = SkAlphaMulInv256(SkGetPackedA32(src), src_scale); in SkBlendARGB32() local
597 uint32_t dst_rb = (dst & mask) * dst_scale; in SkBlendARGB32()
598 uint32_t dst_ag = ((dst >> 8) & mask) * dst_scale; in SkBlendARGB32()