HomeSort by relevance Sort by last modified time
    Searched refs:colors (Results 1 - 25 of 789) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/src/opts/
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);
SkBitmapProcState_opts_mips_dsp.cpp 17 int count, SkPMColor* SK_RESTRICT colors) {
18 SkASSERT(count > 0 && colors != nullptr);
28 sk_memset32(colors, dstValue, count);
109 "pref 30, 64(%[colors]) \n\t"
110 "sw $t0, 0(%[colors]) \n\t"
111 "sw $t1, 4(%[colors]) \n\t"
112 "sw $t2, 8(%[colors]) \n\t"
113 "sw $t3, 12(%[colors]) \n\t"
114 "sw $t4, 16(%[colors]) \n\t"
115 "sw $t5, 20(%[colors]) \n\t
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
GradientColorValue.java 11 private float[] colors = {1, 1, 1}; field in class:GradientColorValue
23 return colors;
26 public void setColors (float[] colors) {
27 this.colors = colors;
49 float r1 = colors[startIndex];
50 float g1 = colors[startIndex + 1];
51 float b1 = colors[startIndex + 2];
60 out[index] = r1 + (colors[endIndex] - r1) * factor;
61 out[index+1] = g1 + (colors[endIndex + 1] - g1) * factor
    [all...]
  /external/skia/include/effects/
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, pos, count, mode, 0, NULL)
    [all...]
  /external/skia/gm/
verylargebitmap.cpp 15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, nullptr, 2,
26 static SkImage* make_raster_image(int width, int height, SkColor colors[2]) {
28 draw(surface->getCanvas(), width, height, colors);
32 static SkImage* make_picture_image(int width, int height, SkColor colors[2]) {
34 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors);
40 typedef SkImage* (*ImageMakerProc)(int width, int height, SkColor colors[2]);
42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2],
44 SkAutoTUnref<SkImage> image(proc(width, height, colors));
95 SkColor colors[2] variable
    [all...]
shallowgradient.cpp 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
15 return SkGradientShader::CreateLinear(pts, colors, nullptr, count,
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count,
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) {
29 colors, nullptr, count,
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
35 colors, nullptr, count);
57 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), variable
59 const int colorCount = SK_ARRAY_COUNT(colors);
    [all...]
  /external/skia/src/core/
SkColorTable.cpp 16 void SkColorTable::init(const SkPMColor colors[], int count) {
22 memcpy(fColors, colors, count * sizeof(SkPMColor));
25 SkColorTable::SkColorTable(const SkPMColor colors[], int count) {
26 SkASSERT(0 == count || colors);
32 this->init(colors, count);
35 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc)
36 : fColors(colors)
40 SkASSERT(colors);
105 SkAutoTDelete<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize));
106 if (!buffer.readColorArray(colors, count))
    [all...]
SkBitmapProcState_sample.h 13 int count, SkPMColor* SK_RESTRICT colors);
16 int count, SkPMColor* SK_RESTRICT colors);
19 int count, SkPMColor* SK_RESTRICT colors);
22 int count, SkPMColor* SK_RESTRICT colors);
26 int count, SkPMColor* SK_RESTRICT colors) {
27 SkASSERT(count > 0 && colors != nullptr);
45 *colors++ = RETURNDST(src);
51 *colors++ = RETURNDST(src);
58 *colors++ = RETURNDST(src);
68 int count, SkPMColor* SK_RESTRICT colors) {
    [all...]
  /external/selinux/policycoreutils/mcstrans/share/util/
mlscolor-test 26 rc, colors = selinux_raw_context_to_color(raw)
28 print "Unable to get colors for '%s'" % (context)
31 colors = colors.rstrip()
32 if colors != expected:
33 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context, colors, expected)
  /external/skia/include/c/
