Searched refs:SkMulDiv255Round (Results 1 - 13 of 13) sorted by relevance
/third_party/skia/src/codec/ |
H A D | SkCodecPriv.h | 210 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()
|
H A D | SkSwizzler.cpp | 345 uint8_t pmgray = SkMulDiv255Round(src[1], src[0]); in swizzle_grayalpha_to_n32_premul() 679 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_rgba() 680 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_rgba() 681 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_rgba() 695 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_bgra() 696 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_bgra() 697 const uint8_t b = SkMulDiv255Round(src[2], src[3]); in swizzle_cmyk_to_bgra() 733 const uint8_t r = SkMulDiv255Round(src[0], src[3]); in swizzle_cmyk_to_565() 734 const uint8_t g = SkMulDiv255Round(src[1], src[3]); in swizzle_cmyk_to_565() 735 const uint8_t b = SkMulDiv255Round(sr in swizzle_cmyk_to_565() [all...] |
/third_party/skia/include/core/ |
H A D | SkColorPriv.h | 131 r = SkMulDiv255Round(r, a); in SkPremultiplyARGBInline() 132 g = SkMulDiv255Round(g, a); in SkPremultiplyARGBInline() 133 b = SkMulDiv255Round(b, a); in SkPremultiplyARGBInline()
|
H A D | SkMath.h | 50 static inline U8CPU SkMulDiv255Round(U16CPU a, U16CPU b) { in SkMulDiv255Round() function
|
/third_party/skia/gm/ |
H A D | bc1_transparency.cpp | 35 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()
|
/third_party/skia/src/gpu/ |
H A D | GrDataUtils.cpp | 79 int r5 = SkMulDiv255Round(31, rOrig); in create_etc1_block() 80 int g5 = SkMulDiv255Round(31, gOrig); in create_etc1_block() 81 int b5 = SkMulDiv255Round(31, bOrig); in create_etc1_block() 147 int r5 = SkMulDiv255Round(31, SkColorGetR(col)); in to565() 148 int g6 = SkMulDiv255Round(63, SkColorGetG(col)); in to565() 149 int b5 = SkMulDiv255Round(31, SkColorGetB(col)); in to565()
|
/third_party/skia/tests/ |
H A D | SrcOverTest.cpp | 23 return alpha + SkMulDiv255Round(dst, 255 - alpha); in test_srcover2()
|
H A D | MathTest.cpp | 339 int iround = SkMulDiv255Round(a, b); in test_muldiv255()
|
/third_party/skia/src/core/ |
H A D | SkAAClip.cpp | 594 static const AlphaProc kDiff = [](U8CPU a, U8CPU b) { return SkMulDiv255Round(a, 0xFF - b); }; in operateY() 595 static const AlphaProc kIntersect = [](U8CPU a, U8CPU b) { return SkMulDiv255Round(a, b); }; in operateY() 1702 unsigned newAlpha = SkMulDiv255Round(srcAA[0], row[1]); 1758 SkAlpha newAlpha = SkMulDiv255Round(alpha, row[1]); 1794 return SkMulDiv255Round(value, alpha); 1801 return SkPackRGB16(SkMulDiv255Round(r, alpha), 1802 SkMulDiv255Round(g, alpha), 1803 SkMulDiv255Round(b, alpha));
|
H A D | SkRecordOpts.cpp | 138 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
|
H A D | SkBlurMask.cpp | 68 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_solid_with_orig() 454 unsigned int maskval = SkMulDiv255Round(horizontalScanline[x], verticalScanline[y]); in BlurRect()
|
H A D | SkScan_Antihair.cpp | 824 #define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
|
/third_party/skia/src/gpu/ops/ |
H A D | DrawAtlasOp.cpp | 148 SkMulDiv255Round(SkColorGetA(spriteColor), paintAlpha)); in DrawAtlasOpImpl()
|
Completed in 13 milliseconds