HomeSort by relevance Sort by last modified time
    Searched defs:src_scale (Results 1 - 17 of 17) sorted by null

  /external/chromium_org/third_party/skia/src/core/
SkBlitRow_D32.cpp 29 unsigned src_scale = SkAlpha255To256(alpha); local
30 unsigned dst_scale = 256 - src_scale;
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);
SkBlitRow_D16.cpp 177 int src_scale = SkAlpha255To256(alpha); local
186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
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 276 int src_scale = SkAlpha255To256(aa); local
278 int dst_scale = 256 - SkAlphaMul(sa, src_scale);
280 return SkToU8((sa * src_scale + da * dst_scale) >> 8);
  /external/skia/src/core/
SkBlitRow_D32.cpp 29 unsigned src_scale = SkAlpha255To256(alpha); local
30 unsigned dst_scale = 256 - src_scale;
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);
SkBlitRow_D16.cpp 177 int src_scale = SkAlpha255To256(alpha); local
186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
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 276 int src_scale = SkAlpha255To256(aa); local
278 int dst_scale = 256 - SkAlphaMul(sa, src_scale);
280 return SkToU8((sa * src_scale + da * dst_scale) >> 8);
  /external/srec/srec/include/
frontapi.h 73 float src_scale; member in struct:__anon26482
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
lp_bld_conv.c 652 double src_scale = lp_const_scale(src_type); local
671 if (src_scale != 1.0) {
672 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, 1.0/src_scale);
  /external/chromium_org/third_party/skia/src/opts/
SkBlitRow_opts_SSE2.cpp 27 uint32_t src_scale = SkAlpha255To256(alpha); local
28 uint32_t dst_scale = 256 - src_scale;
33 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
45 __m128i src_scale_wide = _mm_set1_epi16(src_scale << 8);
105 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
253 uint32_t src_scale = SkAlpha255To256(alpha); local
257 __m128i src_scale_wide = _mm_set1_epi16(src_scale << 8);
279 // dst_alpha = dst_alpha * src_scale
296 // where rs.h stands for the higher byte of r * src_scale,
297 // and bs.h the higher byte of b * src_scale
    [all...]
SkBlitRow_opts_arm_neon.cpp 287 "vmul.u16 q2, q14, d2[0] \n\t" // sa * src_scale
288 "vmul.u16 q11, q11, d2[0] \n\t" // red result = src_red * src_scale
289 "vmul.u16 q12, q12, d2[0] \n\t" // grn result = src_grn * src_scale
290 "vmul.u16 q13, q13, d2[0] \n\t" // blu result = src_blu * src_scale
292 "vshr.u16 q2, q2, #8 \n\t" // sa * src_scale >> 8
293 "vsub.u16 q2, q3, q2 \n\t" // 255 - (sa * src_scale >> 8)
770 uint16_t src_scale = SkAlpha255To256(alpha); local
771 uint16_t dst_scale = 256 - src_scale;
793 /* get 64 bits of src, widen it, multiply by src_scale */
797 src_wide = vmulq_u16 (src_wide, vdupq_n_u16(src_scale));
    [all...]
SkXfermode_opts_arm_neon.cpp 228 uint16x8_t src_scale; local
230 src_scale = vsubw_u8(vdupq_n_u16(256), dst.val[NEON_A]);
232 ret.val[NEON_A] = dst.val[NEON_A] + SkAlphaMul_neon8(src.val[NEON_A], src_scale);
233 ret.val[NEON_R] = dst.val[NEON_R] + SkAlphaMul_neon8(src.val[NEON_R], src_scale);
234 ret.val[NEON_G] = dst.val[NEON_G] + SkAlphaMul_neon8(src.val[NEON_G], src_scale);
235 ret.val[NEON_B] = dst.val[NEON_B] + SkAlphaMul_neon8(src.val[NEON_B], src_scale);
  /external/mesa3d/src/gallium/auxiliary/gallivm/
lp_bld_conv.c 652 double src_scale = lp_const_scale(src_type); local
671 if (src_scale != 1.0) {
672 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, 1.0/src_scale);
  /external/skia/src/opts/
SkBlitRow_opts_SSE2.cpp 27 uint32_t src_scale = SkAlpha255To256(alpha); local
28 uint32_t dst_scale = 256 - src_scale;
33 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
45 __m128i src_scale_wide = _mm_set1_epi16(src_scale << 8);
105 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
253 uint32_t src_scale = SkAlpha255To256(alpha); local
257 __m128i src_scale_wide = _mm_set1_epi16(src_scale << 8);
279 // dst_alpha = dst_alpha * src_scale
296 // where rs.h stands for the higher byte of r * src_scale,
297 // and bs.h the higher byte of b * src_scale
    [all...]
SkBlitRow_opts_arm_neon.cpp 287 "vmul.u16 q2, q14, d2[0] \n\t" // sa * src_scale
288 "vmul.u16 q11, q11, d2[0] \n\t" // red result = src_red * src_scale
289 "vmul.u16 q12, q12, d2[0] \n\t" // grn result = src_grn * src_scale
290 "vmul.u16 q13, q13, d2[0] \n\t" // blu result = src_blu * src_scale
292 "vshr.u16 q2, q2, #8 \n\t" // sa * src_scale >> 8
293 "vsub.u16 q2, q3, q2 \n\t" // 255 - (sa * src_scale >> 8)
770 uint16_t src_scale = SkAlpha255To256(alpha); local
771 uint16_t dst_scale = 256 - src_scale;
793 /* get 64 bits of src, widen it, multiply by src_scale */
797 src_wide = vmulq_u16 (src_wide, vdupq_n_u16(src_scale));
    [all...]
SkXfermode_opts_arm_neon.cpp 228 uint16x8_t src_scale; local
230 src_scale = vsubw_u8(vdupq_n_u16(256), dst.val[NEON_A]);
232 ret.val[NEON_A] = dst.val[NEON_A] + SkAlphaMul_neon8(src.val[NEON_A], src_scale);
233 ret.val[NEON_R] = dst.val[NEON_R] + SkAlphaMul_neon8(src.val[NEON_R], src_scale);
234 ret.val[NEON_G] = dst.val[NEON_G] + SkAlphaMul_neon8(src.val[NEON_G], src_scale);
235 ret.val[NEON_B] = dst.val[NEON_B] + SkAlphaMul_neon8(src.val[NEON_B], src_scale);
  /external/chromium_org/third_party/skia/include/core/
SkColorPriv.h 399 unsigned src_scale = SkAlpha255To256(aa); local
400 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale));
402 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);
  /external/skia/include/core/
SkColorPriv.h 399 unsigned src_scale = SkAlpha255To256(aa); local
400 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale));
402 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);

Completed in 196 milliseconds