Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkColor_opts_SSE2.h221 __m128i dst_scale = SkGetPackedA32_SSE2(src); in SkBlendARGB32_SSE2() local
222 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
223 dst_scale = _mm_srli_epi16(dst_scale, 8); in SkBlendARGB32_SSE2()
224 dst_scale = _mm_sub_epi32(_mm_set1_epi32(256), dst_scale); in SkBlendARGB32_SSE2()
227 return _mm_add_epi8(result, SkAlphaMulQ_SSE2(dst, dst_scale)); in SkBlendARGB32_SSE2()
236 __m128i dst_scale = SkGetPackedA32_SSE2(src); in SkBlendARGB32_SSE2() local
237 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
238 dst_scale = _mm_srli_epi16(dst_scale, 8); in SkBlendARGB32_SSE2()
239 dst_scale = _mm_sub_epi32(_mm_set1_epi32(256), dst_scale); in SkBlendARGB32_SSE2()
242 return _mm_add_epi8(result, SkAlphaMulQ_SSE2(dst, dst_scale)); in SkBlendARGB32_SSE2()
DSkBlitRow_opts_mips_dsp.cpp663 register unsigned dst_scale = 0; in S32A_D565_Blend_mips_dsp() local
742 [dst_scale]"+r"(dst_scale), [s0]"=&r"(s0), [s1]"=&r"(s1), in S32A_D565_Blend_mips_dsp()
755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp() local
756 unsigned dr = (SkPacked32ToR16(sc) * alpha) + (SkGetPackedR16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp()
757 unsigned dg = (SkPacked32ToG16(sc) * alpha) + (SkGetPackedG16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp()
758 unsigned db = (SkPacked32ToB16(sc) * alpha) + (SkGetPackedB16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp()
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()
1163 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() local
1185 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon()
1209 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon()
1234 unsigned dst_scale; in S32A_Blend_BlitRow32_neon() local
1241 dst_scale = vget_lane_u8(vsrc, 3); in S32A_Blend_BlitRow32_neon()
1242 dst_scale *= alpha256; in S32A_Blend_BlitRow32_neon()
[all …]
DSkBlitRow_opts_SSE2.cpp29 uint32_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_SSE2() local
34 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
49 dst_pixel = SkAlphaMulQ_SSE2(dst_pixel, dst_scale); in S32_Blend_BlitRow32_SSE2()
63 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
/external/skia/src/core/
DSkXfermode4f.cpp256 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_linear_dst_1() local
270 r4 = s4 + d4 * dst_scale; in srcover_linear_dst_1()
282 s4_255 + d0 * dst_scale, in srcover_linear_dst_1()
283 s4_255 + d1 * dst_scale, in srcover_linear_dst_1()
284 s4_255 + d2 * dst_scale, in srcover_linear_dst_1()
285 s4_255 + d3 * dst_scale); in srcover_linear_dst_1()
291 dst[i] = to_4b(s4_255 + d4 * dst_scale); in srcover_linear_dst_1()
299 Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_srgb_dst_1() local
313 r4 = s4 + d4 * dst_scale; in srcover_srgb_dst_1()
324 linear_unit_to_srgb_255f(s4 + d0 * dst_scale), in srcover_srgb_dst_1()
[all …]
DSkBlitter_A8.cpp104 unsigned dst_scale) { in blend_8_pixels() argument
105 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
106 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
107 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
108 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
109 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
110 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
111 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
112 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
116 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
[all …]
DSkBlitRow_D32.cpp29 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() local
33 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
40 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
42 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
47 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
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 …]
DSkBlitRow_D16.cpp183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(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.cpp600 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, in blend_8_pixels() argument
602 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); in blend_8_pixels()
603 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); in blend_8_pixels()
604 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); in blend_8_pixels()
605 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); in blend_8_pixels()
606 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); in blend_8_pixels()
607 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); in blend_8_pixels()
608 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); in blend_8_pixels()
609 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); in blend_8_pixels()
613 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color
[all …]
DSkXfermodeU64.cpp191 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_1() local
195 const Sk4f r4bias = s4bias + d4bias * dst_scale; in srcover_1()
208 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_n() local
211 const Sk4f r4bias = s4bias + d4bias * dst_scale; in srcover_n()
DSkSpriteBlitter_RGB16.cpp34 unsigned dst_scale = 255 - SkAlphaMul(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()
/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.h575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() local
577 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()