Home
last modified time | relevance | path

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

/external/skia/src/effects/gradients/
DSkGradientShader.cpp17 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper) { in SkGradientShaderBase() argument
18 SkASSERT(colorCount > 1); in SkGradientShaderBase()
45 fColorCount = colorCount; in SkGradientShaderBase()
51 dummyLast = pos[colorCount - 1] != SK_Scalar1; in SkGradientShaderBase()
70 memcpy(origColors, colors, colorCount * sizeof(SkColor)); in SkGradientShaderBase()
72 origColors += colorCount; in SkGradientShaderBase()
73 *origColors = colors[colorCount - 1]; in SkGradientShaderBase()
93 int count = colorCount + dummyLast; in SkGradientShaderBase()
97 if (i == colorCount) { // we're really at the dummyLast in SkGradientShaderBase()
119 SkFixed dp = SK_Fixed1 / (colorCount - 1); in SkGradientShaderBase()
[all …]
DSkLinearGradient.h17 const SkColor colors[], const SkScalar pos[], int colorCount,
DSkRadialGradient.h17 const SkColor colors[], const SkScalar pos[], int colorCount,
DSkLinearGradient.cpp68 int colorCount, in SkLinearGradient() argument
71 : SkGradientShaderBase(colors, pos, colorCount, mode, mapper) in SkLinearGradient()
530 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local
532 colors, stops, colorCount, in TestCreate()
DSkTwoPointRadialGradient.h19 int colorCount, SkShader::TileMode mode,
DSkRadialGradient.cpp156 const SkColor colors[], const SkScalar pos[], int colorCount, in SkRadialGradient() argument
158 : SkGradientShaderBase(colors, pos, colorCount, mode, mapper), in SkRadialGradient()
551 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local
553 colors, stops, colorCount, in TestCreate()
DSkTwoPointRadialGradient.cpp174 int colorCount, SkShader::TileMode mode, in SkTwoPointRadialGradient() argument
176 : SkGradientShaderBase(colors, pos, colorCount, mode, mapper), in SkTwoPointRadialGradient()
507 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local
510 colors, stops, colorCount, in TestCreate()
DSkTwoPointConicalGradient.h51 int colorCount, SkShader::TileMode mode,
DSkTwoPointConicalGradient.cpp172 int colorCount, SkShader::TileMode mode, in SkTwoPointConicalGradient() argument
174 : SkGradientShaderBase(colors, pos, colorCount, mode, mapper), in SkTwoPointConicalGradient()
447 int colorCount = RandomGradientParams(random, colors, &stops, &tm); in TestCreate() local
450 colors, stops, colorCount, in TestCreate()
DSkSweepGradient.cpp454 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored); in TestCreate() local
456 colors, stops, colorCount)); in TestCreate()
DSkGradientShaderPriv.h91 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper);
/external/skia/src/images/
DSkImageDecoder_libico.cpp149 int colorCount = readByte(buf, 8 + choice*16); in onDecode() local
170 colorCount = 2; in onDecode()
174 colorCount = 16; in onDecode()
178 colorCount = 256; in onDecode()
182 colorCount = 0; in onDecode()
186 colorCount = 0; in onDecode()
206 if (colorCount) in onDecode()
208 colors = new SkPMColor[colorCount]; in onDecode()
209 for (int j = 0; j < colorCount; j++) in onDecode()
224 int xorOffset = begin + colorCount*4; //beginning of the color bitmap in onDecode()
DSkImageDecoder_libgif.cpp130 static int find_transpIndex(const SavedImage& image, int colorCount) { in find_transpIndex() argument
138 if (transpIndex >= colorCount) { in find_transpIndex()
228 int colorCount = 0; local
235 colorCount = cmap->ColorCount;
236 SkColorTable* ctable = SkNEW_ARGS(SkColorTable, (colorCount));
238 for (int index = 0; index < colorCount; index++)
244 transpIndex = find_transpIndex(temp_save, colorCount);
283 static_cast<unsigned>(colorCount)) {
DSkImageDecoder_libpng.cpp583 int colorCount = num_palette + (num_palette < 256); in decodePalette() local
585 colorTable = SkNEW_ARGS(SkColorTable, (colorCount)); in decodePalette()
861 static int computeBitDepth(int colorCount) { in computeBitDepth() argument
863 int bits = SkNextLog2(colorCount); in computeBitDepth()
/external/skia/legacy/src/images/
DSkImageDecoder_libico.cpp149 int colorCount = readByte(buf, 8 + choice*16); in onDecode() local
170 colorCount = 2; in onDecode()
174 colorCount = 16; in onDecode()
178 colorCount = 256; in onDecode()
182 colorCount = 0; in onDecode()
186 colorCount = 0; in onDecode()
206 if (colorCount) in onDecode()
208 colors = new SkPMColor[colorCount]; in onDecode()
209 for (int j = 0; j < colorCount; j++) in onDecode()
224 int xorOffset = begin + colorCount*4; //beginning of the color bitmap in onDecode()
DSkImageDecoder_libgif.cpp126 static int find_transpIndex(const SavedImage& image, int colorCount) { in find_transpIndex() argument
134 if (transpIndex >= colorCount) { in find_transpIndex()
217 int colorCount = 0; in onDecode() local
224 colorCount = cmap->ColorCount; in onDecode()
225 SkColorTable* ctable = SkNEW_ARGS(SkColorTable, (colorCount)); in onDecode()
227 for (int index = 0; index < colorCount; index++) in onDecode()
233 transpIndex = find_transpIndex(temp_save, colorCount); in onDecode()
272 static_cast<unsigned>(colorCount)) { in onDecode()
DSkImageDecoder_libpng.cpp577 int colorCount = num_palette + (num_palette < 256); in decodePalette() local
579 colorTable = SkNEW_ARGS(SkColorTable, (colorCount)); in decodePalette()
948 static int computeBitDepth(int colorCount) { in computeBitDepth() argument
950 int bits = SkNextLog2(colorCount); in computeBitDepth()
/external/webkit/Source/WebCore/platform/image-decoders/ico/
DICOImageDecoder.cpp293 int colorCount = static_cast<uint8_t>(m_data->data()[m_decodedOffset + 2]); in readDirectoryEntry() local
294 if (!colorCount) in readDirectoryEntry()
295 colorCount = 256; // Vague in the spec, needed by real-world icons. in readDirectoryEntry()
296 for (--colorCount; colorCount; colorCount >>= 1) in readDirectoryEntry()
/external/skia/legacy/src/effects/
DSkGradientShader.cpp128 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper);
237 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper) { in Gradient_Shader() argument
238 SkASSERT(colorCount > 1); in Gradient_Shader()
265 fColorCount = colorCount; in Gradient_Shader()
271 dummyLast = pos[colorCount - 1] != SK_Scalar1; in Gradient_Shader()
290 memcpy(origColors, colors, colorCount * sizeof(SkColor)); in Gradient_Shader()
292 origColors += colorCount; in Gradient_Shader()
293 *origColors = colors[colorCount - 1]; in Gradient_Shader()
313 int count = colorCount + dummyLast; in Gradient_Shader()
317 if (i == colorCount) { // we're really at the dummyLast in Gradient_Shader()
[all …]
/external/webkit/Source/WebCore/platform/qt/
DPlatformScreenQt.cpp89 return QApplication::desktop()->screen(screenNumber(w))->colorCount() == 2; in screenIsMonochrome()
/external/opencv/cvaux/src/
Dcvcalibfilter.cpp547 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); in DrawPoints() local
561 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount]; in DrawPoints()