/external/skia/src/opts/ |
H A D | SkBitmapProcState_opts_SSSE3.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 21 int count, uint32_t* colors); 24 int count, uint32_t* colors); 28 int count, uint16_t* colors); 31 int count, uint16_t* colors);
|
H A D | SkPMFloat_neon.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], argument 50 *a = FromPMColor(colors[0]); 51 *b = FromPMColor(colors[1]); 52 *c = FromPMColor(colors[2]); 53 *d = FromPMColor(colors[3]); 58 SkPMColor colors[4]) { 59 colors[0] = a.round(); 60 colors[1] = b.round(); 61 colors[2] = c.round(); 62 colors[ 56 RoundTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument 65 RoundClampTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument [all...] |
H A D | SkPMFloat_SSSE3.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], argument 51 *a = FromPMColor(colors[0]); 52 *b = FromPMColor(colors[1]); 53 *c = FromPMColor(colors[2]); 54 *d = FromPMColor(colors[3]); 59 SkPMColor colors[4]) { 61 colors[0] = a.round(); 62 colors[1] = b.round(); 63 colors[2] = c.round(); 64 colors[ 57 RoundTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument 67 RoundClampTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument [all...] |
H A D | SkPMFloat_none.h | 40 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], argument 42 *a = FromPMColor(colors[0]); 43 *b = FromPMColor(colors[1]); 44 *c = FromPMColor(colors[2]); 45 *d = FromPMColor(colors[3]); 50 SkPMColor colors[4]) { 51 colors[0] = a.round(); 52 colors[1] = b.round(); 53 colors[2] = c.round(); 54 colors[ 48 RoundTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument 57 RoundClampTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument [all...] |
H A D | SkPMFloat_SSE2.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], argument 51 *a = FromPMColor(colors[0]); 52 *b = FromPMColor(colors[1]); 53 *c = FromPMColor(colors[2]); 54 *d = FromPMColor(colors[3]); 59 SkPMColor colors[4]) { 61 RoundClampTo4PMColors(a,b,c,d, colors); 66 SkPMColor colors[4]) { 75 _mm_storeu_si128((__m128i*)colors, c3210); 76 SkPMColorAssert(colors[ 57 RoundTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument 64 RoundClampTo4PMColors( const SkPMFloat& a, const SkPMFloat& b, const SkPMFloat&c, const SkPMFloat& d, SkPMColor colors[4]) argument [all...] |
H A D | SkBitmapProcState_opts_mips_dsp.cpp | 17 int count, uint16_t* SK_RESTRICT colors) { 18 SkASSERT(count > 0 && colors != NULL); 30 sk_memset16(colors, dstValue, count); 80 "sh $t0, 0(%[colors]) \n\t" 81 "sh $t1, 2(%[colors]) \n\t" 82 "sh $t2, 4(%[colors]) \n\t" 83 "sh $t3, 6(%[colors]) \n\t" 84 "sh $t4, 8(%[colors]) \n\t" 85 "sh $t5, 10(%[colors]) \n\t" 86 "sh $t6, 12(%[colors]) \ 15 SI8_D16_nofilter_DX_mips_dsp(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, uint16_t* SK_RESTRICT colors) argument 147 SI8_opaque_D32_nofilter_DX_mips_dsp(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, SkPMColor* SK_RESTRICT colors) argument [all...] |
H A D | SkBitmapProcState_opts_SSE2.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 29 int count, uint16_t* colors);
|
/external/skia/gm/ |
H A D | verylargebitmap.cpp | 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) { argument 18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, 27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) { argument 29 make_bm(&bm, width, height, colors); 77 SkColor colors[2]; variable 80 colors[0] = SK_ColorRED; 81 colors[1] = SK_ColorGREEN; 82 show_bm(canvas, small, small, colors); 85 colors[0] = SK_ColorBLUE; 86 colors[ [all...] |
H A D | shallowgradient.cpp | 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { argument 15 return SkGradientShader::CreateLinear(pts, colors, NULL, count, 19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { argument 21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, 25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { argument 29 colors, NULL, count, 33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { argument 35 colors, NULL, count); 55 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; variable 56 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
H A D | composeshader.cpp | 20 SkColor colors[2]; local 24 colors[0] = SK_ColorRED; 25 colors[1] = SK_ColorBLUE; 26 SkAutoTUnref<SkShader> shaderA(SkGradientShader::CreateLinear(pts, colors, NULL, 2, 31 colors[0] = SK_ColorBLACK; 32 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); 33 SkAutoTUnref<SkShader> shaderB(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
H A D | textblobshader.cpp | 59 SkColor colors[2]; variable 60 colors[0] = SK_ColorRED; 61 colors[1] = SK_ColorGREEN; 63 SkScalar pos[SK_ARRAY_COUNT(colors)]; 71 sz.width() * .66f, colors, pos, 72 SK_ARRAY_COUNT(colors), variable
|
H A D | dstreadshuffle.cpp | 98 static SkColor colors[] = { SK_ColorRED, local 106 int index = nextColor % SK_ARRAY_COUNT(colors); 113 SkColorGetR(colors[index]), 114 SkColorGetG(colors[index]), 115 SkColorGetB(colors[index])); 120 SkColorGetR(colors[index]), 121 SkColorGetG(colors[index]), 122 SkColorGetB(colors[index]));
|
/external/skia/include/effects/ |
H A D | SkGradientShader.h | 21 /** By default gradients will interpolate their colors in unpremul space 23 * gradients will premultiply their colors first, and then interpolate 36 @param colors The array[count] of colors, to be distributed between the two points 38 each corresponding color in the colors array. If this is NULL, 39 the the colors are distributed evenly between the start and end point. 42 @param count Must be >=2. The number of colors (and pos if not NULL) entries. 46 const SkColor colors[], const SkScalar pos[], int count, 51 const SkColor colors[], const SkScalar pos[], int count, 53 return CreateLinear(pts, colors, po 50 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 77 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 95 CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 122 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count) argument [all...] |
/external/selinux/policycoreutils/mcstrans/share/util/ |
H A D | mlscolor-test | 25 rc, colors = selinux_raw_context_to_color(raw) 27 print "Unable to get colors for '%s'" % (context) 30 colors = colors.rstrip() 31 if colors != expected: 32 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context,colors,expected)
|
/external/skia/tests/ |
H A D | ShaderOpacityTest.cpp | 59 SkColor colors[2]; local 65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, 74 colors[0] = SkColorSetARGB(0, 0, 0, 0); 75 colors[1] = SkColorSetARGB(0, 0, 0, 0); 76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); 82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 84 grad = SkGradientShader::CreateLinear(pts, colors, po [all...] |
H A D | ShaderImageFilterTest.cpp | 29 SkColor colors[] = {SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN}; local 36 center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode); 47 center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode);
|
/external/skia/src/core/ |
H A D | SkColorTable.cpp | 16 void SkColorTable::init(const SkPMColor colors[], int count) { argument 22 memcpy(fColors, colors, count * sizeof(SkPMColor)); 25 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { argument 26 SkASSERT(0 == count || colors); 32 this->init(colors, count);
|
H A D | SkBitmapProcState_sample.h | 30 int count, DSTTYPE* SK_RESTRICT colors); 33 int count, DSTTYPE* SK_RESTRICT colors); 36 int count, DSTTYPE* SK_RESTRICT colors); 39 int count, DSTTYPE* SK_RESTRICT colors); 43 int count, DSTTYPE* SK_RESTRICT colors) { 44 SkASSERT(count > 0 && colors != NULL); 62 *colors++ = RETURNDST(src); 68 *colors++ = RETURNDST(src); 75 *colors++ = RETURNDST(src); 85 int count, DSTTYPE* SK_RESTRICT colors) { 41 _nofilter_DXDY(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, DSTTYPE* SK_RESTRICT colors) argument 83 _nofilter_DX(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, DSTTYPE* SK_RESTRICT colors) argument 138 _filter_DX(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, DSTTYPE* SK_RESTRICT colors) argument 184 _filter_DXDY(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, DSTTYPE* SK_RESTRICT colors) argument [all...] |
/external/skia/include/core/ |
H A D | SkColorTable.h | 20 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by 29 /** Copy up to 256 colors into a new SkColorTable. 31 SkColorTable(const SkPMColor colors[], int count); 34 /** Returns the number of colors in the table. 46 /** Return the array of colors for reading. 50 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors. 64 void init(const SkPMColor* colors, int count);
|
/external/skia/bench/ |
H A D | PMFloatBench.cpp | 44 SkPMColor colors[4]; variable 48 colors[i] = SkPreMultiplyColor(lcg_rand(&seed)); 51 // But it's a lot faster not to, and this code won't really mind the non-PM colors. 53 colors[0] = seed + 0; 54 colors[1] = seed + 1; 55 colors[2] = seed + 2; 56 colors[3] = seed + 3; 61 SkPMFloat::From4PMColors(colors, &fa, &fb, &fc, &fd); 63 fa = SkPMFloat::FromPMColor(colors[0]); 64 fb = SkPMFloat::FromPMColor(colors[ [all...] |
/external/skia/samplecode/ |
H A D | SampleShaders.cpp | 29 SkColor colors[2]; local 33 colors[0] = SK_ColorBLACK; 34 colors[1] = SkColorSetARGB(0, 0, 0, 0); 35 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode); 59 SkColor colors[2]; local 63 colors[0] = SK_ColorRED; 64 colors[1] = SK_ColorBLUE; 65 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode); 69 colors[0] = SK_ColorBLACK; 70 colors[ [all...] |
/external/skia/include/c/ |
H A D | sk_shader.h | 28 const sk_color_t colors[],
|
/external/skia/src/utils/ |
H A D | SkPatchGrid.cpp | 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], argument 40 // setup corners and colors 61 // set optional values (colors and texture coordinates) 62 if ((fModeFlags & kColors_VertexType) && colors) { 63 fCornerColors[cornerPos] = colors[0]; 64 fCornerColors[cornerPos + 1] = colors[1]; 65 fCornerColors[cornerPos + (fCols + 1)] = colors[3]; 66 fCornerColors[cornerPos + (fCols + 1) + 1] = colors[2]; 79 bool SkPatchGrid::getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], argument 86 // set the patch by building the array of points and colors wit 174 SkColor colors[4]; local [all...] |
/external/skia/src/views/ |
H A D | SkParsePaint.cpp | 23 SkColor colors[2]; local 26 colors[0] = colors[1] = SK_ColorBLACK; // need to initialized the alpha to opaque, since FindColor doesn't set it 28 SkParse::FindColor(str, &colors[0]) && 30 SkParse::FindColor(str, &colors[1]) && 39 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, mode);
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
H A D | TextureBlenderDDS.java | 47 TexturePixel[] colors = new TexturePixel[] { new TexturePixel(), new TexturePixel() };
60 colors[0].fromARGB8(col0);
61 colors[1].fromARGB8(col1);
70 // blending colors
71 for (int i = 0; i < colors.length; ++i) {
73 colors[i].negate();
75 colors[i].toRGBA(pixelColor);
77 colors[i].fromARGB8(1, resultPixel[0], resultPixel[1], resultPixel[2]);
78 int argb8 = colors[i].toARGB8();
|