/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);
|
H A D | SkBitmapProcState_opts_SSE2.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors);
|
/external/skia/gm/ |
H A D | verylargebitmap.cpp | 15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { argument 19 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2, 25 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { argument 27 draw(surface->getCanvas(), width, height, colors); 31 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { argument 33 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); 40 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]); 42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], argument 44 sk_sp<SkImage> image(proc(width, height, colors)); 95 SkColor colors[ variable [all...] |
H A D | shallowgradient.cpp | 14 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { argument 16 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); 19 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { argument 21 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, 25 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { argument 28 colors, nullptr, count, SkShader::kClamp_TileMode); 31 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { argument 32 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); 54 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), variable 56 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
H A D | colorspacexform.cpp | 20 SkColor colors[] = { variable 24 static_assert(kNumColors == SK_ARRAY_COUNT(colors), "Fix number of colors."); 27 fSRGBColors[i] = SkColor4f::FromColor(colors[i]); 46 SkColorSpaceXform::kBGRA_8888_ColorFormat, colors, kNumColors, 66 auto drawColors = [canvas](SkColor4f* colors) { 72 sk_sp<SkShader> s = SkShader::MakeColorShader(colors[i], space); 81 // Wide gamut colors should appear darker - we are simulating a more intense display.
|
H A D | gradtext.cpp | 16 SkColor colors[] = { SK_ColorRED, 0x0000FF00, SK_ColorBLUE }; local 18 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), 24 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; local 26 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), 31 SkColor colors[] = { SK_ColorGREEN, SK_ColorGREEN }; local 33 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
|
/external/skia/src/core/ |
H A D | SkColorTable.cpp | 15 void SkColorTable::init(const SkPMColor colors[], int count) { argument 21 memcpy(fColors, colors, count * sizeof(SkPMColor)); 24 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { argument 25 SkASSERT(0 == count || colors); 31 this->init(colors, count); 34 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) argument 35 : fColors(colors) 39 SkASSERT(colors); 104 std::unique_ptr<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize)); 105 if (!buffer.readColorArray(colors [all...] |
H A D | 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) { 24 _nofilter_DXDY(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, SkPMColor* SK_RESTRICT colors) argument 66 _nofilter_DX(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, SkPMColor* SK_RESTRICT colors) argument 167 _filter_DXDY(const SkBitmapProcState& s, const uint32_t* SK_RESTRICT xy, int count, SkPMColor* SK_RESTRICT colors) argument [all...] |
/external/selinux/mcstrans/share/util/ |
H A D | 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/tests/ |
H A D | ShaderOpacityTest.cpp | 53 SkColor colors[2]; local 59 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 60 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 66 colors[0] = SkColorSetARGB(0, 0, 0, 0); 67 colors[1] = SkColorSetARGB(0, 0, 0, 0); 68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 73 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 74 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 75 grad = SkGradientShader::MakeLinear(pts, colors, po [all...] |
H A D | VerticesTest.cpp | 25 if (!!v0->colors() != !!v1->colors()) { 38 if (v0->colors()) { 39 if (v0->colors()[i] != v1->colors()[i]) { 70 if (builder.colors()) { 71 builder.colors()[i] = SkColorSetARGB(0xFF, i, 0x80, 0);
|
/external/skia/include/c/ |
H A D | 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/skia/src/effects/ |
H A D | SkOverdrawColorFilter.h | 26 static sk_sp<SkOverdrawColorFilter> Make(const SkPMColor colors[kNumColors]) { argument 27 return sk_sp<SkOverdrawColorFilter>(new SkOverdrawColorFilter(colors)); 45 SkOverdrawColorFilter(const SkPMColor colors[kNumColors]) { argument 46 memcpy(fColors, colors, kNumColors * sizeof(SkPMColor));
|
H A D | SkOverdrawColorFilter.cpp | 34 SkPMColor colors[kNumColors]; local 36 if (!buffer.validate(size == sizeof(colors))) { 39 if (!buffer.readByteArray(colors, sizeof(colors))) { 43 return SkOverdrawColorFilter::Make(colors); 58 static sk_sp<GrFragmentProcessor> Make(const SkPMColor* colors); 66 OverdrawFragmentProcessor(const GrColor4f* colors); 75 GLOverdrawFragmentProcessor(const GrColor4f* colors); 93 sk_sp<GrFragmentProcessor> OverdrawFragmentProcessor::Make(const SkPMColor* colors) { argument 96 grColors[i] = GrColor4f::FromGrColor(GrColorPackRGBA(SkGetPackedR32(colors[ 107 OverdrawFragmentProcessor(const GrColor4f* colors) argument 123 GLOverdrawFragmentProcessor(const GrColor4f* colors) argument [all...] |
/external/skia/samplecode/ |
H A D | SampleShaders.cpp | 25 SkColor colors[2]; local 29 colors[0] = SK_ColorBLACK; 30 colors[1] = SkColorSetARGB(0, 0, 0, 0); 31 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 48 SkColor colors[2]; local 52 colors[0] = SK_ColorRED; 53 colors[1] = SK_ColorBLUE; 54 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 58 colors[0] = SK_ColorBLACK; 59 colors[ [all...] |
/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 32 @param colors The array[count] of colors, to be distributed between the two points 34 each corresponding color in the colors array. If this is NULL, 35 the the colors are distributed evenly between the start and end point. 38 @param count Must be >=2. The number of colors (and pos if not NULL) entries. 42 const SkColor colors[], const SkScalar pos[], int count, 46 const SkColor colors[], const SkScalar pos[], int count, 48 return MakeLinear(pts, colors, po 45 MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 67 MakeLinear(const SkPoint pts[2], const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int count, SkShader::TileMode mode) argument 90 MakeRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 113 MakeRadial(const SkPoint& center, SkScalar radius, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int count, SkShader::TileMode mode) argument 130 MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkShader::TileMode mode) argument 150 MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int count, SkShader::TileMode mode) argument 174 MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count) argument 195 MakeSweep(SkScalar cx, SkScalar cy, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int count) argument [all...] |
/external/skia/fuzz/ |
H A D | FuzzGradients.cpp | 26 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, argument 37 colors->clear(); 43 colors->push_back(c); 67 const std::vector<SkColor>& colors, 80 SkDebugf(" colors:\t[ "); 81 for (auto color : colors) { 112 std::vector<SkColor> colors; local 115 initGradientParams(fuzz, &colors, &pos, &mode); 125 p.setShader(SkGradientShader::MakeLinear(pts, colors.data(), pos.data(), 126 colors 66 logLinearGradient(const SkPoint pts[2], const std::vector<SkColor>& colors, const std::vector<SkScalar> pos, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix, const SkMatrix* globalMatrix) argument 150 std::vector<SkColor> colors; local 188 std::vector<SkColor> colors; local 222 std::vector<SkColor> colors; local [all...] |
/external/skia/include/core/ |
H A D | 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); 69 void init(const SkPMColor* colors, in [all...] |
H A D | SkVertices.h | 24 * Create a vertices by copying the specified arrays. texs and colors may be nullptr, 30 const SkColor colors[], 37 const SkColor colors[]) { 38 return MakeCopy(mode, vertexCount, positions, texs, colors, 0, nullptr); 58 SkColor* colors(); // returns null if there are no colors 79 bool hasColors() const { return SkToBool(this->colors()); } 86 const SkColor* colors() const { return fColors; } function in class:SkVertices 34 MakeCopy(SkCanvas::VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[]) argument
|
/external/ImageMagick/MagickCore/ |
H A D | colormap-private.h | 32 if ((index < 0) || (index >= (ssize_t) image->colors)) 44 if ((index < 0) || (index >= (ssize_t) image->colors))
|
H A D | colormap.c | 94 % MagickBooleanType AcquireImageColormap(Image *image,const size_t colors, 101 % o colors: the number of colors in the image colormap. 107 const size_t colors,ExceptionInfo *exception) 119 image->colors=MagickMax(colors,1); 121 image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors, 125 image->colors,sizeof(*image->colormap)); 128 image->colors=0; 133 for (i=0; i < (ssize_t) image->colors; 104 AcquireImageColormap(Image *image, const size_t colors,ExceptionInfo *exception) argument [all...] |
/external/smali/smalidea/src/main/java/org/jf/smalidea/ |
H A D | SmaliColorsPage.java | 34 import com.intellij.openapi.editor.colors.TextAttributesKey; 36 import com.intellij.openapi.options.colors.AttributesDescriptor; 37 import com.intellij.openapi.options.colors.ColorDescriptor; 38 import com.intellij.openapi.options.colors.ColorSettingsPage;
|
/external/ImageMagick/coders/ |
H A D | xwd.c | 200 *colors; 322 colors=(XColor *) NULL; 329 colors=(XColor *) AcquireQuantumMemory(length,sizeof(*colors)); 330 if (colors == (XColor *) NULL) 343 colors[i].pixel=color.pixel; 344 colors[i].red=color.red; 345 colors[i].green=color.green; 346 colors[i].blue=color.blue; 347 colors[ 196 *colors; local 776 *colors; local [all...] |
H A D | dps.c | 135 *colors; 256 Get the colormap colors. 258 colors=(XColor *) AcquireQuantumMemory(visual_info->colormap_size, 259 sizeof(*colors)); 260 if (colors == (XColor *) NULL) 271 colors[i].pixel=(size_t) i; 272 colors[i].pad=0; 295 colors[i].pixel=red | green | blue; 296 colors[i].pad=0; 309 colors,visual_inf 133 *colors; local [all...] |
/external/skia/experimental/svg/model/ |
H A D | SkSVGLinearGradient.cpp | 89 SkSTArray<2, SkColor, true>* colors) const { 99 colors->push_back(SkColorSetA(stop.stopColor(), 105 SkASSERT(colors->count() == pos->count()); 110 static_cast<const SkSVGLinearGradient*>(ref)->collectColorStops(ctx, pos, colors); 123 SkSTArray<2, SkColor , true> colors; local 126 this->collectColorStops(ctx, &pos, &colors); 141 paint->setShader(SkGradientShader::MakeLinear(pts, colors.begin(), pos.begin(), colors.count(),
|