Home
last modified time | relevance | path

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

12

/external/skia/src/effects/
DSkColorMatrixFilter.cpp31 matrix.setScale(byte_to_scale(SkColorGetR(mul)), in SkLightingColorFilter()
35 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), in SkLightingColorFilter()
DSkAlphaThresholdFilter.cpp240 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
248 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
/external/skia/tests/
DColorMatrixTest.cpp21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color()
DPremulAlphaRoundTripTest.cpp20 byte[0] = SkColorGetR(c); in pack_unpremul_rgba()
32 byte[2] = SkColorGetR(c); in pack_unpremul_bgra()
DColorSpaceXformTest.cpp323 REPORTER_ASSERT(r, almost_equal(SkColorGetR(srcPixels[i]), in DEF_TEST()
328 SkColorGetR(dstPixels[i]))); in DEF_TEST()
/external/skia/src/core/
DSkMaskGamma.h35 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
124 sk_t_scale255<R_LUM_BITS>(SkColorGetR(color) >> (8 - R_LUM_BITS)), in CanonicalColor()
209 fGammaTables[SkColorGetR(color) >> (8 - MAX_LUM_BITS)], in preBlend()
DSkColor.cpp17 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in SkPreMultiplyColor()
DSkColorFilter.cpp54 SkColorGetR(c) * inv255, in filterColor()
/external/skia/tools/skiaserve/urlhandlers/
DBreakHandler.cpp52 startColor.append(Json::Value(SkColorGetR(target))); in handle()
71 endColor.append(Json::Value(SkColorGetR(current))); in handle()
/external/skia/include/core/
DSkColor.h64 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro
129 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
/external/skia/samplecode/
DSampleShadowColor.cpp122 uint8_t max = SkTMax(SkTMax(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
124 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
DSampleDash.cpp21 *bm.getAddr32(0, 0) = SkPreMultiplyARGB(0xFF, SkColorGetR(c), in setBitmapDash()
DSampleBigGradient.cpp97 CGColorRef color = CGColorCreateGenericRGB(SkColorGetR(c)/255.f, in drawRect()
166 … COLORREF cr = RGB(SkColorGetR(c), SkColorGetG(c), SkColorGetB(c));// SkEndian_Swap32(c) >> 8; in drawRect()
DSampleHT.cpp21 f[1] = SkIntToScalar(SkColorGetR(c)); in color_to_floats()
/external/skia/gm/
Daaxfermodes.cpp207 SkColorGetR(kBGColor) + SkColorGetR(color)), in setupShapePaint()
Dshapes_as_paths.cpp50 SkTAbs((int)(SkColorGetR(pixelA) - SkColorGetR(pixelB))) + in draw_diff()
Dhsl.cpp142 SkColorGetR(c) * (1/255.0f), in blend()
/external/skia/src/opts/
DSkBlitMask_opts_arm_neon.cpp14 int colR = SkColorGetR(color); in SkBlitLCD16OpaqueRow_neon()
83 int colR = SkColorGetR(color); in SkBlitLCD16Row_neon()
DSkBlitRow_opts_SSE2.cpp311 int srcR = SkColorGetR(src); in SkBlitLCD16Row_SSE2()
383 int srcR = SkColorGetR(src); in SkBlitLCD16OpaqueRow_SSE2()
/external/skia/src/shaders/
DSkColorShader.cpp46 unsigned r = SkColorGetR(color); in ColorShaderContext()
165 unsigned r = SkColorGetR(color); in Color4Context()
DSkLightingShader.cpp374 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan()
391 accum.fX += light.color().fX * SkColorGetR(diffColor) * illuminanceScalingFactor; in shadeSpan()
/external/skia/src/gpu/
DSkGr.h54 unsigned r = SkColorGetR(c); in SkColorToUnpremulGrColor()
/external/skia/src/utils/
DSkShadowUtils.cpp474 return SkColorSetARGB(tonalAlpha*255.999f, unPremulScale*SkColorGetR(color), in compute_render_color()
478 return SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in compute_render_color()
/external/skia/include/gpu/
DGrColor.h164 r = SkColorGetR(colorUPM); in GrUnpremulColor()
/external/skia/src/gpu/ops/
DGrAtlasTextOp.cpp239 SkColorGetR(luminanceColor) >> kDistanceAdjustLumShift, in setupDfProcessor()

12