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

12

/external/chromium_org/third_party/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/tools/lua/
H A Dgradients.lua16 --io.write(g.type, " gradient with ", g.colorCount, " colors\n")
18 if g.colorCount == 3 then
/external/chromium_org/third_party/angle/tests/angle_tests/
H A DBlendMinMaxTest.cpp33 const size_t colorCount = 1024; local
34 Color colors[colorCount];
35 for (size_t i = 0; i < colorCount; i++)
44 for (size_t i = 0; i < colorCount; i++)
/external/chromium_org/third_party/skia/src/lazy/
H A DSkDiscardablePixelRef.cpp65 int colorCount = 0; local
70 if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) {
83 if (colorCount > 0) {
84 fCTable.reset(SkNEW_ARGS(SkColorTable, (colors, colorCount)));
/external/skia/src/lazy/
H A DSkDiscardablePixelRef.cpp65 int colorCount = 0; local
70 if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) {
83 if (colorCount > 0) {
84 fCTable.reset(SkNEW_ARGS(SkColorTable, (colors, colorCount)));
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkGradientShader.cpp88 Thus colorCount (the caller's value, and fColorCount (our value) may
90 colorCount = 2
217 int colorCount = fColorCount = buffer.getArrayCount(); local
218 if (colorCount > kColorStorageCount) {
219 size_t allocSize = (sizeof(SkColor) + sizeof(SkScalar) + sizeof(Rec)) * colorCount;
224 colorCount = fColorCount = 0;
229 buffer.readColorArray(fOrigColors, colorCount);
231 fOrigPos = (SkScalar*)(fOrigColors + colorCount);
239 fRecs = (Rec*)(fOrigPos + colorCount);
240 if (colorCount >
807 desc_init(SkGradientShaderBase::Descriptor* desc, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
818 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
834 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
850 CreateTwoPointRadial(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
871 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
919 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]
H A DSkTwoPointConicalGradient_gpu.cpp206 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
209 colors, stops, colorCount,
485 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
488 colors, stops, colorCount,
694 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
697 colors, stops, colorCount,
943 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
946 colors, stops, colorCount,
1179 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
1182 colors, stops, colorCount,
[all...]
H A DSkSweepGradient.cpp257 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored); local
259 colors, stops, colorCount));
H A DSkLinearGradient.cpp540 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
542 colors, stops, colorCount,
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp33 Thus colorCount (the caller's value, and fColorCount (our value) may
35 colorCount = 2
148 int colorCount = fColorCount = buffer.getArrayCount(); local
149 if (colorCount > kColorStorageCount) {
150 size_t allocSize = (sizeof(SkColor) + sizeof(SkPMColor) + sizeof(Rec)) * colorCount;
155 colorCount = fColorCount = 0;
160 buffer.readColorArray(fOrigColors, colorCount);
168 fRecs = (Rec*)(fOrigColors + colorCount);
169 if (colorCount > 2) {
172 for (int i = 1; i < colorCount;
715 desc_init(SkGradientShaderBase::Descriptor* desc, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags) argument
726 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
742 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
758 CreateTwoPointRadial(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
779 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
827 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]
H A DSkTwoPointConicalGradient_gpu.cpp200 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
203 colors, stops, colorCount,
474 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
477 colors, stops, colorCount,
686 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
689 colors, stops, colorCount,
931 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
934 colors, stops, colorCount,
1162 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
1165 colors, stops, colorCount,
[all...]
H A DSkSweepGradient.cpp247 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored); local
249 colors, stops, colorCount));
H A DSkLinearGradient.cpp526 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
528 colors, stops, colorCount,
H A DSkRadialGradient.cpp537 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
539 colors, stops, colorCount,
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_libgif.cpp137 static int find_transpIndex(const SavedImage& image, int colorCount) { argument
145 if (transpIndex >= colorCount) {
330 int colorCount = 0; local
338 colorCount = cmap->ColorCount;
339 if (colorCount > 256) {
340 colorCount = 256; // our kIndex8 can't support more
342 for (int index = 0; index < colorCount; index++) {
352 colorCount = 256;
353 sk_memset32(colorPtr, SK_ColorWHITE, colorCount);
355 transpIndex = find_transpIndex(temp_save, colorCount);
[all...]
H A DSkImageDecoder_libico.cpp151 int colorCount = readByte(buf, 8 + choice*16); local
192 colorCount = 2;
196 colorCount = 16;
200 colorCount = 256;
204 colorCount = 0;
208 colorCount = 0;
228 if (colorCount)
230 colors = new SkPMColor[colorCount];
231 for (int j = 0; j < colorCount; j++)
246 int xorOffset = begin + colorCount*
[all...]
H A DSkImageDecoder_libpng.cpp668 int colorCount = numPalette + (numPalette < 256); local
722 (colorStorage, colorCount, alphaType));
1031 static int computeBitDepth(int colorCount) { argument
1033 int bits = SkNextLog2(colorCount);
/external/skia/src/images/
H A DSkImageDecoder_libgif.cpp137 static int find_transpIndex(const SavedImage& image, int colorCount) { argument
145 if (transpIndex >= colorCount) {
331 int colorCount = 0; local
339 colorCount = cmap->ColorCount;
340 if (colorCount > 256) {
341 colorCount = 256; // our kIndex8 can't support more
343 for (int index = 0; index < colorCount; index++) {
353 colorCount = 256;
354 sk_memset32(colorPtr, SK_ColorWHITE, colorCount);
356 transpIndex = find_transpIndex(temp_save, colorCount);
[all...]
H A DSkImageDecoder_libico.cpp155 int colorCount = readByte(buf, 8 + choice*16); local
201 colorCount = 2;
205 colorCount = 16;
209 colorCount = 256;
213 colorCount = 0;
217 colorCount = 0;
237 if (colorCount)
239 colors = new SkPMColor[colorCount];
240 for (int j = 0; j < colorCount; j++)
255 int xorOffset = begin + colorCount*
[all...]
H A DSkImageDecoder_libpng.cpp668 int colorCount = numPalette + (numPalette < 256); local
722 (colorStorage, colorCount, alphaType));
1031 static int computeBitDepth(int colorCount) { argument
1033 int bits = SkNextLog2(colorCount);
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/ico/
H A DICOImageDecoder.cpp324 int colorCount = static_cast<uint8_t>(m_data->data()[m_decodedOffset + 2]);
325 if (!colorCount)
326 colorCount = 256; // Vague in the spec, needed by real-world icons.
327 for (--colorCount; colorCount; colorCount >>= 1)
/external/chromium_org/third_party/skia/gm/
H A Dshallowgradient.cpp62 const int colorCount = SK_ARRAY_COUNT(colors); variable
68 paint.setShader(fProc(colors, colorCount, size))->unref();
/external/skia/gm/
H A Dshallowgradient.cpp62 const int colorCount = SK_ARRAY_COUNT(colors); variable
68 paint.setShader(fProc(colors, colorCount, size))->unref();
/external/deqp/modules/egl/
H A DteglNativeColorMappingTests.cpp318 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
332 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
360 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
374 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
400 bool testNativePixmapCopy (TestLog& log, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) argument
414 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
/external/opencv/cvaux/src/
H A Dcvcalibfilter.cpp547 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); local
561 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount];

Completed in 500 milliseconds

12