Searched defs:colorCount (Results 1 - 16 of 16) sorted by relevance

/external/skia/gm/
H A Dshallowgradient.cpp55 const int colorCount = SK_ARRAY_COUNT(colors); variable
61 paint.setShader(fProc(colors, colorCount, size))->unref();
/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) {
285 int colorCount = 0; local
292 colorCount = cmap->ColorCount;
293 if (colorCount > 256) {
294 colorCount = 256; // our kIndex8 can't support more
296 for (int index = 0; index < colorCount; index++) {
306 colorCount = 256;
307 sk_memset32(colorPtr, SK_ColorWHITE, colorCount);
309 transpIndex = find_transpIndex(temp_save, colorCount);
[all...]
H A DSkImageDecoder_libico.cpp147 int colorCount = readByte(buf, 8 + choice*16); local
182 colorCount = 2;
186 colorCount = 16;
190 colorCount = 256;
194 colorCount = 0;
198 colorCount = 0;
218 if (colorCount)
220 colors = new SkPMColor[colorCount];
221 for (int j = 0; j < colorCount; j++)
236 int xorOffset = begin + colorCount*
[all...]
H A DSkImageDecoder_libpng.cpp678 int colorCount = numPalette + (numPalette < 256); local
732 (colorStorage, colorCount, alphaType));
1043 static int computeBitDepth(int colorCount) { argument
1045 int bits = SkNextLog2(colorCount);
/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];
/external/skia/src/images/
H A DSkImageDecoder_libgif.cpp137 static int find_transpIndex(const SavedImage& image, int colorCount) { argument
145 if (transpIndex >= colorCount) {
285 int colorCount = 0; local
292 colorCount = cmap->ColorCount;
293 if (colorCount > 256) {
294 colorCount = 256; // our kIndex8 can't support more
296 for (int index = 0; index < colorCount; index++) {
306 colorCount = 256;
307 sk_memset32(colorPtr, SK_ColorWHITE, colorCount);
309 transpIndex = find_transpIndex(temp_save, colorCount);
[all...]
H A DSkImageDecoder_libico.cpp147 int colorCount = readByte(buf, 8 + choice*16); local
182 colorCount = 2;
186 colorCount = 16;
190 colorCount = 256;
194 colorCount = 0;
198 colorCount = 0;
218 if (colorCount)
220 colors = new SkPMColor[colorCount];
221 for (int j = 0; j < colorCount; j++)
236 int xorOffset = begin + colorCount*
[all...]
H A DSkImageDecoder_libpng.cpp677 int colorCount = numPalette + (numPalette < 256); local
731 (colorStorage, colorCount, alphaType));
1042 static int computeBitDepth(int colorCount) { argument
1044 int bits = SkNextLog2(colorCount);
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkGradientShader.cpp39 Thus colorCount (the caller's value, and fColorCount (our value) may
41 colorCount = 2
155 int colorCount = fColorCount = buffer.getArrayCount(); local
156 if (colorCount > kColorStorageCount) {
158 fOrigColors = (SkColor*)sk_malloc_throw(size * colorCount);
162 buffer.readColorArray(fOrigColors, colorCount);
170 fRecs = (Rec*)(fOrigColors + colorCount);
171 if (colorCount > 2) {
174 for (int i = 1; i < colorCount; i++) {
707 const SkScalar pos[], int colorCount,
[all...]
H A DSkLinearGradient.cpp511 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
513 colors, stops, colorCount,
H A DSkRadialGradient.cpp520 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
522 colors, stops, colorCount,
H A DSkTwoPointConicalGradient.cpp476 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
479 colors, stops, colorCount,
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp39 Thus colorCount (the caller's value, and fColorCount (our value) may
41 colorCount = 2
155 int colorCount = fColorCount = buffer.getArrayCount(); local
156 if (colorCount > kColorStorageCount) {
158 fOrigColors = (SkColor*)sk_malloc_throw(size * colorCount);
162 buffer.readColorArray(fOrigColors, colorCount);
170 fRecs = (Rec*)(fOrigColors + colorCount);
171 if (colorCount > 2) {
174 for (int i = 1; i < colorCount; i++) {
707 const SkScalar pos[], int colorCount,
[all...]
H A DSkLinearGradient.cpp511 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
513 colors, stops, colorCount,
H A DSkRadialGradient.cpp520 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
522 colors, stops, colorCount,
H A DSkTwoPointConicalGradient.cpp476 int colorCount = RandomGradientParams(random, colors, &stops, &tm); local
479 colors, stops, colorCount,

Completed in 2018 milliseconds