/external/skia/bench/ |
CodecBench.cpp | 53 int colorCount; 59 colorCount = 256; 65 &options, colorTable, &colorCount);
|
nanobench.cpp | 780 int colorCount = 256; 785 &colorCount); [all...] |
/external/skia/src/lazy/ |
SkDiscardablePixelRef.cpp | 72 int colorCount = 0; 74 if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) { 87 if (colorCount > 0) { 88 fCTable.reset(new SkColorTable(colors, colorCount));
|
/external/skia/gm/ |
shallowgradient.cpp | 59 const int colorCount = SK_ARRAY_COUNT(colors); 65 paint.setShader(fProc(colors, colorCount, size))->unref();
|
/external/opencv/cvaux/src/ |
cvcalibfilter.cpp | 545 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); 559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount];
|
/external/skia/src/codec/ |
SkGifCodec.cpp | 409 uint32_t colorCount = 0; 411 colorCount = colorMap->ColorCount; 413 SkASSERT(colorCount == (unsigned) (1 << (colorMap->BitsPerPixel))); 414 SkASSERT(colorCount <= 256); 415 for (uint32_t i = 0; i < colorCount; i++) { 423 if (colorCount > 0) { 426 // colorCount, we know that there is no valid transparent color in the color 433 if (fTransIndex < colorCount) { 436 } else if (backgroundIndex < colorCount) { [all...] |
/external/skia/src/effects/gradients/ |
SkSweepGradient.cpp | 192 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tmIgnored); 194 colors, stops, colorCount));
|
SkRadialGradient.cpp | 314 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); 316 colors, stops, colorCount,
|
SkLinearGradient.cpp | 432 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); 434 colors, stops, colorCount,
|
SkTwoPointConicalGradient_gpu.cpp | 209 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); 212 colors, stops, colorCount, 490 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); 493 colors, stops, colorCount, 703 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); 706 colors, stops, colorCount, [all...] |
/external/skia/src/images/ |
SkImageDecoder_libgif.cpp | 129 if (cmap && ((unsigned)cmap->ColorCount > 256 || 130 cmap->ColorCount != (1 << cmap->BitsPerPixel))) { 137 static int find_transpIndex(const SavedImage& image, int colorCount) { 145 if (transpIndex >= colorCount) { 335 int colorCount = 0; 341 SkASSERT(cmap->ColorCount == (1 << (cmap->BitsPerPixel))); 342 colorCount = cmap->ColorCount; 343 if (colorCount > 256) { 344 colorCount = 256; // our kIndex8 can't support mor [all...] |
SkImageDecoder_libico.cpp | 119 int colorCount = readByte(buf, 8); 180 colorCount = 2; 184 colorCount = 16; 188 colorCount = 256; 192 colorCount = 0; 196 colorCount = 0; 214 if (length < (size_t) (begin + 4*colorCount)) { 222 if (colorCount) 224 colors = new SkPMColor[colorCount]; 225 for (int j = 0; j < colorCount; j++ [all...] |
SkImageDecoder_libpng.cpp | 692 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); 694 for (; index < colorCount; index++) { 698 *colorTablep = new SkColorTable(colorStorage, colorCount); 745 // entries. SkBitmap always stores in 8bits per pixel, but for colorcount <= 16, 747 static int computeBitDepth(int colorCount) { 749 int bits = SkNextLog2(colorCount); [all...] |
/external/skia/tests/ |
CodexTest.cpp | 643 int colorCount; 645 decoder->getInfo().makeColorType(kIndex_8_SkColorType), nullptr, colorStorage, &colorCount); [all...] |
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 370 int* colorCount = nullptr; 382 colorCount = &maxColors; 414 codecOptions.fColorCount = colorCount;
|