Home
last modified time | relevance | path

Searched refs:colorCount (Results 1 – 24 of 24) sorted by relevance

/external/skia/include/c/
Dsk_shader.h48 int colorCount,
78 int colorCount,
102 int colorCount,
137 int colorCount,
/external/skia/src/images/
DSkImageDecoder_libgif.cpp137 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 …]
DSkImageDecoder_libico.cpp119 int colorCount = readByte(buf, 8); in onDecode() local
180 colorCount = 2; in onDecode()
184 colorCount = 16; in onDecode()
188 colorCount = 256; in onDecode()
192 colorCount = 0; in onDecode()
196 colorCount = 0; in onDecode()
214 if (length < (size_t) (begin + 4*colorCount)) { in onDecode()
222 if (colorCount) in onDecode()
224 colors = new SkPMColor[colorCount]; in onDecode()
225 for (int j = 0; j < colorCount; j++) in onDecode()
[all …]
DSkImageDecoder_libpng.cpp692 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); in decodePalette() local
694 for (; index < colorCount; index++) { in decodePalette()
698 *colorTablep = new SkColorTable(colorStorage, colorCount); in decodePalette()
747 static int computeBitDepth(int colorCount) { in computeBitDepth() argument
749 int bits = SkNextLog2(colorCount); in computeBitDepth()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp779 const SkColor colors[], const SkScalar pos[], int colorCount, in desc_init() argument
783 desc->fCount = colorCount; in desc_init()
791 const SkScalar pos[], int colorCount, in CreateLinear() argument
798 if (!valid_grad(colors, pos, colorCount, mode)) { in CreateLinear()
801 EXPAND_1_COLOR(colorCount); in CreateLinear()
804 desc_init(&desc, colors, pos, colorCount, mode, flags, localMatrix); in CreateLinear()
810 const SkScalar pos[], int colorCount, in CreateRadial() argument
817 if (!valid_grad(colors, pos, colorCount, mode)) { in CreateRadial()
820 EXPAND_1_COLOR(colorCount); in CreateRadial()
823 desc_init(&desc, colors, pos, colorCount, mode, flags, localMatrix); in CreateRadial()
[all …]
DSkTwoPointConicalGradient_gpu.cpp209 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
212 colors, stops, colorCount, in TestCreate()
490 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
493 colors, stops, colorCount, in TestCreate()
703 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
706 colors, stops, colorCount, in TestCreate()
951 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
954 colors, stops, colorCount, in TestCreate()
1184 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
1187 colors, stops, colorCount, in TestCreate()
DSkSweepGradient.cpp192 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tmIgnored); in TestCreate() local
194 colors, stops, colorCount)); in TestCreate()
DSkRadialGradient.cpp314 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
316 colors, stops, colorCount, in TestCreate()
DSkLinearGradient.cpp432 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); in TestCreate() local
434 colors, stops, colorCount, in TestCreate()
/external/skia/src/codec/
DSkGifCodec.cpp409 uint32_t colorCount = 0; local
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) {
433 if (fTransIndex < colorCount) {
436 } else if (backgroundIndex < colorCount) {
440 for (uint32_t i = colorCount; i < maxColors; i++) {
DSkIcoCodec.cpp239 int* colorCount, int* rowsDecoded) { in onGetPixels() argument
255 colorCount); in onGetPixels()
277 const SkCodec::Options& options, SkPMColor colorTable[], int* colorCount) { in onStartScanlineDecode() argument
287 result = embeddedCodec->startScanlineDecode(dstInfo, &options, colorTable, colorCount); in onStartScanlineDecode()
DSkWbmpCodec.cpp25 SkPMColor* colorPtr, int* colorCount) { in setup_color_table() argument
29 *colorCount = 2; in setup_color_table()
DSkBmpStandardCodec.h73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
DSkBmpRLECodec.h61 bool createColorTable(int* colorCount);
/external/skia/src/lazy/
DSkDiscardablePixelRef.cpp72 int colorCount = 0; in onNewLockPixels() local
74 if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) { in onNewLockPixels()
87 if (colorCount > 0) { in onNewLockPixels()
88 fCTable.reset(new SkColorTable(colors, colorCount)); in onNewLockPixels()
/external/skia/bench/
DCodecBench.cpp53 int colorCount; in onDraw() local
59 colorCount = 256; in onDraw()
65 &options, colorTable, &colorCount); in onDraw()
Dnanobench.cpp780 int colorCount = 256; in rawNext() local
785 &colorCount); in rawNext()
/external/skia/src/c/
Dsk_surface.cpp541 int colorCount, in sk_shader_new_linear_gradient() argument
556 colorPos, colorCount, mode, 0, &matrix); in sk_shader_new_linear_gradient()
568 int colorCount, in sk_shader_new_radial_gradient() argument
586 colorCount, mode, 0, &matrix); in sk_shader_new_radial_gradient()
593 int colorCount, in sk_shader_new_sweep_gradient() argument
606 colorCount, 0, &matrix); in sk_shader_new_sweep_gradient()
616 int colorCount, in sk_shader_new_two_point_conical_gradient() argument
636 colorCount, mode, 0, &matrix); in sk_shader_new_two_point_conical_gradient()
/external/skia/gm/
Dshallowgradient.cpp59 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() local
65 paint.setShader(fProc(colors, colorCount, size))->unref(); in onDraw()
/external/deqp/modules/egl/
DteglNativeColorMappingTests.cpp323 …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/tools/lua/
Dgradients.lua18 if g.colorCount == 3 then
/external/skia/src/core/
DSkImageGenerator.cpp145 SkPMColor* colors, int* colorCount) { in onGetPixels() argument
/external/opencv/cvaux/src/
Dcvcalibfilter.cpp545 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); in DrawPoints() local
559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount]; in DrawPoints()
/external/skia/tests/
DCodexTest.cpp643 int colorCount; in test_invalid_parameters() local
645 decoder->getInfo().makeColorType(kIndex_8_SkColorType), nullptr, colorStorage, &colorCount); in test_invalid_parameters()