HomeSort by relevance Sort by last modified time
    Searched refs:dst_scale (Results 1 - 22 of 22) sorted by null

  /external/chromium_org/third_party/skia/src/core/
SkBlitRow_D16.cpp 77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
78 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
79 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
80 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); local
196 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8;
197 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8;
198 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8;
SkBlitter_A8.cpp 105 unsigned dst_scale) {
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale));
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale));
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale));
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale));
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale));
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale));
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale));
113 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale));
117 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
280 int dst_scale = 256 - SkAlphaMul(sa, src_scale); local
    [all...]
SkBlitRow_D32.cpp 30 unsigned dst_scale = 256 - src_scale; local
34 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
41 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
43 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
48 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
SkBlitter_ARGB32.cpp 131 #define blend_8_pixels(mask, dst, sc, dst_scale) \
133 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
134 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
135 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
136 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
137 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
138 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
139 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
140 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
144 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
198 unsigned dst_scale = 255 - SkGetPackedA32(color); local
250 unsigned dst_scale = 256 - aa; local
    [all...]
SkSpriteBlitter_RGB16.cpp 34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); local
36 SkGetPackedR16(dc) * dst_scale) >> 8;
38 SkGetPackedG16(dc) * dst_scale) >> 8;
40 SkGetPackedB16(dc) * dst_scale) >> 8;
SkBlitter_RGB16.cpp 606 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale,
608 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale);
609 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale);
610 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale);
611 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale);
612 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale);
613 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale);
614 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale);
615 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale);
619 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_colo
    [all...]
  /external/skia/src/core/
SkBlitRow_D16.cpp 77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
78 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
79 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
80 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); local
196 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8;
197 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8;
198 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8;
SkBlitter_A8.cpp 105 unsigned dst_scale) {
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale));
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale));
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale));
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale));
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale));
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale));
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale));
113 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale));
117 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
280 int dst_scale = 256 - SkAlphaMul(sa, src_scale); local
    [all...]
SkBlitRow_D32.cpp 30 unsigned dst_scale = 256 - src_scale; local
34 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
41 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
43 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale);
48 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
SkBlitter_ARGB32.cpp 131 #define blend_8_pixels(mask, dst, sc, dst_scale) \
133 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
134 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
135 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
136 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
137 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
138 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
139 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
140 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
144 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
198 unsigned dst_scale = 255 - SkGetPackedA32(color); local
250 unsigned dst_scale = 256 - aa; local
    [all...]
SkSpriteBlitter_RGB16.cpp 34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); local
36 SkGetPackedR16(dc) * dst_scale) >> 8;
38 SkGetPackedG16(dc) * dst_scale) >> 8;
40 SkGetPackedB16(dc) * dst_scale) >> 8;
SkBlitter_RGB16.cpp 606 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale,
608 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale);
609 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale);
610 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale);
611 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale);
612 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale);
613 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale);
614 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale);
615 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale);
619 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_colo
    [all...]
  /external/chromium_org/third_party/skia/src/opts/
SkBlitRow_opts_mips_dsp.cpp 663 register unsigned dst_scale = 0; local
755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
    [all...]
SkBlitRow_opts_arm_neon.cpp 448 // prepare dst_scale
452 // add dst * dst_scale to previous result
484 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
485 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
486 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
487 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
931 uint16_t dst_scale = 256 - src_scale; local
1002 unsigned dst_scale; local
    [all...]
SkBlitRow_opts_SSE2.cpp 28 uint32_t dst_scale = 256 - src_scale; local
33 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
46 __m128i dst_scale_wide = _mm_set1_epi16(dst_scale << 8);
105 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
    [all...]
  /external/skia/src/opts/
SkBlitRow_opts_mips_dsp.cpp 663 register unsigned dst_scale = 0; local
755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
    [all...]
SkBlitRow_opts_arm_neon.cpp 448 // prepare dst_scale
452 // add dst * dst_scale to previous result
484 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
485 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
486 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
487 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
931 uint16_t dst_scale = 256 - src_scale; local
1002 unsigned dst_scale; local
    [all...]
SkBlitRow_opts_SSE2.cpp 28 uint32_t dst_scale = 256 - src_scale; local
33 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
46 __m128i dst_scale_wide = _mm_set1_epi16(dst_scale << 8);
105 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
lp_bld_conv.c 557 double dst_scale = lp_const_scale(dst_type); local
560 if (dst_scale != 1.0) {
561 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale);
  /external/mesa3d/src/gallium/auxiliary/gallivm/
lp_bld_conv.c 557 double dst_scale = lp_const_scale(dst_type); local
560 if (dst_scale != 1.0) {
561 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale);
  /external/chromium_org/third_party/skia/include/core/
SkColorPriv.h 545 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); local
547 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);
    [all...]
  /external/skia/include/core/
SkColorPriv.h 545 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); local
547 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);
    [all...]

Completed in 949 milliseconds