Home
last modified time | relevance | path

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

/external/skia/include/gpu/
DGrInvariantOutput.h123 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 …]
DGrColor.h108 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/
DSkPixmap.cpp141 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()
DSkShader.cpp291 r = SkMulDiv255Round(r, a); in ColorShaderContext()
292 g = SkMulDiv255Round(g, a); in ColorShaderContext()
293 b = SkMulDiv255Round(b, a); in ColorShaderContext()
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.cpp141 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
DSkScan_Antihair.cpp817 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
DSkXfermode.cpp19 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b)
/external/skia/src/codec/
DSkSwizzler.cpp332 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/
DGrFragmentProcessor.cpp189 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/
DSkGradientShader.cpp415 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/
DSrcOverTest.cpp24 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
DMathTest.cpp82 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/
DSkMath.h175 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
DSkColorPriv.h550 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline()
551 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline()
552 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
/external/skia/src/images/
DSkImageDecoder_libjpeg.cpp201 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/
DGrDrawAtlasBatch.cpp127 color = SkColorSetA(color, SkMulDiv255Round(SkColorGetA(color), paintAlpha)); in GrDrawAtlasBatch()
/external/skia/src/effects/
DSkBlurMask.cpp450 *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/
DSkBlitRow_opts_mips_dsp.cpp755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp()
DSkBlitRow_opts_arm_neon.cpp716 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon()