/external/skia/include/gpu/ |
D | GrInvariantOutput.h | 122 fColor = GrColorPackRGBA(SkMulDiv255Round(GrColorUnpackR(fColor), alpha), in mulByKnownSingleComponent() 123 SkMulDiv255Round(GrColorUnpackG(fColor), alpha), in mulByKnownSingleComponent() 124 SkMulDiv255Round(GrColorUnpackB(fColor), alpha), in mulByKnownSingleComponent() 125 SkMulDiv255Round(GrColorUnpackA(fColor), alpha)); in mulByKnownSingleComponent() 140 SkMulDiv255Round(GrColorUnpackR(fColor), GrColorUnpackR(color)), in mulByKnownFourComponents() 141 SkMulDiv255Round(GrColorUnpackG(fColor), GrColorUnpackG(color)), in mulByKnownFourComponents() 142 SkMulDiv255Round(GrColorUnpackB(fColor), GrColorUnpackB(color)), in mulByKnownFourComponents() 143 SkMulDiv255Round(GrColorUnpackA(fColor), a)); in mulByKnownFourComponents() 166 SkMulDiv255Round(preAlpha, GrColorUnpackR(color)), in mulAlphaByKnownFourComponents() 167 SkMulDiv255Round(preAlpha, GrColorUnpackG(color)), in mulAlphaByKnownFourComponents() [all …]
|
/external/skia/src/core/ |
D | SkShader.cpp | 300 r = SkMulDiv255Round(r, a); in ColorShaderContext() 301 g = SkMulDiv255Round(g, a); in ColorShaderContext() 302 b = SkMulDiv255Round(b, a); in ColorShaderContext() 353 U8CPU newA = SkMulDiv255Round(SkColorGetA(fColor), paint.getAlpha()); in asFragmentProcessor()
|
D | SkAAClip.cpp | 1420 return SkMulDiv255Round(alphaA, alphaB); in sectAlphaProc() 1425 return alphaA + alphaB - SkMulDiv255Round(alphaA, alphaB); in unionAlphaProc() 1430 return SkMulDiv255Round(alphaA, 0xFF - alphaB); in diffAlphaProc() 1435 return alphaA + alphaB - 2 * SkMulDiv255Round(alphaA, alphaB); in xorAlphaProc() 1955 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]); in merge() 2011 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]); in blitV() 2047 return SkMulDiv255Round(value, alpha); in mergeOne() 2054 return SkPackRGB16(SkMulDiv255Round(r, alpha), in mergeOne() 2055 SkMulDiv255Round(g, alpha), in mergeOne() 2056 SkMulDiv255Round(b, alpha)); in mergeOne()
|
D | SkRecordOpts.cpp | 113 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
|
D | SkBitmap.cpp | 685 r = SkMulDiv255Round(r, a); in internalErase() 686 g = SkMulDiv255Round(g, a); in internalErase() 687 b = SkMulDiv255Round(b, a); in internalErase()
|
D | SkScan_Antihair.cpp | 817 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
|
D | SkXfermode.cpp | 35 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
|
/external/skia/src/codec/ |
D | SkJpegCodec.cpp | 107 row[0] = SkMulDiv255Round(row[0], row[3]); in convert_CMYK_to_RGB() 108 row[1] = SkMulDiv255Round(row[1], row[3]); in convert_CMYK_to_RGB() 109 row[2] = SkMulDiv255Round(row[2], row[3]); in convert_CMYK_to_RGB()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 399 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache() 400 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache() 415 r0 = SkMulDiv255Round(r0, a0); in Build32bitCache() 416 g0 = SkMulDiv255Round(g0, a0); in Build32bitCache() 417 b0 = SkMulDiv255Round(b0, a0); in Build32bitCache() 419 r1 = SkMulDiv255Round(r1, a1); in Build32bitCache() 420 g1 = SkMulDiv255Round(g1, a1); in Build32bitCache() 421 b1 = SkMulDiv255Round(b1, a1); in Build32bitCache()
|
/external/skia/tests/ |
D | SrcOverTest.cpp | 24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
|
D | MathTest.cpp | 81 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround() 93 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround() 393 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
|
/external/skia/include/core/ |
D | SkMath.h | 203 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
|
D | SkColorPriv.h | 529 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline() 530 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline() 531 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
|
/external/skia/src/images/ |
D | SkImageDecoder_libjpeg.cpp | 383 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]); in convert_CMYK_to_RGB() 384 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]); in convert_CMYK_to_RGB() 385 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]); in convert_CMYK_to_RGB()
|
/external/skia/tools/ |
D | filtermain.cpp | 103 int newA = SkMulDiv255Round(a0, a1); in apply_0() 458 int newA = SkMulDiv255Round(a0, a1); in apply_7()
|
/external/skia/src/effects/ |
D | SkBlurMask.cpp | 450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_with_orig() 799 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]); in BlurRect()
|
/external/skia/src/opts/ |
D | SkBlitRow_opts_mips_dsp.cpp | 755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp()
|
D | SkXfermode_opts_arm_neon.cpp | 9 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
|
D | SkBlitRow_opts_arm_neon.cpp | 718 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon()
|
/external/skia/src/gpu/ |
D | SkGpuDevice.cpp | 1865 color = SkColorSetA(color, SkMulDiv255Round(SkColorGetA(color), paint.getAlpha())); in drawVertices()
|