Searched refs:SkMulDiv255Round (Results 1 - 25 of 38) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/
H A DWEBPImageEncoder.cpp63 *data++ = SkMulDiv255Round(pixels[0], alpha);
64 *data++ = SkMulDiv255Round(pixels[1], alpha);
65 *data++ = SkMulDiv255Round(pixels[2], alpha);
H A DJPEGImageEncoder.cpp98 *output++ = SkMulDiv255Round(pixels[0], alpha);
99 *output++ = SkMulDiv255Round(pixels[1], alpha);
100 *output++ = SkMulDiv255Round(pixels[2], alpha);
/external/chromium_org/third_party/skia/tests/
H A DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha);
H A DMathTest.cpp72 // test that SkMul16ShiftRound and SkMulDiv255Round return the same result
80 unsigned prod1 = SkMulDiv255Round(a, b);
92 unsigned prod1 = SkMulDiv255Round(a, b);
339 int iround = SkMulDiv255Round(a, b);
/external/skia/tests/
H A DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha);
H A DMathTest.cpp72 // test that SkMul16ShiftRound and SkMulDiv255Round return the same result
80 unsigned prod1 = SkMulDiv255Round(a, b);
92 unsigned prod1 = SkMulDiv255Round(a, b);
339 int iround = SkMulDiv255Round(a, b);
/external/chromium_org/third_party/skia/src/core/
H A DSkShader.cpp302 r = SkMulDiv255Round(r, a);
303 g = SkMulDiv255Round(g, a);
304 b = SkMulDiv255Round(b, a);
355 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha());
H A DSkAAClip.cpp1352 return SkMulDiv255Round(alphaA, alphaB);
1357 return alphaA + alphaB - SkMulDiv255Round(alphaA, alphaB);
1362 return SkMulDiv255Round(alphaA, 0xFF - alphaB);
1367 return alphaA + alphaB - 2 * SkMulDiv255Round(alphaA, alphaB);
1887 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]);
1943 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]);
1979 return SkMulDiv255Round(value, alpha);
1985 return SkPackRGB16(SkMulDiv255Round(r, alpha),
1986 SkMulDiv255Round(g, alpha),
1987 SkMulDiv255Round(
[all...]
H A DSkBlitRow_D16.cpp77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
/external/skia/src/core/
H A DSkShader.cpp308 r = SkMulDiv255Round(r, a);
309 g = SkMulDiv255Round(g, a);
310 b = SkMulDiv255Round(b, a);
361 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha());
H A DSkAAClip.cpp1352 return SkMulDiv255Round(alphaA, alphaB);
1357 return alphaA + alphaB - SkMulDiv255Round(alphaA, alphaB);
1362 return SkMulDiv255Round(alphaA, 0xFF - alphaB);
1367 return alphaA + alphaB - 2 * SkMulDiv255Round(alphaA, alphaB);
1887 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]);
1943 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]);
1979 return SkMulDiv255Round(value, alpha);
1985 return SkPackRGB16(SkMulDiv255Round(r, alpha),
1986 SkMulDiv255Round(g, alpha),
1987 SkMulDiv255Round(
[all...]
H A DSkBlitRow_D16.cpp77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
/external/chromium_org/third_party/skia/include/core/
H A DSkMath.h200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { function
H A DSkColorPriv.h520 r = SkMulDiv255Round(r, a);
521 g = SkMulDiv255Round(g, a);
522 b = SkMulDiv255Round(b, a);
/external/skia/include/core/
H A DSkMath.h200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { function
H A DSkColorPriv.h520 r = SkMulDiv255Round(r, a);
521 g = SkMulDiv255Round(g, a);
522 b = SkMulDiv255Round(b, a);
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkGradientShader.cpp360 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha);
361 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha);
376 r0 = SkMulDiv255Round(r0, a0);
377 g0 = SkMulDiv255Round(g0, a0);
378 b0 = SkMulDiv255Round(b0, a0);
380 r1 = SkMulDiv255Round(r1, a1);
381 g1 = SkMulDiv255Round(g1, a1);
382 b1 = SkMulDiv255Round(b1, a1);
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp360 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha);
361 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha);
376 r0 = SkMulDiv255Round(r0, a0);
377 g0 = SkMulDiv255Round(g0, a0);
378 b0 = SkMulDiv255Round(b0, a0);
380 r1 = SkMulDiv255Round(r1, a1);
381 g1 = SkMulDiv255Round(g1, a1);
382 b1 = SkMulDiv255Round(b1, a1);
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_libjpeg.cpp354 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]);
355 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]);
356 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]);
/external/skia/src/images/
H A DSkImageDecoder_libjpeg.cpp354 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]);
355 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]);
356 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrDrawState.cpp229 color |= (SkMulDiv255Round(a, b) << (c * 8));
/external/chromium_org/third_party/skia/src/opts/
H A DSkBlitRow_opts_mips_dsp.cpp755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
/external/skia/src/gpu/
H A DGrDrawState.cpp229 color |= (SkMulDiv255Round(a, b) << (c * 8));
/external/skia/src/opts/
H A DSkBlitRow_opts_mips_dsp.cpp755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
/external/chromium_org/third_party/skia/src/effects/
H A DSkBlurMask.cpp450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d));
799 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]);

Completed in 415 milliseconds

12