Home
last modified time | relevance | path

Searched refs:SkColorGetR (Results 1 – 25 of 39) 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()
DSkMemberInfo.cpp440 storage[1].fScalar = SkIntToScalar(SkColorGetR(color)); in writeValue()
/external/skia/include/core/
DSkColor.h64 #define SkColorGetR(color) (((color) >> 16) & 0xFF) macro
116 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()
DSkBitmap.h471 this->eraseARGB(SkColorGetA(c), SkColorGetR(c), SkColorGetG(c), in eraseColor()
DSkColorPriv.h1016 int srcR = SkColorGetR(src); in SkBlitLCD16Row()
1030 int srcR = SkColorGetR(src); in SkBlitLCD16OpaqueRow()
/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.cpp18 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in SkPreMultiplyColor()
DSkShader.cpp292 unsigned r = SkColorGetR(color); in ColorShaderContext()
/external/skia/tools/skpdiff/
DSkDifferentPixelsMetric_cpu.cpp76 int redDiff = abs(static_cast<int>(SkColorGetR(baselinePixel) - in diff()
77 SkColorGetR(testPixel))); in diff()
/external/skia/src/utils/
DSkPatchUtils.cpp286 SkScalar(SkColorGetR(colorsPM[kTopLeft_Corner])), in getVertexData()
287 SkScalar(SkColorGetR(colorsPM[kTopRight_Corner])), in getVertexData()
288 SkScalar(SkColorGetR(colorsPM[kBottomLeft_Corner])), in getVertexData()
289 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/tests/
DPremulAlphaRoundTripTest.cpp22 byte[0] = SkColorGetR(c); in pack_unpremul_rgba()
34 byte[2] = SkColorGetR(c); in pack_unpremul_bgra()
/external/skia/gm/
Ddstreadshuffle.cpp113 SkColorGetR(colors[index]), in GetColor()
120 SkColorGetR(colors[index]), in GetColor()
Dall_bitmap_configs.cpp100 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), in premultiply_color()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp285 r += SkColorGetR(c); in onAsLuminanceColor()
350 SkFixed r = SkColorGetR(c0); in Build16bitCache()
354 SkFixed dr = SkIntToFixed(SkColorGetR(c1) - r) / (count - 1); in Build16bitCache()
406 uint32_t r0 = SkColorGetR(c0); in Build32bitCache()
410 uint32_t r1 = SkColorGetR(c1); in Build32bitCache()
925 SkColorGetR(*color) / 255.f, in set_color_uni()
937 SkColorGetR(*color) * aDiv255, in set_mul_color_uni()
/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/src/opts/
DSkBlitMask_opts_arm_neon.cpp131 int colR = SkColorGetR(color); in SkBlitLCD16OpaqueRow_neon()
200 int colR = SkColorGetR(color); in SkBlitLCD16Row_neon()
DSkBlitRow_opts_SSE2.cpp557 int srcR = SkColorGetR(src); in SkBlitLCD16Row_SSE2()
629 int srcR = SkColorGetR(src); in SkBlitLCD16OpaqueRow_SSE2()
/external/skia/src/effects/
DSkAlphaThresholdFilter.cpp359 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
367 (U8CPU)(SkColorGetR(source) * scale), in onFilterImage()
DSkColorCubeFilter.cpp135 uint8_t r = SkColorGetR(inputColor); in filterSpan()
149 rOut += colorToScalar[SkColorGetR(lutColor)] * factor; in filterSpan()
DSkColorFilters.cpp465 matrix.setScale(byte_to_scale(SkColorGetR(mul)), in CreateLightingFilter()
469 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), in CreateLightingFilter()
/external/skia/experimental/PdfViewer/
Dchop_transparency_main.cpp75 int r = SkColorGetR(color); in write_bitmap()
/external/skia/include/gpu/
DGrColor.h127 r = SkColorGetR(colorUPM); in GrUnPreMulColor()

12