/external/skia/gm/ |
D | verylargebitmap.cpp | 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) { in make_bm() 18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, in make_bm() 27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in show_bm() 29 make_bm(&bm, width, height, colors); in show_bm() 77 SkColor colors[2]; in onDraw() local 80 colors[0] = SK_ColorRED; in onDraw() 81 colors[1] = SK_ColorGREEN; in onDraw() 82 show_bm(canvas, small, small, colors); in onDraw() 85 colors[0] = SK_ColorBLUE; in onDraw() 86 colors[1] = SK_ColorMAGENTA; in onDraw() [all …]
|
D | shallowgradient.cpp | 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() argument 15 return SkGradientShader::CreateLinear(pts, colors, NULL, count, in shader_linear() 19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() argument 21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, in shader_radial() 25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() argument 29 colors, NULL, count, in shader_conical() 33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() argument 35 colors, NULL, count); in shader_sweep() 55 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw() local 56 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() [all …]
|
D | composeshader.cpp | 20 SkColor colors[2]; in make_shader() local 24 colors[0] = SK_ColorRED; in make_shader() 25 colors[1] = SK_ColorBLUE; in make_shader() 26 SkAutoTUnref<SkShader> shaderA(SkGradientShader::CreateLinear(pts, colors, NULL, 2, in make_shader() 31 colors[0] = SK_ColorBLACK; in make_shader() 32 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in make_shader() 33 SkAutoTUnref<SkShader> shaderB(SkGradientShader::CreateLinear(pts, colors, NULL, 2, in make_shader()
|
D | dstreadshuffle.cpp | 98 static SkColor colors[] = { SK_ColorRED, in GetColor() local 106 int index = nextColor % SK_ARRAY_COUNT(colors); in GetColor() 113 SkColorGetR(colors[index]), in GetColor() 114 SkColorGetG(colors[index]), in GetColor() 115 SkColorGetB(colors[index])); in GetColor() 120 SkColorGetR(colors[index]), in GetColor() 121 SkColorGetG(colors[index]), in GetColor() 122 SkColorGetB(colors[index])); in GetColor()
|
/external/skia/src/opts/ |
D | SkPMFloat_neon.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors() 50 *a = FromPMColor(colors[0]); in From4PMColors() 51 *b = FromPMColor(colors[1]); in From4PMColors() 52 *c = FromPMColor(colors[2]); in From4PMColors() 53 *d = FromPMColor(colors[3]); in From4PMColors() 58 SkPMColor colors[4]) { in RoundTo4PMColors() 59 colors[0] = a.round(); in RoundTo4PMColors() 60 colors[1] = b.round(); in RoundTo4PMColors() 61 colors[2] = c.round(); in RoundTo4PMColors() 62 colors[3] = d.round(); in RoundTo4PMColors() [all …]
|
D | SkPMFloat_none.h | 40 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors() 42 *a = FromPMColor(colors[0]); in From4PMColors() 43 *b = FromPMColor(colors[1]); in From4PMColors() 44 *c = FromPMColor(colors[2]); in From4PMColors() 45 *d = FromPMColor(colors[3]); in From4PMColors() 50 SkPMColor colors[4]) { in RoundTo4PMColors() 51 colors[0] = a.round(); in RoundTo4PMColors() 52 colors[1] = b.round(); in RoundTo4PMColors() 53 colors[2] = c.round(); in RoundTo4PMColors() 54 colors[3] = d.round(); in RoundTo4PMColors() [all …]
|
D | SkPMFloat_SSSE3.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors() 51 *a = FromPMColor(colors[0]); in From4PMColors() 52 *b = FromPMColor(colors[1]); in From4PMColors() 53 *c = FromPMColor(colors[2]); in From4PMColors() 54 *d = FromPMColor(colors[3]); in From4PMColors() 59 SkPMColor colors[4]) { in RoundTo4PMColors() 61 colors[0] = a.round(); in RoundTo4PMColors() 62 colors[1] = b.round(); in RoundTo4PMColors() 63 colors[2] = c.round(); in RoundTo4PMColors() 64 colors[3] = d.round(); in RoundTo4PMColors() [all …]
|
D | SkPMFloat_SSE2.h | 48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors() 51 *a = FromPMColor(colors[0]); in From4PMColors() 52 *b = FromPMColor(colors[1]); in From4PMColors() 53 *c = FromPMColor(colors[2]); in From4PMColors() 54 *d = FromPMColor(colors[3]); in From4PMColors() 59 SkPMColor colors[4]) { in RoundTo4PMColors() 61 RoundClampTo4PMColors(a,b,c,d, colors); in RoundTo4PMColors() 66 SkPMColor colors[4]) { in RoundClampTo4PMColors() 75 _mm_storeu_si128((__m128i*)colors, c3210); in RoundClampTo4PMColors() 76 SkPMColorAssert(colors[0]); in RoundClampTo4PMColors() [all …]
|
D | SkBitmapProcState_opts_arm.cpp | 24 uint16_t* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 28 int count, uint16_t* SK_RESTRICT colors) { in SI8_D16_nofilter_DX_arm() argument 29 SkASSERT(count > 0 && colors != NULL); in SI8_D16_nofilter_DX_arm() 47 sk_memset16(colors, dstValue, count); in SI8_D16_nofilter_DX_arm() 98 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors) in SI8_D16_nofilter_DX_arm() 104 src = srcAddr[*xx++]; *colors++ = table[src]; in SI8_D16_nofilter_DX_arm() 113 SkPMColor* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 117 int count, SkPMColor* SK_RESTRICT colors) { in SI8_opaque_D32_nofilter_DX_arm() argument 118 SkASSERT(count > 0 && colors != NULL); in SI8_opaque_D32_nofilter_DX_arm() 133 sk_memset32(colors, dstValue, count); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
D | SkBitmapProcState_opts_mips_dsp.cpp | 17 int count, uint16_t* SK_RESTRICT colors) { in SI8_D16_nofilter_DX_mips_dsp() argument 18 SkASSERT(count > 0 && colors != NULL); in SI8_D16_nofilter_DX_mips_dsp() 30 sk_memset16(colors, dstValue, count); in SI8_D16_nofilter_DX_mips_dsp() 136 : [xx]"+r"(xx), [count8]"=&r"(count8), [colors]"+r"(colors) in SI8_D16_nofilter_DX_mips_dsp() 142 src = srcAddr[*xx++]; *colors++ = table[src]; in SI8_D16_nofilter_DX_mips_dsp() 149 int count, SkPMColor* SK_RESTRICT colors) { in SI8_opaque_D32_nofilter_DX_mips_dsp() argument 150 SkASSERT(count > 0 && colors != NULL); in SI8_opaque_D32_nofilter_DX_mips_dsp() 160 sk_memset32(colors, dstValue, count); in SI8_opaque_D32_nofilter_DX_mips_dsp() 357 : [xx]"+r"(xx), [count]"+r"(count), [colors]"+r"(colors), in SI8_opaque_D32_nofilter_DX_mips_dsp()
|
D | SkBitmapProcState_opts_SSSE3.cpp | 395 int count, uint32_t* colors) { in S32_generic_D32_filter_DX_SSSE3() argument 396 SkASSERT(count > 0 && colors != NULL); in S32_generic_D32_filter_DX_SSSE3() 467 _mm_storeu_si128(reinterpret_cast<__m128i *>(colors), sum0); in S32_generic_D32_filter_DX_SSSE3() 469 colors += 4; in S32_generic_D32_filter_DX_SSSE3() 494 *colors++ = _mm_cvtsi128_si32(sum); in S32_generic_D32_filter_DX_SSSE3() 541 _mm_storeu_si128(reinterpret_cast<__m128i *>(colors), sum0); in S32_generic_D32_filter_DX_SSSE3() 543 colors += 4; in S32_generic_D32_filter_DX_SSSE3() 575 *colors++ = _mm_cvtsi128_si32(sum0); in S32_generic_D32_filter_DX_SSSE3() 587 int count, uint32_t* colors) { in S32_generic_D32_filter_DXDY_SSSE3() argument 588 SkASSERT(count > 0 && colors != NULL); in S32_generic_D32_filter_DXDY_SSSE3() [all …]
|
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);
|
/external/skia/src/core/ |
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) { in MAKENAME() 44 SkASSERT(count > 0 && colors != NULL); in MAKENAME() 62 *colors++ = RETURNDST(src); in MAKENAME() 68 *colors++ = RETURNDST(src); in MAKENAME() 75 *colors++ = RETURNDST(src); in MAKENAME() 85 int count, DSTTYPE* SK_RESTRICT colors) { in MAKENAME() [all …]
|
D | SkBitmapProcState.h | 40 SkPMColor colors[]); 45 uint16_t colors[]); 177 int count, SkPMColor colors[]); 179 int count, SkPMColor colors[]); 181 const uint32_t xy[], int count, SkPMColor colors[]); 183 const uint32_t xy[], int count, SkPMColor colors[]); 193 const uint32_t* xy, int count, uint16_t* colors); 195 const uint32_t* xy, int count, uint16_t* colors);
|
/external/skia/include/effects/ |
D | SkGradientShader.h | 46 const SkColor colors[], const SkScalar pos[], int count, 51 const SkColor colors[], const SkScalar pos[], int count, in CreateLinear() argument 53 return CreateLinear(pts, colors, pos, count, mode, 0, NULL); in CreateLinear() 73 const SkColor colors[], const SkScalar pos[], int count, 78 const SkColor colors[], const SkScalar pos[], int count, in CreateRadial() argument 80 return CreateRadial(center, radius, colors, pos, count, mode, 0, NULL); in CreateRadial() 91 const SkColor colors[], const SkScalar pos[], int count, 97 const SkColor colors[], const SkScalar pos[], int count, in CreateTwoPointConical() argument 99 return CreateTwoPointConical(start, startRadius, end, endRadius, colors, pos, count, mode, in CreateTwoPointConical() 119 const SkColor colors[], const SkScalar pos[], int count, [all …]
|
/external/skia/tests/ |
D | ShaderOpacityTest.cpp | 59 SkColor colors[2]; in test_gradient() local 65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, in test_gradient() 74 colors[0] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 75 colors[1] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient() 82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient() 84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient() [all …]
|
/external/libpng/contrib/libtests/ |
D | makepng.c | 138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors) in image_size_of_type() argument 140 if (*colors) in image_size_of_type() 171 png_const_bytep gamma_table, unsigned int *colors) in generate_palette() argument 182 switch (colors[0]) in generate_palette() 186 colors[0]); in generate_palette() 190 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255, in generate_palette() 195 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], in generate_palette() 196 colors[2], gamma_table); in generate_palette() 200 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255, in generate_palette() 205 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], in generate_palette() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder_libico.cpp | 47 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 50 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 170 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; in onDecode() 215 SkPMColor* colors = NULL; in onDecode() local 219 colors = new SkPMColor[colorCount]; in onDecode() 226 colors[j] = SkPackARGB32(0xFF, red & 0xFF, green & 0xFF, blue & 0xFF); in onDecode() 251 delete[] colors; in onDecode() [all …]
|
/external/skia/samplecode/ |
D | SampleShaders.cpp | 29 SkColor colors[2]; in make_bitmapfade() local 33 colors[0] = SK_ColorBLACK; in make_bitmapfade() 34 colors[1] = SkColorSetARGB(0, 0, 0, 0); in make_bitmapfade() 35 …SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode… in make_bitmapfade() 59 SkColor colors[2]; in ShaderView() local 63 colors[0] = SK_ColorRED; in ShaderView() 64 colors[1] = SK_ColorBLUE; in ShaderView() 65 …SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode… in ShaderView() 69 colors[0] = SK_ColorBLACK; in ShaderView() 70 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in ShaderView() [all …]
|
/external/skia/bench/ |
D | PMFloatBench.cpp | 44 SkPMColor colors[4]; in onDraw() local 48 colors[i] = SkPreMultiplyColor(lcg_rand(&seed)); in onDraw() 53 colors[0] = seed + 0; in onDraw() 54 colors[1] = seed + 1; in onDraw() 55 colors[2] = seed + 2; in onDraw() 56 colors[3] = seed + 3; in onDraw() 61 SkPMFloat::From4PMColors(colors, &fa, &fb, &fc, &fd); in onDraw() 63 fa = SkPMFloat::FromPMColor(colors[0]); in onDraw() 64 fb = SkPMFloat::FromPMColor(colors[1]); in onDraw() 65 fc = SkPMFloat::FromPMColor(colors[2]); in onDraw() [all …]
|
D | PatchGridBench.cpp | 120 SkColor colors[4]; in setGrid() local 121 colors[0] = cornerColors[i][j]; in setGrid() 122 colors[1] = cornerColors[i][j + 1]; in setGrid() 123 colors[3] = cornerColors[i + 1][j]; in setGrid() 124 colors[2] = cornerColors[i + 1][j + 1]; in setGrid() 137 fGrid.setPatch(j, i, points, colors, NULL); in setGrid() 143 fGrid.setPatch(j, i, points, colors, texs); in setGrid() 154 const SkColor colors[] = { in createShader() local 160 return SkGradientShader::CreateLinear(pts, colors, NULL, in createShader() 161 SK_ARRAY_COUNT(colors), in createShader()
|
/external/skia/src/utils/ |
D | SkPatchGrid.cpp | 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], in setPatch() 62 if ((fModeFlags & kColors_VertexType) && colors) { in setPatch() 63 fCornerColors[cornerPos] = colors[0]; in setPatch() 64 fCornerColors[cornerPos + 1] = colors[1]; in setPatch() 65 fCornerColors[cornerPos + (fCols + 1)] = colors[3]; in setPatch() 66 fCornerColors[cornerPos + (fCols + 1) + 1] = colors[2]; in setPatch() 79 bool SkPatchGrid::getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], in getPatch() 105 if ((fModeFlags & kColors_VertexType) && colors) { in getPatch() 106 colors[0] = fCornerColors[cornerPos]; in getPatch() 107 colors[1] = fCornerColors[cornerPos + 1]; in getPatch() [all …]
|
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/ |
D | PySourceColor.py | 749 path2stdout(input, colors=colorscheme, markup=markup, 760 str2stdout(sys.stdin.read(), colors=colorscheme, 775 pageconvert(input, out=output, colors=colorscheme, 779 convert(source=input, outdir=output, colors=colorscheme, 867 str2file(teststr, htmlPath, colors=dark, markup='xhtml', 871 str2file(teststr, htmlPath, colors=dark, markup='xhtml', 882 def str2stdout(sourcestring, colors=None, title='', markup='html', argument 890 Parser(sourcestring, colors=colors, title=title, markup=markup, 894 def path2stdout(sourcepath, title='', colors=None, markup='html', argument 903 Parser(sourcestring, colors=colors, title=sourcepath, [all …]
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
D | TextureBlenderDDS.java | 47 TexturePixel[] colors = new TexturePixel[] { new TexturePixel(), new TexturePixel() }; in blend() local 60 colors[0].fromARGB8(col0); in blend() 61 colors[1].fromARGB8(col1); in blend() 71 for (int i = 0; i < colors.length; ++i) { in blend() 73 colors[i].negate(); in blend() 75 colors[i].toRGBA(pixelColor); in blend() 77 colors[i].fromARGB8(1, resultPixel[0], resultPixel[1], resultPixel[2]); in blend() 78 int argb8 = colors[i].toARGB8(); in blend()
|
/external/selinux/policycoreutils/mcstrans/share/util/ |
D | mlscolor-test | 25 rc, colors = selinux_raw_context_to_color(raw) 30 colors = colors.rstrip() 31 if colors != expected: 32 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context,colors,expected)
|