sk_shader.h 32 @param colors The array[count] of colors, to be distributed between
36 in the colors array. If this is NULL, the the
37 colors are distributed evenly between the start
41 @param colorCount Must be >=2. The number of colors (and pos if not
46 const sk_color_t colors[],
60 @param colors The array[count] of colors, to be distributed
63 position of each corresponding color in the colors
64 array. If this is NULL, the the colors ar
    [all...]
  /external/opencv3/samples/python2/
kmeans.py 25 colors = np.zeros((1, cluster_n, 3), np.uint8) variable
26 colors[0,:] = 255
27 colors[0,:,0] = np.arange(0, 180, 180.0/cluster_n)
28 colors = cv2.cvtColor(colors, cv2.COLOR_HSV2BGR)[0] variable
39 c = map(int, colors[label])
stereo_match.py 24 def write_ply(fn, verts, colors):
26 colors = colors.reshape(-1, 3)
27 verts = np.hstack([verts, colors])
64 colors = cv2.cvtColor(imgL, cv2.COLOR_BGR2RGB) variable
67 out_colors = colors[mask]
  /frameworks/base/graphics/java/android/graphics/
SweepGradient.java 42 * @param colors The colors to be distributed between around the center.
43 * There must be at least 2 colors in the array.
45 * each corresponding color in the colors array, beginning
48 * If positions is NULL, then the colors are automatically
52 int colors[], float positions[]) {
53 if (colors.length < 2) {
54 throw new IllegalArgumentException("needs >= 2 number of colors");
56 if (positions != null && colors.length != positions.length) {
63 mColors = colors;
    [all...]
LinearGradient.java 46 @param colors The colors to be distributed along the gradient line
48 each corresponding color in the colors array. If this is null,
49 the the colors are distributed evenly along the gradient line.
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[],
54 if (colors.length < 2) {
55 throw new IllegalArgumentException("needs >= 2 number of colors");
57 if (positions != null && colors.length != positions.length) {
65 mColors = colors;
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt))
    [all...]
RadialGradient.java 47 @param colors The colors to be distributed between the center and edge of the circle
50 the colors array. If <code>null</code>, colors are distributed evenly
55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) {
59 if (colors.length < 2) {
60 throw new IllegalArgumentException("needs >= 2 number of colors");
62 if (stops != null && colors.length != stops.length) {
69 mColors = colors;
72 init(nativeCreate1(centerX, centerY, radius, colors, stops, tileMode.nativeInt))
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
LinearColorPreference.java 68 LinearColorBar colors = (LinearColorBar)view.findViewById( local
70 colors.setShowIndicator(false);
71 colors.setColors(mRedColor, mYellowColor, mGreenColor);
72 colors.setRatios(mRedRatio, mYellowRatio, mGreenRatio);
73 colors.setColoredRegions(mColoredRegions);
74 colors.setOnRegionTappedListener(mOnRegionTappedListener);
  /frameworks/base/libs/hwui/
GradientCache.h 37 colors = nullptr;
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) {
42 copy(colors, positions, count);
46 copy(entry.colors.get(), entry.positions.get(), entry.count);
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
69 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry
74 void copy(uint32_t* colors, float* positions, uint32_t count) {
76 this->colors.reset(new uint32_t[count]);
79 memcpy(this->colors.get(), colors, count * sizeof(uint32_t))
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 53 final int[] colors = new int[] { Color.GREEN, Color.RED }; local
55 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]);
58 checkColors(colors, positions, TOLERANCE);
62 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local
64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
68 checkColors(colors, positions, TOLERANCE);
72 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
79 checkColors(colors, positions, TOLERANCE)
    [all...]
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java 81 int[] colors = new int[100]; local
83 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10,
98 assertEquals("getPixel", p, colors[i]);
107 int[] colors = new int[100]; local
109 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565);
124 int[] colors = new int[100]; local
126 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
130 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config)
150 int[] colors = new int[100]; local
180 int[] colors = new int[256]; local
    [all...]
  /external/skia/tests/
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, pos, count, mode)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GradientStopsActivity.java 45 int[] colors = new int[] { 0xffff0000, 0xff0000ff }; local
48 colors, positions, Shader.TileMode.CLAMP);
55 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 };
58 colors, positions, Shader.TileMode.CLAMP);
65 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 };
68 colors, positions, Shader.TileMode.CLAMP);
75 colors = new int[] { 0xff000000, 0xffffffff };
77 colors, null, Shader.TileMode.CLAMP);
85 colors, null, Shader.TileMode.REPEAT);
93 colors, null, Shader.TileMode.MIRROR)
    [all...]
  /external/skia/include/core/
SkColorTable.h 20 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by
27 /** Copy up to 256 colors into a new SkColorTable.
29 SkColorTable(const SkPMColor colors[], int count);
32 /** Returns the number of colors in the table.
44 /** Return the array of colors for reading.
48 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors.
61 // assumes ownership of colors (assumes it was allocated w/ malloc)
62 SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc);
68 void init(const SkPMColor* colors, int count)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
SwitchTest.java 66 ColorStateList colors = ColorStateList.valueOf(Color.RED); local
67 mSwitch.setThumbTintList(colors);
70 assertSame(colors, mSwitch.getThumbTintList());
79 ColorStateList colors = ColorStateList.valueOf(Color.RED); local
80 mSwitch.setTrackTintList(colors);
83 assertSame(colors, mSwitch.getTrackTintList());
  /external/opencv3/modules/cudalegacy/src/
needle_map.cpp 63 void cv::cuda::createOpticalFlowNeedleMap(const GpuMat& u, const GpuMat& v, GpuMat& vertex, GpuMat& colors)
85 colors.create(1, num_arrows, CV_32FC3);
87 colors.setTo(Scalar::all(1.0));
95 CreateOpticalFlowNeedleMap_gpu(u_avg, v_avg, vertex.ptr<float>(), colors.ptr<float>(), max_flow, 1.0f / u.cols, 1.0f / u.rows);
97 cuda::cvtColor(colors, colors, COLOR_HSV2RGB);
  /external/ImageMagick/MagickCore/
colormap-private.h 32 if ((index < 0) || (index >= (ssize_t) image->colors))
44 if ((index < 0) || (index >= (ssize_t) image->colors))

Completed in 1526 milliseconds

1 2 3 4 5 6 7 8 91011>>