Home
last modified time | relevance | path

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

12

/external/skia/src/animator/
DSkDrawColor.cpp25 SkScalar red = SkIntToScalar(SkColorGetR(color)); in RGB_to_HSV()
154 SkColorGetA(color)/255, SkColorGetR(color), in dump()
193 result = SkIntToScalar(SkColorGetR(color)); in getProperty()
230 color = SkColorSetARGB(alpha, SkColorGetR(color), in setProperty()
235 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
240 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
DSkDrawBitmap.cpp71 SkDebugf("erase=\"argb(%d,%d,%d,%d)\" ", SkColorGetA(fColor)/255, SkColorGetR(fColor), in dump()
/external/skia/src/effects/
DSkColorMatrixFilter.cpp25 matrix.setScale(byte_to_scale(SkColorGetR(mul)), in CreateLightingFilter()
29 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), in CreateLightingFilter()
DSkAvoidXfermode.cpp76 unsigned opR = SkColorGetR(fOpColor); in xfer32()
125 unsigned opR = SkColorGetR(fOpColor) >> (8 - SK_R16_BITS); in xfer16()
313 SkColorGetR(avoid.opColor())/255.0f, in onSetData()
442 SkColorGetR(avoid.opColor())/255.0f, in onSetData()
DSkAlphaThresholdFilter.cpp386 (U8CPU)(SkColorGetR(source) * scale), in onFilterImageDeprecated()
394 (U8CPU)(SkColorGetR(source) * scale), in onFilterImageDeprecated()
/external/skia/include/gpu/
DSkGr.h36 unsigned r = SkColorGetR(c); in SkColorToUnpremulGrColor()
44 unsigned r = SkColorGetR(c); in SkColorToOpaqueGrColor()
DGrColor.h164 r = SkColorGetR(colorUPM); in GrUnpremulColor()
/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()
/external/skia/tests/
DColorMatrixTest.cpp21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color()
DPremulAlphaRoundTripTest.cpp22 byte[0] = SkColorGetR(c); in pack_unpremul_rgba()
34 byte[2] = SkColorGetR(c); in pack_unpremul_bgra()
/external/skia/include/core/
DSkColor.h63 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro
114 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
/external/skia/src/utils/
DSkPatchUtils.cpp266 SkScalar(SkColorGetR(colorsPM[kTopLeft_Corner])), in getVertexData()
267 SkScalar(SkColorGetR(colorsPM[kTopRight_Corner])), in getVertexData()
268 SkScalar(SkColorGetR(colorsPM[kBottomLeft_Corner])), in getVertexData()
269 SkScalar(SkColorGetR(colorsPM[kBottomRight_Corner])))); in getVertexData()
DSkTextureCompressor_ASTC.cpp1018 interpolate_channel(SkColorGetR(endpoints[0]), SkColorGetR(endpoints[1]), weight), in interpolate_endpoints()
1034 int r = interpolate_channel(SkColorGetR(endpoints[0]), SkColorGetR(endpoints[1]), weight0); in interpolate_dual_endpoints()
1042 SkColorGetR(endpoints[0]), SkColorGetR(endpoints[1]), weight1); in interpolate_dual_endpoints()
1617 SkColorGetA(result), SkColorGetB(result), SkColorGetG(result), SkColorGetR(result)); in getTexel()
/external/skia/tools/skiaserve/urlhandlers/
DBreakHandler.cpp65 startColor.append(Json::Value(SkColorGetR(target))); in handle()
84 endColor.append(Json::Value(SkColorGetR(current))); in handle()
/external/skia/gm/
Ddstreadshuffle.cpp115 SkColorGetR(colors[index]), in GetColor()
122 SkColorGetR(colors[index]), in GetColor()
Daaxfermodes.cpp207 SkColorGetR(kBGColor) + SkColorGetR(color)), in setupShapePaint()
DSkLinearBitmapPipelineGM.cpp29 w = SkPackARGB32NoCheck(SkColorGetA(c), SkColorGetR(c), SkColorGetG(c), SkColorGetB(c)); in fill_in_bits()
Dall_bitmap_configs.cpp100 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in premultiply_color()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp286 r += SkColorGetR(c); in onAsLuminanceColor()
352 SkFixed r = SkColorGetR(c0); in Build16bitCache()
356 SkFixed dr = SkIntToFixed(SkColorGetR(c1) - r) / (count - 1); in Build16bitCache()
422 uint32_t r0 = SkColorGetR(c0); in Build32bitCache()
426 uint32_t r1 = SkColorGetR(c1); in Build32bitCache()
950 SkColorGetR(*color) / 255.f, in set_color_uni()
962 SkColorGetR(*color) * aDiv255, in set_mul_color_uni()
/external/skia/src/opts/
DSkBlitMask_opts_arm_neon.cpp14 int colR = SkColorGetR(color); in SkBlitLCD16OpaqueRow_neon()
83 int colR = SkColorGetR(color); in SkBlitLCD16Row_neon()
DSkColorCubeFilter_opts.h29 r = SkColorGetR(source); in color_cube_filter_span()
/external/skia/samplecode/
DSampleDash.cpp22 *bm.getAddr32(0, 0) = SkPreMultiplyARGB(0xFF, SkColorGetR(c), in setBitmapDash()
DSampleHT.cpp21 f[1] = SkIntToScalar(SkColorGetR(c)); in color_to_floats()
/external/skia/tools/debugger/
DSkOverdrawMode.cpp277 if (SkColorGetR(dst) < 64) { // dst color is the 0th color so the next color is 1 in xferColor()

12