/external/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 137 static int find_transpIndex(const SavedImage& image, int colorCount) { in find_transpIndex() argument 145 if (transpIndex >= colorCount) { in find_transpIndex() 335 int colorCount = 0; local 342 colorCount = cmap->ColorCount; 343 if (colorCount > 256) { 344 colorCount = 256; // our kIndex8 can't support more 346 for (int index = 0; index < colorCount; index++) { 356 colorCount = 256; 357 sk_memset32(colorPtr, SK_ColorWHITE, colorCount); 359 transpIndex = find_transpIndex(temp_save, colorCount); [all …]
|
D | SkImageDecoder_libico.cpp | 114 int colorCount = readByte(buf, 8); in onDecode() local 175 colorCount = 2; in onDecode() 179 colorCount = 16; in onDecode() 183 colorCount = 256; in onDecode() 187 colorCount = 0; in onDecode() 191 colorCount = 0; in onDecode() 209 if (length < (size_t) (begin + 4*colorCount)) { in onDecode() 217 if (colorCount) in onDecode() 219 colors = new SkPMColor[colorCount]; in onDecode() 220 for (int j = 0; j < colorCount; j++) in onDecode() [all …]
|
D | SkImageDecoder_libpng.cpp | 720 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); in decodePalette() local 722 for (; index < colorCount; index++) { in decodePalette() 726 *colorTablep = SkNEW_ARGS(SkColorTable, (colorStorage, colorCount)); in decodePalette() 1036 static int computeBitDepth(int colorCount) { in computeBitDepth() argument 1038 int bits = SkNextLog2(colorCount); in computeBitDepth()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 756 const SkColor colors[], const SkScalar pos[], int colorCount, in desc_init() argument 760 desc->fCount = colorCount; in desc_init() 768 const SkScalar pos[], int colorCount, in CreateLinear() argument 775 if (!valid_grad(colors, pos, colorCount, mode)) { in CreateLinear() 778 EXPAND_1_COLOR(colorCount); in CreateLinear() 781 desc_init(&desc, colors, pos, colorCount, mode, flags, localMatrix); in CreateLinear() 787 const SkScalar pos[], int colorCount, in CreateRadial() argument 794 if (!valid_grad(colors, pos, colorCount, mode)) { in CreateRadial() 797 EXPAND_1_COLOR(colorCount); in CreateRadial() 800 desc_init(&desc, colors, pos, colorCount, mode, flags, localMatrix); in CreateRadial() [all …]
|
D | SkTwoPointConicalGradient_gpu.cpp | 211 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 214 colors, stops, colorCount, in TestCreate() 497 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 500 colors, stops, colorCount, in TestCreate() 718 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 721 colors, stops, colorCount, in TestCreate() 973 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 976 colors, stops, colorCount, in TestCreate() 1213 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 1216 colors, stops, colorCount, in TestCreate()
|
D | SkSweepGradient.cpp | 257 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored); in TestCreate() local 259 colors, stops, colorCount)); in TestCreate()
|
D | SkRadialGradient.cpp | 513 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 515 colors, stops, colorCount, in TestCreate()
|
D | SkLinearGradient.cpp | 539 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local 541 colors, stops, colorCount, in TestCreate()
|
/external/skia/src/codec/ |
D | SkCodec_libgif.cpp | 352 uint32_t colorCount = 0; local 361 colorCount = colorMap->ColorCount; 362 SkASSERT(colorCount == 364 SkASSERT(colorCount <= 256); 365 for (uint32_t i = 0; i < colorCount; i++) { 388 if (transIndex < colorCount) { 393 } else if (fillIndex >= colorCount) { 410 for (uint32_t i = colorCount; i < maxColors; i++) {
|
D | SkCodec_libpng.cpp | 179 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); in decodePalette() local 181 for (; index < colorCount; index++) { in decodePalette() 187 *ctableCount = colorCount; in decodePalette() 190 fColorTable.reset(SkNEW_ARGS(SkColorTable, (colorStorage, colorCount))); in decodePalette()
|
D | SkCodec_libbmp.h | 91 bool createColorTable(SkAlphaType alphaType, int* colorCount);
|
/external/skia/src/lazy/ |
D | SkDiscardablePixelRef.cpp | 72 int colorCount = 0; in onNewLockPixels() local 75 colors, &colorCount); in onNewLockPixels() 93 if (colorCount > 0) { in onNewLockPixels() 94 fCTable.reset(SkNEW_ARGS(SkColorTable, (colors, colorCount))); in onNewLockPixels()
|
/external/skia/bench/ |
D | CodecBench.cpp | 68 int colorCount; in onDraw() local 70 colorCount = 256; in onDraw() 76 NULL, colorTable, &colorCount); in onDraw()
|
D | nanobench.cpp | 696 int colorCount = 256; in next() local 701 &colorCount); in next()
|
/external/skia/gm/ |
D | shallowgradient.cpp | 56 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() local 62 paint.setShader(fProc(colors, colorCount, size))->unref(); in onDraw()
|
/external/skia/src/core/ |
D | SkImageGenerator.cpp | 124 SkPMColor* colors, int* colorCount) { in onGetPixels() argument 126 return this->onGetPixels(info, dst, rb, colors, colorCount); in onGetPixels()
|
/external/deqp/modules/egl/ |
D | teglNativeColorMappingTests.cpp | 323 …ig, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4… in testNativeWindow() argument 338 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativeWindow() 366 …, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4… in testNativePixmap() argument 381 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativePixmap() 407 …, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4… in testNativePixmapCopy() argument 421 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++) in testNativePixmapCopy()
|
/external/skia/include/c/ |
D | sk_shader.h | 30 int colorCount,
|
/external/skia/tools/lua/ |
D | gradients.lua | 18 if g.colorCount == 3 then
|
/external/skia/src/c/ |
D | sk_surface.cpp | 496 int colorCount, in sk_shader_new_linear_gradient() argument 511 colorPos, colorCount, mode, 0, &matrix); in sk_shader_new_linear_gradient()
|
/external/opencv/cvaux/src/ |
D | cvcalibfilter.cpp | 545 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); in DrawPoints() local 559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount]; in DrawPoints()
|