/external/skia/tests/ |
D | RuntimeBlendTest.cpp | 35 abs((int)SkColorGetR(x) - (int)SkColorGetR(y)) <= kTolerance && in nearly_equal() 89 SkColorGetR(colors[0]), in test_blend() 93 SkColorGetR(colors[1]), in test_blend()
|
D | ColorMatrixTest.cpp | 21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color() 118 REPORTER_ASSERT(r, SkColorGetR(filtered) == 0x0a); in DEF_TEST()
|
/external/skia/tools/viewer/ |
D | ShadowColorSlide.cpp | 176 uint8_t max = std::max(std::max(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath() 178 uint8_t min = std::min(std::min(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath() 183 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath() 198 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath() 201 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
|
/external/skia/src/effects/ |
D | SkColorMatrixFilter.cpp | 34 matrix.setScale(byte_to_unit_float(SkColorGetR(mul)), in Lighting() 38 matrix.postTranslate(byte_to_unit_float(SkColorGetR(add)), in Lighting()
|
/external/skia/docs/examples/ |
D | PreMultiplyColor.cpp | 12 str += " red=" + std::to_string(SkColorGetR(unpremultiplied)); 18 str += " red=" + std::to_string(SkColorGetR(premultiplied));
|
D | Paint_getColor.cpp | 10 SkDebugf("Yellow is %d%% red, %d%% green, and %d%% blue.\n", (int) (SkColorGetR(y) / 2.55f), in draw()
|
D | ColorGetR.cpp | 12 uint8_t red = SkColorGetR(source.getColor(226, 128));
|
D | RGBA4f_toSkColor.cpp | 10 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(argb), in draw()
|
D | RGBA4f_FromColor.cpp | 12 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(fromColor4f), in draw()
|
D | PreMultiplyARGB.cpp | 13 str += " red=" + std::to_string(SkColorGetR(premultiplied));
|
D | Alpha_Type_Premul.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | Alpha_Type_Opaque.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | Alpha_Type_Unpremul.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | RGBToHSV.cpp | 14 SkRGBToHSV(SkColorGetR(c), SkColorGetG(c), SkColorGetB(c), hsv);
|
D | Octopus_Generator.cpp | 18 paint.setColor(SkColorSetRGB(std::min(255u, SkColorGetR(color) + 20), in paintOctopus()
|
D | SkImage_to_PPM_ascii.cpp | 32 int n = snprintf(buffer, sizeof(buffer), "%d %d %d\n", SkColorGetR(c), in Encode_PPM_A()
|
D | SkImage_to_PPM_binary.cpp | 33 *ptr++ = SkColorGetR(c); in Encode_PPM_B()
|
D | Octopus_Generator_Animated.cpp | 18 paint.setColor(SkColorSetRGB(std::min(255u, SkColorGetR(color) + 20), in paintOctopus()
|
/external/skia/gm/ |
D | unpremul.cpp | 43 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in __anonf6f222590102()
|
D | composecolorfilter.cpp | 36 const auto r_lo = SkColorGetR(lo), in MakeTintColorFilter() 40 r_hi = SkColorGetR(hi), in MakeTintColorFilter()
|
D | mixercolorfilter.cpp | 37 const auto r_lo = SkColorGetR(lo), in MakeTintColorFilter() 41 r_hi = SkColorGetR(hi), in MakeTintColorFilter()
|
D | aaxfermodes.cpp | 219 SkColorGetR(kBGColor) + SkColorGetR(color)), in setupShapePaint()
|
/external/skia/src/core/ |
D | SkMaskGamma.h | 36 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/skia/include/core/ |
D | SkColor.h | 65 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro 170 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
|
/external/skia/modules/sksg/src/ |
D | SkSGColorFilter.cpp | 172 float r = SkColorGetR(c0), in MakeNColorGradient() 175 const float dR = (SkColorGetR(c1) - r) / span_size, in MakeNColorGradient()
|