/external/skia/tools/lua/ |
gradients.lua | 50 gradients[i].colorCount = g.colorCount 55 for j = 1, g.colorCount, 1 do 56 if not LuaDoubleNearlyEqual(g.positions[j], (j-1)/(g.colorCount-1)) then 63 for j = 2, g.colorCount, 1 do 73 for j = 1, g.colorCount, 1 do 86 for j = 1, v.colorCount , 1 do 88 if j ~= v.colorCount then 95 v.colorCount,
|
gradients.py | 16 ColorCount INTEGER,
|
/external/skqp/tools/lua/ |
gradients.lua | 50 gradients[i].colorCount = g.colorCount 55 for j = 1, g.colorCount, 1 do 56 if not LuaDoubleNearlyEqual(g.positions[j], (j-1)/(g.colorCount-1)) then 63 for j = 2, g.colorCount, 1 do 73 for j = 1, g.colorCount, 1 do 86 for j = 1, v.colorCount , 1 do 88 if j ~= v.colorCount then 95 v.colorCount,
|
gradients.py | 16 ColorCount INTEGER,
|
/external/skia/src/c/ |
sk_effects.cpp | 52 int colorCount, 67 colorPos, colorCount, 79 int colorCount, 96 colorCount, mode, 0, &matrix).release(); 102 int colorCount, 114 colorCount, 0, &matrix).release(); 123 int colorCount, 142 colorCount, mode, 0, &matrix).release();
|
/external/skqp/src/c/ |
sk_effects.cpp | 52 int colorCount, 67 colorPos, colorCount, 79 int colorCount, 96 colorCount, mode, 0, &matrix).release(); 102 int colorCount, 114 colorCount, 0, &matrix).release(); 123 int colorCount, 142 colorCount, mode, 0, &matrix).release();
|
/frameworks/support/palette/src/androidTest/java/androidx/palette/graphics/ |
MaxColorsTest.java | 48 private void testMaxColorCount(int colorCount) { 50 .maximumColorCount(colorCount) 52 assertTrue(newPalette.getSwatches().size() <= colorCount);
|
/external/giflib/ |
gifalloc.c | 40 GifMakeMapObject(int ColorCount, const GifColorType *ColorMap) 44 /*** FIXME: Our ColorCount has to be a power of two. Is it necessary to 46 if (ColorCount != (1 << GifBitSize(ColorCount))) { 55 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType)); 61 Object->ColorCount = ColorCount; 62 Object->BitsPerPixel = GifBitSize(ColorCount); 67 (char *)ColorMap, ColorCount * sizeof(GifColorType)); 91 int i, j, Len = Object->ColorCount; [all...] |
gif_lib.h | 41 int ColorCount; 239 extern ColorMapObject *GifMakeMapObject(int ColorCount,
|
/external/skia/bench/ |
HardStopGradientBench_ScaleNumHardStops.cpp | 19 HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) { 20 SkASSERT(hardStopCount <= colorCount/2); 23 colorCount, hardStopCount); 25 fColorCount = colorCount;
|
/external/skqp/bench/ |
HardStopGradientBench_ScaleNumHardStops.cpp | 19 HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) { 20 SkASSERT(hardStopCount <= colorCount/2); 23 colorCount, hardStopCount); 25 fColorCount = colorCount;
|
/external/skia/include/c/ |
sk_shader.h | 41 @param colorCount Must be >=2. The number of colors (and pos if not 48 int colorCount, 78 int colorCount, 95 @param colorCount Must be >= 2. The number of colors (and pos if 102 int colorCount, 124 @param colorCount Must be >= 2. The number of colors (and pos if 137 int colorCount,
|
/external/skqp/include/c/ |
sk_shader.h | 41 @param colorCount Must be >=2. The number of colors (and pos if not 48 int colorCount, 78 int colorCount, 95 @param colorCount Must be >= 2. The number of colors (and pos if 102 int colorCount, 124 @param colorCount Must be >= 2. The number of colors (and pos if 137 int colorCount,
|
/external/skia/src/shaders/gradients/ |
SkGradientShader.cpp | 137 Thus colorCount (the caller's value, and fColorCount (our value) may 139 colorCount = 2 684 const SkScalar pos[], int colorCount, 686 SkASSERT(colorCount > 1); 691 desc->fCount = colorCount; 764 const SkScalar pos[], int colorCount, 768 ColorConverter converter(colors, colorCount); 769 return MakeLinear(pts, converter.fColors4f.begin(), nullptr, pos, colorCount, mode, flags, 776 const SkScalar pos[], int colorCount, 783 if (!valid_grad(colors, pos, colorCount, mode)) [all...] |
/external/skqp/src/shaders/gradients/ |
SkGradientShader.cpp | 137 Thus colorCount (the caller's value, and fColorCount (our value) may 139 colorCount = 2 664 const SkScalar pos[], int colorCount, 666 SkASSERT(colorCount > 1); 671 desc->fCount = colorCount; 744 const SkScalar pos[], int colorCount, 748 ColorConverter converter(colors, colorCount); 749 return MakeLinear(pts, converter.fColors4f.begin(), nullptr, pos, colorCount, mode, flags, 756 const SkScalar pos[], int colorCount, 763 if (!valid_grad(colors, pos, colorCount, mode)) [all...] |
/external/skia/gm/ |
shallowgradient.cpp | 56 const int colorCount = SK_ARRAY_COUNT(colors); 62 paint.setShader(fProc(colors, colorCount, size));
|
/external/skqp/gm/ |
shallowgradient.cpp | 56 const int colorCount = SK_ARRAY_COUNT(colors); 62 paint.setShader(fProc(colors, colorCount, size));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
MagnifierTest.java | 256 final Map<Integer, Integer> colorCount = new HashMap<>(); 260 colorCount.put(currentColor, colorCount.getOrDefault(currentColor, 0) + 1); 263 assertTrue(colorCount.size() >= expectedQuadrants); 265 final List<Integer> counts = new ArrayList<>(colorCount.values());
|
/external/skia/fuzz/ |
FuzzCanvas.cpp | 238 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { 240 for (int i = 0; i < colorCount; ++i) { 245 for (int i = 0; i < colorCount; ++i) { 248 // SkASSERT(fabs(pos[colorCount - 1] - 1.0f) < 0.00001f); 249 pos[colorCount - 1] = 1.0f; 326 int colorCount; 329 fuzz->nextRange(&colorCount, 2, kMaxColors); 330 fuzz->nextN(colors, colorCount); 336 fuzz_gradient_stops(fuzz, pos, colorCount); 338 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, [all...] |
/external/skqp/fuzz/ |
FuzzCanvas.cpp | 234 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { 236 for (int i = 0; i < colorCount; ++i) { 241 for (int i = 0; i < colorCount; ++i) { 244 // SkASSERT(fabs(pos[colorCount - 1] - 1.0f) < 0.00001f); 245 pos[colorCount - 1] = 1.0f; 322 int colorCount; 325 fuzz->nextRange(&colorCount, 2, kMaxColors); 326 fuzz->nextN(colors, colorCount); 332 fuzz_gradient_stops(fuzz, pos, colorCount); 334 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, [all...] |
/external/skia/src/pdf/ |
SkPDFGradientShader.cpp | 226 int colorCount = info.fColorCount; 227 SkTDArray<SkColor> colors(info.fColors, colorCount); 228 SkTDArray<SkScalar> colorOffsets(info.fColorOffsets, colorCount); 231 while (i < colorCount - 1) { 239 colorCount -= 1; 247 for (i = 1; i < colorCount - 1; i++) { 257 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(colorCount); 259 for (int i = 0; i < colorCount; i++) { 266 if (colorCount == 2) 279 for (int i = 1; i < colorCount; i++) [all...] |
/external/skqp/src/pdf/ |
SkPDFGradientShader.cpp | 226 int colorCount = info.fColorCount; 227 SkTDArray<SkColor> colors(info.fColors, colorCount); 228 SkTDArray<SkScalar> colorOffsets(info.fColorOffsets, colorCount); 231 while (i < colorCount - 1) { 239 colorCount -= 1; 247 for (i = 1; i < colorCount - 1; i++) { 257 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(colorCount); 259 for (int i = 0; i < colorCount; i++) { 266 if (colorCount == 2) 279 for (int i = 1; i < colorCount; i++) [all...] |
/external/skia/src/codec/ |
SkBmpRLECodec.h | 57 * Sets colorCount to the new color count if it is non-nullptr
|
/external/skqp/src/codec/ |
SkBmpRLECodec.h | 57 * Sets colorCount to the new color count if it is non-nullptr
|
/external/deqp/modules/egl/ |
teglNativeColorMappingTests.cpp | 323 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4* colors) 338 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) 366 bool testNativePixmap (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 381 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) 407 bool testNativePixmapCopy (TestLog& log, const Library& egl, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 421 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
|