Home
last modified time | relevance | path

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

1234

/external/skia/samplecode/
DSampleShadowColor.cpp118 uint8_t max = std::max(std::max(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
120 uint8_t min = std::min(std::min(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
125 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
140 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
143 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
/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/src/effects/
DSkColorMatrixFilter.cpp27 matrix.setScale(byte_to_unit_float(SkColorGetR(mul)), in MakeLightingFilter()
31 matrix.postTranslate(byte_to_unit_float(SkColorGetR(add)), in MakeLightingFilter()
/external/skia/tests/
DColorMatrixTest.cpp22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color()
119 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/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()
/external/skia/docs/examples/
DPreMultiplyColor.cpp12 str += " red=" + std::to_string(SkColorGetR(unpremultiplied));
18 str += " red=" + std::to_string(SkColorGetR(premultiplied));
DPaint_getColor.cpp10 SkDebugf("Yellow is %d%% red, %d%% green, and %d%% blue.\n", (int) (SkColorGetR(y) / 2.55f), in draw()
DColorGetR.cpp12 uint8_t red = SkColorGetR(source.getColor(226, 128));
DRGBA4f_toSkColor.cpp10 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(argb), in draw()
DPreMultiplyARGB.cpp13 str += " red=" + std::to_string(SkColorGetR(premultiplied));
DRGBA4f_FromColor.cpp12 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(fromColor4f), in draw()
DAlpha_Type_Unpremul.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DAlpha_Type_Premul.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DAlpha_Type_Opaque.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DRGBToHSV.cpp14 SkRGBToHSV(SkColorGetR(c), SkColorGetG(c), SkColorGetB(c), hsv);
/external/skqp/gm/
Dunpremul.cpp34 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in __anon4a2aa7120102()
/external/skia/gm/
Dunpremul.cpp43 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in __anon3eb557fb0102()
Dcomposecolorfilter.cpp35 const auto r_lo = SkColorGetR(lo), in MakeTintColorFilter()
39 r_hi = SkColorGetR(hi), in MakeTintColorFilter()
Dmixercolorfilter.cpp37 const auto r_lo = SkColorGetR(lo), in MakeTintColorFilter()
41 r_hi = SkColorGetR(hi), in MakeTintColorFilter()
/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/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()

1234