/external/skia/include/gpu/ |
D | GrInvariantOutput.h | 123 fColor = GrColorPackRGBA(SkMulDiv255Round(GrColorUnpackR(fColor), alpha), in mulByKnownSingleComponent() 124 SkMulDiv255Round(GrColorUnpackG(fColor), alpha), in mulByKnownSingleComponent() 125 SkMulDiv255Round(GrColorUnpackB(fColor), alpha), in mulByKnownSingleComponent() 126 SkMulDiv255Round(GrColorUnpackA(fColor), alpha)); in mulByKnownSingleComponent() 141 SkMulDiv255Round(GrColorUnpackR(fColor), GrColorUnpackR(color)), in mulByKnownFourComponents() 142 SkMulDiv255Round(GrColorUnpackG(fColor), GrColorUnpackG(color)), in mulByKnownFourComponents() 143 SkMulDiv255Round(GrColorUnpackB(fColor), GrColorUnpackB(color)), in mulByKnownFourComponents() 144 SkMulDiv255Round(GrColorUnpackA(fColor), a)); in mulByKnownFourComponents() 167 SkMulDiv255Round(preAlpha, GrColorUnpackR(color)), in mulAlphaByKnownFourComponents() 168 SkMulDiv255Round(preAlpha, GrColorUnpackG(color)), in mulAlphaByKnownFourComponents() [all …]
|
D | GrColor.h | 108 U8CPU r = SkMulDiv255Round(GrColorUnpackR(c0), GrColorUnpackR(c1)); in GrColorMul() 109 U8CPU g = SkMulDiv255Round(GrColorUnpackG(c0), GrColorUnpackG(c1)); in GrColorMul() 110 U8CPU b = SkMulDiv255Round(GrColorUnpackB(c0), GrColorUnpackB(c1)); in GrColorMul() 111 U8CPU a = SkMulDiv255Round(GrColorUnpackA(c0), GrColorUnpackA(c1)); in GrColorMul() 148 return GrColorPackRGBA(SkMulDiv255Round(r, a), in GrPremulColor() 149 SkMulDiv255Round(g, a), in GrPremulColor() 150 SkMulDiv255Round(b, a), in GrPremulColor()
|
/external/skia/src/core/ |
D | SkPixmap.cpp | 141 r = SkMulDiv255Round(r, a); in erase() 142 g = SkMulDiv255Round(g, a); in erase() 143 b = SkMulDiv255Round(b, a); in erase() 168 r = SkMulDiv255Round(r, a); in erase() 169 g = SkMulDiv255Round(g, a); in erase() 170 b = SkMulDiv255Round(b, a); in erase() 191 r = SkMulDiv255Round(r, a); in erase() 192 g = SkMulDiv255Round(g, a); in erase() 193 b = SkMulDiv255Round(b, a); in erase()
|
D | SkShader.cpp | 291 r = SkMulDiv255Round(r, a); in ColorShaderContext() 292 g = SkMulDiv255Round(g, a); in ColorShaderContext() 293 b = SkMulDiv255Round(b, a); in ColorShaderContext()
|
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 | 141 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
|
D | SkScan_Antihair.cpp | 817 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
|
D | SkXfermode.cpp | 19 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
|
/external/skia/src/codec/ |
D | SkSwizzler.cpp | 332 uint8_t pmgray = SkMulDiv255Round(src[1], src[0]); in swizzle_grayalpha_to_n32_premul() 586 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_n32() 587 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_n32() 588 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_n32() 617 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_565() 618 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_565() 619 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_565()
|
/external/skia/src/gpu/ |
D | GrFragmentProcessor.cpp | 189 color |= SkMulDiv255Round(GrColorUnpackR(c0), GrColorUnpackR(c1)) << in MulOutputByInputUnpremulColor() 193 color |= SkMulDiv255Round(GrColorUnpackG(c0), GrColorUnpackG(c1)) << in MulOutputByInputUnpremulColor() 197 color |= SkMulDiv255Round(GrColorUnpackB(c0), GrColorUnpackB(c1)) << in MulOutputByInputUnpremulColor()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 415 uint32_t a0 = SkMulDiv255Round(SkColorGetA(c0), paintAlpha); in Build32bitCache() 416 uint32_t a1 = SkMulDiv255Round(SkColorGetA(c1), paintAlpha); in Build32bitCache() 431 r0 = SkMulDiv255Round(r0, a0); in Build32bitCache() 432 g0 = SkMulDiv255Round(g0, a0); in Build32bitCache() 433 b0 = SkMulDiv255Round(b0, a0); in Build32bitCache() 435 r1 = SkMulDiv255Round(r1, a1); in Build32bitCache() 436 g1 = SkMulDiv255Round(g1, a1); in Build32bitCache() 437 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 | 82 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround() 94 unsigned prod1 = SkMulDiv255Round(a, b); in test_muldivround() 426 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
|
/external/skia/include/core/ |
D | SkMath.h | 175 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
|
D | SkColorPriv.h | 550 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline() 551 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline() 552 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
|
/external/skia/src/images/ |
D | SkImageDecoder_libjpeg.cpp | 201 scanline[0] = SkMulDiv255Round(scanline[0], scanline[3]); in convert_CMYK_to_RGB() 202 scanline[1] = SkMulDiv255Round(scanline[1], scanline[3]); in convert_CMYK_to_RGB() 203 scanline[2] = SkMulDiv255Round(scanline[2], scanline[3]); in convert_CMYK_to_RGB()
|
/external/skia/src/gpu/batches/ |
D | GrDrawAtlasBatch.cpp | 127 color = SkColorSetA(color, SkMulDiv255Round(SkColorGetA(color), paintAlpha)); in GrDrawAtlasBatch()
|
/external/skia/src/effects/ |
D | SkBlurMask.cpp | 450 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_with_orig() 797 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 | SkBlitRow_opts_arm_neon.cpp | 716 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon()
|