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

/external/skia/include/c/
H A Dsk_shader.h41 @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/tools/lua/
H A Dgradients.lua16 --io.write(g.type, " gradient with ", g.colorCount, " colors\n")
18 if g.colorCount == 3 then
/external/skia/bench/
H A DCodecBench.cpp53 int colorCount; local
59 colorCount = 256;
65 &options, colorTable, &colorCount);
H A Dnanobench.cpp780 int colorCount = 256; local
785 &colorCount);
/external/skia/src/images/
H A DSkImageDecoder_libgif.cpp137 static int find_transpIndex(const SavedImage& image, int colorCount) { argument
145 if (transpIndex >= colorCount) {
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...]
H A DSkImageDecoder_libico.cpp119 int colorCount = readByte(buf, 8); local
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;
[all...]
H A DSkImageDecoder_libpng.cpp692 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); local
694 for (; index < colorCount; index++) {
698 *colorTablep = new SkColorTable(colorStorage, colorCount);
747 static int computeBitDepth(int colorCount) { argument
749 int bits = SkNextLog2(colorCount);
/external/skia/src/lazy/
H A DSkDiscardablePixelRef.cpp72 int colorCount = 0; local
74 if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) {
87 if (colorCount > 0) {
88 fCTable.reset(new SkColorTable(colors, colorCount));
/external/skia/src/codec/
H A 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) {
426 // colorCount, we know that there is no valid transparent color in the color
433 if (fTransIndex < colorCount) {
436 } else if (backgroundIndex < colorCount) {
440 for (uint32_t i = colorCount;
[all...]
H A DSkBmpRLECodec.h59 * Sets colorCount to the new color count if it is non-nullptr
61 bool createColorTable(int* colorCount);
H A DSkBmpStandardCodec.h71 * Sets colorCount to the new color count if it is non-nullptr
73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
H A DSkIcoCodec.cpp239 int* colorCount, int* rowsDecoded) {
255 colorCount);
277 const SkCodec::Options& options, SkPMColor colorTable[], int* colorCount) {
287 result = embeddedCodec->startScanlineDecode(dstInfo, &options, colorTable, colorCount);
236 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, SkPMColor* colorTable, int* colorCount, int* rowsDecoded) argument
276 onStartScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options& options, SkPMColor colorTable[], int* colorCount) argument
H A DSkWbmpCodec.cpp25 SkPMColor* colorPtr, int* colorCount) {
29 *colorCount = 2;
24 setup_color_table(SkColorType colorType, SkPMColor* colorPtr, int* colorCount) argument
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp90 Thus colorCount (the caller's value, and fColorCount (our value) may
92 colorCount = 2
779 const SkColor colors[], const SkScalar pos[], int colorCount,
783 desc->fCount = colorCount;
791 const SkScalar pos[], int colorCount,
798 if (!valid_grad(colors, pos, colorCount, mode)) {
801 EXPAND_1_COLOR(colorCount);
804 desc_init(&desc, colors, pos, colorCount, mode, flags, localMatrix);
810 const SkScalar pos[], int colorCount,
817 if (!valid_grad(colors, pos, colorCount, mod
778 desc_init(SkGradientShaderBase::Descriptor* desc, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
789 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
808 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
827 CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
878 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]
H A DSkSweepGradient.cpp192 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tmIgnored); local
194 colors, stops, colorCount));
H A DSkTwoPointConicalGradient_gpu.cpp209 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
212 colors, stops, colorCount,
490 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
493 colors, stops, colorCount,
703 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
706 colors, stops, colorCount,
951 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
954 colors, stops, colorCount,
1184 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
1187 colors, stops, colorCount,
[all...]
H A DSkRadialGradient.cpp314 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
316 colors, stops, colorCount,
H A DSkLinearGradient.cpp432 int colorCount = RandomGradientParams(d->fRandom, colors, &stops, &tm); local
434 colors, stops, colorCount,
/external/skia/gm/
H A Dshallowgradient.cpp59 const int colorCount = SK_ARRAY_COUNT(colors); variable
65 paint.setShader(fProc(colors, colorCount, size))->unref();
/external/skia/src/c/
H A Dsk_surface.cpp541 int colorCount,
556 colorPos, colorCount, mode, 0, &matrix);
568 int colorCount,
586 colorCount, mode, 0, &matrix);
593 int colorCount,
606 colorCount, 0, &matrix);
616 int colorCount,
636 colorCount, mode, 0, &matrix);
538 sk_shader_new_linear_gradient(const sk_point_t pts[2], const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
564 sk_shader_new_radial_gradient(const sk_point_t* ccenter, float radius, const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
590 sk_shader_new_sweep_gradient(const sk_point_t* ccenter, const sk_color_t colors[], const float colorPos[], int colorCount, const sk_matrix_t* cmatrix) argument
610 sk_shader_new_two_point_conical_gradient(const sk_point_t* start, float startRadius, const sk_point_t* end, float endRadius, const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
/external/deqp/modules/egl/
H A DteglNativeColorMappingTests.cpp323 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) argument
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) argument
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) argument
421 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
/external/skia/src/core/
H A DSkImageGenerator.cpp145 SkPMColor* colors, int* colorCount) {
144 onGetPixels(const SkImageInfo& info, void* dst, size_t rb, SkPMColor* colors, int* colorCount) argument
/external/opencv/cvaux/src/
H A Dcvcalibfilter.cpp545 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); local
559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount];
/external/skia/tests/
H A DCodexTest.cpp643 int colorCount; local
645 decoder->getInfo().makeColorType(kIndex_8_SkColorType), nullptr, colorStorage, &colorCount);

Completed in 385 milliseconds