Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkCodecPriv.h210 r = SkMulDiv255Round(r, a); in premultiply_argb_as_rgba()
211 g = SkMulDiv255Round(g, a); in premultiply_argb_as_rgba()
212 b = SkMulDiv255Round(b, a); in premultiply_argb_as_rgba()
220 r = SkMulDiv255Round(r, a); in premultiply_argb_as_bgra()
221 g = SkMulDiv255Round(g, a); in premultiply_argb_as_bgra()
222 b = SkMulDiv255Round(b, a); in premultiply_argb_as_bgra()
DSkSwizzler.cpp357 uint8_t pmgray = SkMulDiv255Round(src[1], src[0]); in swizzle_grayalpha_to_n32_premul()
691 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_rgba()
692 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_rgba()
693 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_rgba()
707 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_bgra()
708 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_bgra()
709 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_bgra()
745 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_565()
746 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_565()
747 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_565()
/external/skia/include/core/
DSkColorPriv.h133 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline()
134 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline()
135 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
/external/skia/gm/
Dbc1_transparency.cpp35 int r5 = SkMulDiv255Round(31, SkColorGetR(col)); in to565()
36 int g6 = SkMulDiv255Round(63, SkColorGetG(col)); in to565()
37 int b5 = SkMulDiv255Round(31, SkColorGetB(col)); in to565()
/external/skia/src/gpu/ganesh/
DGrDataUtils.cpp80 int r5 = SkMulDiv255Round(31, rOrig); in create_etc1_block()
81 int g5 = SkMulDiv255Round(31, gOrig); in create_etc1_block()
82 int b5 = SkMulDiv255Round(31, bOrig); in create_etc1_block()
138 int r5 = SkMulDiv255Round(31, SkColorGetR(col)); in to565()
139 int g6 = SkMulDiv255Round(63, SkColorGetG(col)); in to565()
140 int b5 = SkMulDiv255Round(31, SkColorGetB(col)); in to565()
/external/skia/include/private/base/
DSkMath.h73 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
/external/skia/tests/
DSrcOverTest.cpp26 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
DMathTest.cpp345 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
/external/skia/src/core/
DSkAAClip.cpp595 static const AlphaProc kDiff = [](U8CPU a, U8CPU b) { return SkMulDiv255Round(a, 0xFF - b); }; in operateY()
596 static const AlphaProc kIntersect = [](U8CPU a, U8CPU b) { return SkMulDiv255Round(a, b); }; in operateY()
1703 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]); in merge()
1759 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]); in blitV()
1795 return SkMulDiv255Round(value, alpha); in mergeOne()
1802 return SkPackRGB16(SkMulDiv255Round(r, alpha), in mergeOne()
1803 SkMulDiv255Round(g, alpha), in mergeOne()
1804 SkMulDiv255Round(b, alpha)); in mergeOne()
DSkRecordOpts.cpp138 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
DSkBlurMask.cpp70 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_solid_with_orig()
456 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]); in BlurRect()
DSkScan_Antihair.cpp824 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
/external/skia/src/gpu/ganesh/ops/
DDrawAtlasOp.cpp148 SkMulDiv255Round(SkColorGetA(spriteColor), paintAlpha)); in DrawAtlasOpImpl()