Home
last modified time | relevance | path

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

/external/skia/include/gpu/
DGrInvariantOutput.h122 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/
DSkShader.cpp300 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()
DSkAAClip.cpp1420 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()
DSkRecordOpts.cpp113 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
DSkBitmap.cpp685 r = SkMulDiv255Round(r, a); in internalErase()
686 g = SkMulDiv255Round(g, a); in internalErase()
687 b = SkMulDiv255Round(b, a); in internalErase()
DSkScan_Antihair.cpp817 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
DSkXfermode.cpp35 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
/external/skia/src/codec/
DSkJpegCodec.cpp107 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/
DSkGradientShader.cpp399 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/
DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
DMathTest.cpp81 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/
DSkMath.h203 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
DSkColorPriv.h529 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline()
530 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline()
531 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
/external/skia/src/images/
DSkImageDecoder_libjpeg.cpp383 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/
Dfiltermain.cpp103 int newA = SkMulDiv255Round(a0, a1); in apply_0()
458 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/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp()
DSkXfermode_opts_arm_neon.cpp9 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
DSkBlitRow_opts_arm_neon.cpp718 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon()
/external/skia/src/gpu/
DSkGpuDevice.cpp1865 color = SkColorSetA(color, SkMulDiv255Round(SkColorGetA(color), paint.getAlpha())); in drawVertices()