/external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/ |
H A D | WEBPImageEncoder.cpp | 63 *data++ = SkMulDiv255Round(pixels[0], alpha); 64 *data++ = SkMulDiv255Round(pixels[1], alpha); 65 *data++ = SkMulDiv255Round(pixels[2], alpha);
|
H A D | JPEGImageEncoder.cpp | 98 *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 D | SrcOverTest.cpp | 24 return alpha + SkMulDiv255Round(dst, 255 - alpha);
|
H A D | MathTest.cpp | 72 // 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 D | SrcOverTest.cpp | 24 return alpha + SkMulDiv255Round(dst, 255 - alpha);
|
H A D | MathTest.cpp | 72 // 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 D | SkShader.cpp | 302 r = SkMulDiv255Round(r, a); 303 g = SkMulDiv255Round(g, a); 304 b = SkMulDiv255Round(b, a); 355 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha());
|
H A D | SkAAClip.cpp | 1352 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 D | SkBlitRow_D16.cpp | 77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
|
/external/skia/src/core/ |
H A D | SkShader.cpp | 308 r = SkMulDiv255Round(r, a); 309 g = SkMulDiv255Round(g, a); 310 b = SkMulDiv255Round(b, a); 361 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha());
|
H A D | SkAAClip.cpp | 1352 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 D | SkBlitRow_D16.cpp | 77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkMath.h | 200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { function
|
H A D | SkColorPriv.h | 520 r = SkMulDiv255Round(r, a); 521 g = SkMulDiv255Round(g, a); 522 b = SkMulDiv255Round(b, a);
|
/external/skia/include/core/ |
H A D | SkMath.h | 200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { function
|
H A D | SkColorPriv.h | 520 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 D | SkGradientShader.cpp | 360 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 D | SkGradientShader.cpp | 360 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 D | SkImageDecoder_libjpeg.cpp | 354 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 D | SkImageDecoder_libjpeg.cpp | 354 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 D | GrDrawState.cpp | 229 color |= (SkMulDiv255Round(a, b) << (c * 8));
|
/external/chromium_org/third_party/skia/src/opts/ |
H A D | SkBlitRow_opts_mips_dsp.cpp | 755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
|
/external/skia/src/gpu/ |
H A D | GrDrawState.cpp | 229 color |= (SkMulDiv255Round(a, b) << (c * 8));
|
/external/skia/src/opts/ |
H A D | SkBlitRow_opts_mips_dsp.cpp | 755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkBlurMask.cpp | 450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); 799 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]);
|