Home
last modified time | relevance | path

Searched refs:SkColorGetR (Results 1 – 25 of 90) sorted by relevance

1234

/external/skqp/samplecode/
DSampleShadowColor.cpp123 uint8_t max = SkTMax(SkTMax(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
125 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
130 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
145 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
148 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
/external/skia/samplecode/
DSampleShadowColor.cpp123 uint8_t max = SkTMax(SkTMax(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
125 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
130 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
145 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
148 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
/external/skqp/tests/
DColorMatrixTest.cpp23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color()
120 REPORTER_ASSERT(r, SkColorGetR(filtered) == 0x0a); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp18 byte[0] = SkColorGetR(c); in pack_unpremul_rgba()
30 byte[2] = SkColorGetR(c); in pack_unpremul_bgra()
DNonlinearBlendingTest.cpp42 SkColorGetR(color) * (1 / 255.0f), in DEF_TEST()
/external/skia/tests/
DColorMatrixTest.cpp23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color()
120 REPORTER_ASSERT(r, SkColorGetR(filtered) == 0x0a); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp18 byte[0] = SkColorGetR(c); in pack_unpremul_rgba()
30 byte[2] = SkColorGetR(c); in pack_unpremul_bgra()
/external/skia/gm/
Dunpremul.cpp34 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in __anon5f72f5b40102()
Dmixercolorfilter.cpp78 const auto r_lo = SkColorGetR(lo), in MakeTintColorFilter()
82 r_hi = SkColorGetR(hi), in MakeTintColorFilter()
Daaxfermodes.cpp208 SkColorGetR(kBGColor) + SkColorGetR(color)), in setupShapePaint()
Dshadowutils.cpp18 SkColor ambientColor = SkColorSetARGB(ambientAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
Dshapes_as_paths.cpp52 SkTAbs((int)(SkColorGetR(pixelA) - SkColorGetR(pixelB))) + in draw_diff()
/external/skqp/gm/
Dunpremul.cpp34 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in __anon6ae844cb0102()
Daaxfermodes.cpp208 SkColorGetR(kBGColor) + SkColorGetR(color)), in setupShapePaint()
Dshadowutils.cpp18 SkColor ambientColor = SkColorSetARGB(ambientAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
Dshapes_as_paths.cpp51 SkTAbs((int)(SkColorGetR(pixelA) - SkColorGetR(pixelB))) + in draw_diff()
/external/skqp/src/effects/
DSkColorMatrixFilter.cpp31 matrix.setScale(byte_to_scale(SkColorGetR(mul)), in SkLightingColorFilter()
35 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), in SkLightingColorFilter()
/external/skia/src/effects/
DSkColorMatrixFilter.cpp31 matrix.setScale(byte_to_scale(SkColorGetR(mul)), in SkLightingColorFilter()
35 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), in SkLightingColorFilter()
/external/skia/src/core/
DSkMaskGamma.h36 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
125 sk_t_scale255<R_LUM_BITS>(SkColorGetR(color) >> (8 - R_LUM_BITS)), in CanonicalColor()
211 fGammaTables[SkColorGetR(color) >> (8 - MAX_LUM_BITS)], in preBlend()
/external/skqp/src/core/
DSkMaskGamma.h36 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
125 sk_t_scale255<R_LUM_BITS>(SkColorGetR(color) >> (8 - R_LUM_BITS)), in CanonicalColor()
211 fGammaTables[SkColorGetR(color) >> (8 - MAX_LUM_BITS)], in preBlend()
/external/skqp/include/core/
DSkColor.h71 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro
176 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
/external/skia/include/core/
DSkColor.h71 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro
176 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
/external/skqp/docs/
DSkColor_Reference.bmh158 #Define SkColorGetR
176 uint8_t red = SkColorGetR(source.getColor(226, 128));
210 #SeeAlso SkColorGetR SkColorGetB
239 #SeeAlso SkColorGetR SkColorGetG
587 SkRGBToHSV(SkColorGetR(c), SkColorGetG(c), SkColorGetB(c), hsv);
757 str += " red=" + std::to_string(SkColorGetR(premultiplied));
787 str += " red=" + std::to_string(SkColorGetR(unpremultiplied));
793 str += " red=" + std::to_string(SkColorGetR(premultiplied));
/external/skia/docs/
DSkColor_Reference.bmh158 #Define SkColorGetR
176 uint8_t red = SkColorGetR(source.getColor(226, 128));
210 #SeeAlso SkColorGetR SkColorGetB
239 #SeeAlso SkColorGetR SkColorGetG
587 SkRGBToHSV(SkColorGetR(c), SkColorGetG(c), SkColorGetB(c), hsv);
757 str += " red=" + std::to_string(SkColorGetR(premultiplied));
787 str += " red=" + std::to_string(SkColorGetR(unpremultiplied));
793 str += " red=" + std::to_string(SkColorGetR(premultiplied));
/external/skia/modules/sksg/src/
DSkSGColorFilter.cpp158 float r = SkColorGetR(c0), in MakeNColorGradient()
161 const float dR = (SkColorGetR(c1) - r) / span_size, in MakeNColorGradient()

1234