/third_party/skia/src/core/ |
D | SkMaskGamma.h | 34 static U8CPU computeLuminance(SkScalar gamma, SkColor c) { in computeLuminance() 56 template<U8CPU N> static inline U8CPU sk_t_scale255(U8CPU base) { in sk_t_scale255() 58 U8CPU lum = base; in sk_t_scale255() 64 template<> /*static*/ inline U8CPU sk_t_scale255<1>(U8CPU base) { 67 template<> /*static*/ inline U8CPU sk_t_scale255<2>(U8CPU base) { 70 template<> /*static*/ inline U8CPU sk_t_scale255<4>(U8CPU base) { 73 template<> /*static*/ inline U8CPU sk_t_scale255<8>(U8CPU base) { 80 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, 114 for (U8CPU i = 0; i < (1 << MAX_LUM_BITS); ++i) { in SkTMaskGamma() 115 U8CPU lum = sk_t_scale255<MAX_LUM_BITS>(i); in SkTMaskGamma() [all …]
|
D | SkColor.cpp | 13 SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPreMultiplyARGB() 24 static inline SkScalar ByteToScalar(U8CPU x) { in ByteToScalar() 29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { in ByteDivToScalar() 34 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { in SkRGBToHSV() 74 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { in SkHSVToColor() 80 U8CPU v_byte = SkScalarRoundToInt(v * 255); in SkHSVToColor()
|
D | SkCoreBlitters.h | 80 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 81 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 101 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 102 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 113 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 114 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override;
|
D | SkBlitter.h | 81 virtual void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiH2() 94 virtual void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiV2() 262 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 263 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 318 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override { SHARD(blitAntiH2(x, y, a0, a1)) } in blitAntiH2() 319 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override { SHARD(blitAntiV2(x, y, a0, a1)) } in blitAntiV2()
|
D | SkMathPriv.h | 100 static inline U8CPU SkMulDiv255Trunc(U8CPU a, U8CPU b) { in SkMulDiv255Trunc() 110 static inline U8CPU SkMulDiv255Ceiling(U8CPU a, U8CPU b) { in SkMulDiv255Ceiling()
|
/third_party/flutter/skia/src/core/ |
D | SkMaskGamma.h | 34 static U8CPU computeLuminance(SkScalar gamma, SkColor c) { in computeLuminance() 56 template<U8CPU N> static inline U8CPU sk_t_scale255(U8CPU base) { in sk_t_scale255() 58 U8CPU lum = base; in sk_t_scale255() 64 template<> /*static*/ inline U8CPU sk_t_scale255<1>(U8CPU base) { 67 template<> /*static*/ inline U8CPU sk_t_scale255<2>(U8CPU base) { 70 template<> /*static*/ inline U8CPU sk_t_scale255<4>(U8CPU base) { 73 template<> /*static*/ inline U8CPU sk_t_scale255<8>(U8CPU base) { 80 void SkTMaskGamma_build_correcting_lut(uint8_t table[256], U8CPU srcI, SkScalar contrast, 114 for (U8CPU i = 0; i < (1 << MAX_LUM_BITS); ++i) { in SkTMaskGamma() 115 U8CPU lum = sk_t_scale255<MAX_LUM_BITS>(i); in SkTMaskGamma() [all …]
|
D | SkColor.cpp | 12 SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPreMultiplyARGB() 23 static inline SkScalar ByteToScalar(U8CPU x) { in ByteToScalar() 28 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { in ByteDivToScalar() 33 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { in SkRGBToHSV() 73 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { in SkHSVToColor() 79 U8CPU v_byte = SkScalarRoundToInt(v * 255); in SkHSVToColor()
|
D | SkCoreBlitters.h | 80 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 81 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 101 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 102 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 113 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 114 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override;
|
D | SkBlitter.h | 80 virtual void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiH2() 93 virtual void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiV2() 260 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 261 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 316 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override { SHARD(blitAntiH2(x, y, a0, a1)) } in blitAntiH2() 317 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override { SHARD(blitAntiV2(x, y, a0, a1)) } in blitAntiV2()
|
D | SkMathPriv.h | 100 static inline U8CPU SkMulDiv255Trunc(U8CPU a, U8CPU b) { in SkMulDiv255Trunc() 110 static inline U8CPU SkMulDiv255Ceiling(U8CPU a, U8CPU b) { in SkMulDiv255Ceiling()
|
/third_party/skia/include/core/ |
D | SkColorPriv.h | 22 static inline unsigned SkAlpha255To256(U8CPU alpha) { in SkAlpha255To256() 34 static inline U8CPU SkUnitScalarClampToByte(SkScalar x) { in SkUnitScalarClampToByte() 35 return static_cast<U8CPU>(SkTPin(x, 0.0f, 1.0f) * 255 + 0.5); in SkUnitScalarClampToByte() 104 static inline SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32() 118 static inline SkPMColor SkPackARGB32NoCheck(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32NoCheck() 124 SkPMColor SkPremultiplyARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPremultiplyARGBInline()
|
D | SkColor.h | 47 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() 80 static constexpr inline SkColor SK_WARN_UNUSED_RESULT SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA() 157 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 182 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]); 213 SK_API SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
|
/third_party/flutter/skia/include/core/ |
D | SkColorPriv.h | 21 static inline unsigned SkAlpha255To256(U8CPU alpha) { in SkAlpha255To256() 33 static inline U8CPU SkUnitScalarClampToByte(SkScalar x) { in SkUnitScalarClampToByte() 34 return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255 + 0.5); in SkUnitScalarClampToByte() 103 static inline SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32() 117 static inline SkPMColor SkPackARGB32NoCheck(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32NoCheck() 123 SkPMColor SkPremultiplyARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPremultiplyARGBInline()
|
D | SkColor.h | 45 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() 78 static constexpr inline SkColor SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA() 155 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 180 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]); 211 SK_API SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
|
/third_party/flutter/skia/src/codec/ |
D | SkCodecPriv.h | 200 static inline SkPMColor premultiply_argb_as_rgba(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in premultiply_argb_as_rgba() 210 static inline SkPMColor premultiply_argb_as_bgra(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in premultiply_argb_as_bgra() 229 typedef uint32_t (*PackColorProc)(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
|
/third_party/skia/src/codec/ |
D | SkCodecPriv.h | 208 static inline SkPMColor premultiply_argb_as_rgba(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in premultiply_argb_as_rgba() 218 static inline SkPMColor premultiply_argb_as_bgra(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in premultiply_argb_as_bgra() 237 typedef uint32_t (*PackColorProc)(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
|
/third_party/flutter/skia/include/private/ |
D | SkColorData.h | 66 static inline uint32_t SkPackARGB_as_RGBA(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB_as_RGBA() 75 static inline uint32_t SkPackARGB_as_BGRA(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB_as_BGRA() 119 static inline U8CPU SkComputeLuminance(U8CPU r, U8CPU g, U8CPU b) { in SkComputeLuminance() 180 U8CPU srcWeight) { in SkFourByteInterp() 265 U8CPU srcWeight) { in SkFastFourByteInterp() 279 static inline SkPMColor SkBlendARGB32(SkPMColor src, SkPMColor dst, U8CPU aa) { in SkBlendARGB32() 329 static inline U16CPU SkPack888ToRGB16(U8CPU r, U8CPU g, U8CPU b) { in SkPack888ToRGB16() 382 static inline U8CPU SkReplicateNibble(unsigned nib) { in SkReplicateNibble()
|
/third_party/skia/include/private/ |
D | SkColorData.h | 66 static inline uint32_t SkPackARGB_as_RGBA(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB_as_RGBA() 75 static inline uint32_t SkPackARGB_as_BGRA(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB_as_BGRA() 119 static inline U8CPU SkComputeLuminance(U8CPU r, U8CPU g, U8CPU b) { in SkComputeLuminance() 178 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFourByteInterp() 261 static inline SkPMColor SkFastFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFastFourByteInterp() 275 static inline SkPMColor SkBlendARGB32(SkPMColor src, SkPMColor dst, U8CPU aa) { in SkBlendARGB32() 325 static inline U16CPU SkPack888ToRGB16(U8CPU r, U8CPU g, U8CPU b) { in SkPack888ToRGB16() 378 static inline U8CPU SkReplicateNibble(unsigned nib) { in SkReplicateNibble()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkAlphaThresholdImageFilter.cpp | 262 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() 263 U8CPU outerThreshold = (U8CPU)(fOuterThreshold * 0xFF); in onFilterImage() 277 U8CPU alpha = SkColorGetA(source); in onFilterImage() 283 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 284 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 285 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage() 291 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 292 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 293 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage()
|
/third_party/flutter/skia/src/effects/imagefilters/ |
D | SkAlphaThresholdFilter.cpp | 225 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() 226 U8CPU outerThreshold = (U8CPU)(fOuterThreshold * 0xFF); in onFilterImage() 240 U8CPU alpha = SkColorGetA(source); in onFilterImage() 246 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 247 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 248 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage() 254 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 255 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 256 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage()
|
/third_party/skia/tests/ |
D | ReadPixelsTest.cpp | 28 U8CPU r = x; in get_src_color() 29 U8CPU g = y; in get_src_color() 30 U8CPU b = 0xc; in get_src_color() 32 U8CPU a = 0xff; in get_src_color() 56 U8CPU b = n & 0xff; in get_dst_bmp_init_color() 57 U8CPU g = (n >> 8) & 0xff; in get_dst_bmp_init_color() 58 U8CPU r = (n >> 16) & 0xff; in get_dst_bmp_init_color() 68 U8CPU a,r,g,b; in convert_to_pmcolor() 71 b = static_cast<U8CPU>(c[0]); in convert_to_pmcolor() 72 g = static_cast<U8CPU>(c[1]); in convert_to_pmcolor() [all …]
|
D | ColorTest.cpp | 45 U8CPU a0 = 0; in DEF_TEST() 46 U8CPU a255 = 255; in DEF_TEST() 63 U8CPU a0 = 0; in DEF_TEST() 64 U8CPU a255 = 255; in DEF_TEST()
|
/third_party/skia/src/ports/ |
D | SkScalerContext_mac_ct.cpp | 377 U8CPU r = 0xFF - ((rgb >> 16) & 0xFF); in rgb_to_a8() 378 U8CPU g = 0xFF - ((rgb >> 8) & 0xFF); in rgb_to_a8() 379 U8CPU b = 0xFF - ((rgb >> 0) & 0xFF); in rgb_to_a8() 380 U8CPU lum = sk_apply_lut_if<APPLY_PREBLEND>(SkComputeLuminance(r, g, b), table8); in rgb_to_a8() 382 lum = std::max(lum, (U8CPU)0x30); in rgb_to_a8() 407 U8CPU r = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 16) & 0xFF), tableR); in RGBToLcd16() 408 U8CPU g = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 8) & 0xFF), tableG); in RGBToLcd16() 409 U8CPU b = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 0) & 0xFF), tableB); in RGBToLcd16() 411 r = std::max(r, (U8CPU)0x30); in RGBToLcd16() 412 g = std::max(g, (U8CPU)0x30); in RGBToLcd16() [all …]
|
/third_party/flutter/skia/site/user/api/ |
D | SkColor_Reference.md | 9 …mented#U8CPU'>U8CPU</a> a, <a href='undocumented#U8CPU'>U8CPU</a> r, <a href='undocumented#U8CPU'>… 16 …A</a>(<a href='SkColor_Reference#SkColor'>SkColor</a> c, <a href='undocumented#U8CPU'>U8CPU</a> a); 32 …a>(<a href='undocumented#U8CPU'>U8CPU</a> red, <a href='undocumented#U8CPU'>U8CPU</a> green, <a hr… 36 …kColor_Reference#SkHSVToColor'>SkHSVToColor</a>(<a href='undocumented#U8CPU'>U8CPU</a> <a href='Sk… 41 …mented#U8CPU'>U8CPU</a> a, <a href='undocumented#U8CPU'>U8CPU</a> r, <a href='undocumented#U8CPU'>… 103 …mented#U8CPU'>U8CPU</a> a, <a href='undocumented#U8CPU'>U8CPU</a> r, <a href='undocumented#U8CPU'>… 296 …tA</a>(<a href='SkColor_Reference#SkColor'>SkColor</a> c, <a href='undocumented#U8CPU'>U8CPU</a> a) 539 …a>(<a href='undocumented#U8CPU'>U8CPU</a> red, <a href='undocumented#U8CPU'>U8CPU</a> green, <a hr… 610 …kColor_Reference#SkHSVToColor'>SkHSVToColor</a>(<a href='undocumented#U8CPU'>U8CPU</a> <a href='Sk… 699 …mented#U8CPU'>U8CPU</a> a, <a href='undocumented#U8CPU'>U8CPU</a> r, <a href='undocumented#U8CPU'>…
|
/third_party/flutter/skia/tests/ |
D | ColorTest.cpp | 45 U8CPU a0 = 0; in DEF_TEST() 46 U8CPU a255 = 255; in DEF_TEST() 63 U8CPU a0 = 0; in DEF_TEST() 64 U8CPU a255 = 255; in DEF_TEST()
|