/external/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);
|
D | SkUnPreMultiply.h | 27 static Scale GetScale(U8CPU alpha) { in GetScale() 45 static U8CPU ApplyScale(Scale scale, U8CPU component) { in ApplyScale()
|
/external/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()
|
/external/skqp/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 | 87 virtual void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiH2() 100 virtual void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { in blitAntiV2() 267 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override; 268 void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override; 323 void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override { SHARD(blitAntiH2(x, y, a0, a1)) } in blitAntiH2() 324 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()
|
/external/skqp/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() 115 static inline SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32() 129 static inline SkPMColor SkPackARGB32NoCheck(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32NoCheck() 135 SkPMColor SkPremultiplyARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPremultiplyARGBInline()
|
D | SkColor.h | 55 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() 88 static constexpr inline SkColor SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA() 165 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 190 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]); 221 SK_API SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b);
|
D | SkUnPreMultiply.h | 27 static Scale GetScale(U8CPU alpha) { in GetScale() 45 static U8CPU ApplyScale(Scale scale, U8CPU component) { in ApplyScale()
|
/external/skqp/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);
|
/external/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);
|
/external/skqp/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()
|
/external/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()
|
/external/skia/src/effects/imagefilters/ |
D | SkAlphaThresholdImageFilter.cpp | 218 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() 219 U8CPU outerThreshold = (U8CPU)(fOuterThreshold * 0xFF); in onFilterImage() 233 U8CPU alpha = SkColorGetA(source); in onFilterImage() 239 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 240 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 241 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage() 247 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 248 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 249 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage()
|
/external/skqp/src/effects/imagefilters/ |
D | SkAlphaThresholdFilter.cpp | 234 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() 235 U8CPU outerThreshold = (U8CPU)(fOuterThreshold * 0xFF); in onFilterImage() 249 U8CPU alpha = SkColorGetA(source); in onFilterImage() 255 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 256 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 257 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage() 263 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage() 264 (U8CPU)(SkColorGetG(source) * scale), in onFilterImage() 265 (U8CPU)(SkColorGetB(source) * scale)); in onFilterImage()
|
/external/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()
|
D | HSVRoundTripTest.cpp | 14 for (U8CPU r = 0; r <= 255; r++) { in DEF_TEST() 15 for (U8CPU g = 0; g <= 255; g++) { in DEF_TEST() 16 for (U8CPU b = 0; b <= 255; b++) { in DEF_TEST()
|
/external/skqp/tests/ |
D | HSVRoundTripTest.cpp | 14 for (U8CPU r = 0; r <= 255; r++) { in DEF_TEST() 15 for (U8CPU g = 0; g <= 255; g++) { in DEF_TEST() 16 for (U8CPU b = 0; b <= 255; b++) { in DEF_TEST()
|