Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/
DWEBPImageEncoder.cpp63 *data++ = SkMulDiv255Round(pixels[0], alpha); in rgbPictureImport()
64 *data++ = SkMulDiv255Round(pixels[1], alpha); in rgbPictureImport()
65 *data++ = SkMulDiv255Round(pixels[2], alpha); in rgbPictureImport()
DJPEGImageEncoder.cpp98 *output++ = SkMulDiv255Round(pixels[0], alpha); in RGBAtoRGB()
99 *output++ = SkMulDiv255Round(pixels[1], alpha); in RGBAtoRGB()
100 *output++ = SkMulDiv255Round(pixels[2], alpha); in RGBAtoRGB()
/external/chromium_org/third_party/skia/src/core/
DSkShader.cpp302 r = SkMulDiv255Round(r, a); in ColorShaderContext()
303 g = SkMulDiv255Round(g, a); in ColorShaderContext()
304 b = SkMulDiv255Round(b, a); in ColorShaderContext()
355 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha()); in asNewEffect()
DSkAAClip.cpp1352 return SkMulDiv255Round(alphaA, alphaB); in sectAlphaProc()
1357 return alphaA + alphaB - SkMulDiv255Round(alphaA, alphaB); in unionAlphaProc()
1362 return SkMulDiv255Round(alphaA, 0xFF - alphaB); in diffAlphaProc()
1367 return alphaA + alphaB - 2 * SkMulDiv255Round(alphaA, alphaB); in xorAlphaProc()
1887 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]); in merge()
1943 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]); in blitV()
1979 return SkMulDiv255Round(value, alpha); in mergeOne()
1985 return SkPackRGB16(SkMulDiv255Round(r, alpha), in mergeOne()
1986 SkMulDiv255Round(g, alpha), in mergeOne()
1987 SkMulDiv255Round(b, alpha)); in mergeOne()
[all …]
DSkBlitRow_D16.cpp77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend()
/external/skia/src/core/
DSkShader.cpp308 r = SkMulDiv255Round(r, a); in ColorShaderContext()
309 g = SkMulDiv255Round(g, a); in ColorShaderContext()
310 b = SkMulDiv255Round(b, a); in ColorShaderContext()
361 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha()); in asNewEffect()
DSkAAClip.cpp1352 return SkMulDiv255Round(alphaA, alphaB); in sectAlphaProc()
1357 return alphaA + alphaB - SkMulDiv255Round(alphaA, alphaB); in unionAlphaProc()
1362 return SkMulDiv255Round(alphaA, 0xFF - alphaB); in diffAlphaProc()
1367 return alphaA + alphaB - 2 * SkMulDiv255Round(alphaA, alphaB); in xorAlphaProc()
1887 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]); in merge()
1943 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]); in blitV()
1979 return SkMulDiv255Round(value, alpha); in mergeOne()
1985 return SkPackRGB16(SkMulDiv255Round(r, alpha), in mergeOne()
1986 SkMulDiv255Round(g, alpha), in mergeOne()
1987 SkMulDiv255Round(b, alpha)); in mergeOne()
[all …]
DSkBlitRow_D16.cpp77 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp360 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache()
361 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache()
376 r0 = SkMulDiv255Round(r0, a0); in Build32bitCache()
377 g0 = SkMulDiv255Round(g0, a0); in Build32bitCache()
378 b0 = SkMulDiv255Round(b0, a0); in Build32bitCache()
380 r1 = SkMulDiv255Round(r1, a1); in Build32bitCache()
381 g1 = SkMulDiv255Round(g1, a1); in Build32bitCache()
382 b1 = SkMulDiv255Round(b1, a1); in Build32bitCache()
/external/chromium_org/third_party/skia/src/effects/gradients/
DSkGradientShader.cpp360 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache()
361 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache()
376 r0 = SkMulDiv255Round(r0, a0); in Build32bitCache()
377 g0 = SkMulDiv255Round(g0, a0); in Build32bitCache()
378 b0 = SkMulDiv255Round(b0, a0); in Build32bitCache()
380 r1 = SkMulDiv255Round(r1, a1); in Build32bitCache()
381 g1 = SkMulDiv255Round(g1, a1); in Build32bitCache()
382 b1 = SkMulDiv255Round(b1, a1); in Build32bitCache()
/external/skia/tests/
DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
DMathTest.cpp80 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround()
92 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround()
339 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
/external/chromium_org/third_party/skia/tests/
DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
DMathTest.cpp80 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround()
92 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround()
339 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
/external/chromium_org/third_party/skia/include/core/
DSkMath.h200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
DSkColorPriv.h520 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline()
521 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline()
522 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
/external/skia/include/core/
DSkMath.h200 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
DSkColorPriv.h520 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline()
521 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline()
522 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
/external/skia/src/images/
DSkImageDecoder_libjpeg.cpp354 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]); in convert_CMYK_to_RGB()
355 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]); in convert_CMYK_to_RGB()
356 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]); in convert_CMYK_to_RGB()
/external/chromium_org/third_party/skia/src/images/
DSkImageDecoder_libjpeg.cpp354 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]); in convert_CMYK_to_RGB()
355 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]); in convert_CMYK_to_RGB()
356 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]); in convert_CMYK_to_RGB()
/external/skia/tools/
Dfiltermain.cpp104 int newA = SkMulDiv255Round(a0, a1); in apply_0()
496 int newA = SkMulDiv255Round(a0, a1); in apply_7()
/external/chromium_org/third_party/skia/tools/
Dfiltermain.cpp104 int newA = SkMulDiv255Round(a0, a1); in apply_0()
496 int newA = SkMulDiv255Round(a0, a1); in apply_7()
/external/skia/src/effects/
DSkBlurMask.cpp450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_with_orig()
799 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]); in BlurRect()
/external/chromium_org/third_party/skia/src/effects/
DSkBlurMask.cpp450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_with_orig()
799 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]); in BlurRect()
/external/chromium_org/third_party/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp()

12