/external/webp/src/enc/ |
H A D | alpha.c | 191 int colors = 0; local 202 if (color[j] > 0) ++colors; 204 return colors; 220 // For low number of colors, NONE yields better compression. 224 // For large number of colors, try FILTER_NONE in addition to the best
|
H A D | vp8l.c | 42 // If number of colors in the image is less than or equal to MAX_PALETTE_SIZE, 50 uint32_t colors[MAX_PALETTE_SIZE * 4]; local 66 colors[key] = last_pix; 73 } else if (colors[key] == last_pix) { 91 palette[num_colors] = colors[i];
|
/external/skia/bench/ |
H A D | BitmapBench.cpp | 35 SkPMColor* colors = storage; local 43 *colors++ = SkPreMultiplyARGB(0xFF, rr, gg, bb);
|
H A D | ChartBench.cpp | 127 SkColor colors[kNumGraphs]; variable 129 colors[i] = colorRand.nextU() | 0xff000000; 162 fillPaint.setColor((colors[i] & 0x00ffffff) | 0x80000000); 165 plotPaint.setColor(colors[i]);
|
H A D | ColorCubeBench.cpp | 55 static const SkColor colors[] = { SK_ColorYELLOW, SK_ColorBLUE }; local 57 pts, colors, NULL, 2, SkShader::kRepeat_TileMode, 0, &SkMatrix::I());
|
H A D | GameBench.cpp | 272 SkColor colors[kNumAtlasedX][kNumAtlasedY]; local 276 colors[x][y] = rand.nextU() | 0xff000000; 299 *scanline = colors[colorX][colorY];
|
H A D | GradientBench.cpp | 34 SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorWHITE, SK_ColorBLACK, // 10 lines, 50 colors 39 // We have several special-cases depending on the number (and spacing) of colors, so 353 SkColor colors[] = { local 357 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 358 SK_ARRAY_COUNT(colors),
|
H A D | ImageFilterCollapse.cpp | 65 SkColor colors[] = { local 70 pts, colors, NULL, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode
|
H A D | PMFloatBench.cpp | 44 SkPMColor colors[4]; variable 48 colors[i] = SkPreMultiplyColor(lcg_rand(&seed)); 51 // But it's a lot faster not to, and this code won't really mind the non-PM colors. 53 colors[0] = seed + 0; 54 colors[1] = seed + 1; 55 colors[2] = seed + 2; 56 colors[3] = seed + 3; 61 SkPMFloat::From4PMColors(colors, &fa, &fb, &fc, &fd); 63 fa = SkPMFloat::FromPMColor(colors[0]); 64 fb = SkPMFloat::FromPMColor(colors[ [all...] |
H A D | PatchBench.cpp | 18 * (passing texture coordinates and colors, only textures coordinates, only colors or none). 58 const SkColor colors[SkPatchUtils::kNumCorners] = { local 61 memcpy(fColors, colors, SkPatchUtils::kNumCorners * sizeof(SkColor)); 73 const SkColor colors[] = { local 79 return SkGradientShader::CreateLinear(pts, colors, NULL, 80 SK_ARRAY_COUNT(colors), 92 vertexMode.set("colors");
|
H A D | PatchGridBench.cpp | 18 * (passing texture coordinates and colors, only textures coordinates, only colors or none). 120 SkColor colors[4]; local 121 colors[0] = cornerColors[i][j]; 122 colors[1] = cornerColors[i][j + 1]; 123 colors[3] = cornerColors[i + 1][j]; 124 colors[2] = cornerColors[i + 1][j + 1]; 137 fGrid.setPatch(j, i, points, colors, NULL); 143 fGrid.setPatch(j, i, points, colors, texs); 154 const SkColor colors[] local [all...] |
H A D | RepeatTileBench.cpp | 54 SkPMColor* colors = storage; local 62 *colors++ = SkPreMultiplyARGB(0xFF, rr, gg, bb);
|
H A D | nanobench.cpp | 697 SkPMColor colors[256]; local 700 info, storage.get(), rowBytes, NULL, colors,
|
/external/skia/dm/ |
H A D | DMSrcSink.cpp | 112 SkPMColor colors[256]; local 113 colorTable.reset(SkNEW_ARGS(SkColorTable, (colors, maxColors)));
|
/external/skia/experimental/DrawingBoard/ |
H A D | SkColorPalette.cpp | 61 SkColor colors[] = { SK_ColorRED, SK_ColorYELLOW, SK_ColorGREEN, local 66 SkShader* shader1 = SkGradientShader::CreateLinear(pts, colors, colorPositions,7,
|
/external/skia/experimental/PdfViewer/ |
H A D | SkTrackDevice.h | 142 const SkColor colors[], SkXfermode* xmode, 146 INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors, xmode, indices, 140 drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2, int vertexCount, const SkPoint verts[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
|
/external/skia/experimental/PdfViewer/src/ |
H A D | SkPdfRenderer.cpp | 363 SkPMColor* colors = new SkPMColor[256]; local 365 colors[i] = SkPreMultiplyARGB(255, i, i, i); 367 grayColortable = new SkColorTable(colors, 256); 445 SkPMColor colors[256]; local 474 colors[i] = SkPreMultiplyARGB(0xff, 525 SkAutoTUnref<SkColorTable> colorTable(new SkColorTable(colors, cnt));
|
/external/skia/gm/ |
H A D | all_bitmap_configs.cpp | 111 const SkColor colors[] = { local 122 SkPMColor pmColors[SK_ARRAY_COUNT(colors)]; 123 for (size_t i = 0; i < SK_ARRAY_COUNT(colors); ++i) { 124 pmColors[i] = premultiply_color(colors[i]);
|
H A D | alphagradients.cpp | 27 SkColor colors[] = { c0, c1 }; local 31 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
H A D | arithmode.cpp | 30 SkColor colors[] = { local 34 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors), 46 SkColor colors[] = { local 49 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors),
|
H A D | bitmapfilters.cpp | 14 const SkColor colors[4] = { local 19 for (size_t i = 0; i < SK_ARRAY_COUNT(colors); ++i) { 20 colorsPM[i] = SkPreMultiplyColor(colors[i]);
|
H A D | bitmaprect.cpp | 25 const SkColor colors[] = { SK_ColorWHITE, SK_ColorBLUE }; local 26 paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
H A D | blurquickreject.cpp | 44 SkColor colors[] = { variable 50 SkASSERT(SK_ARRAY_COUNT(colors) == SK_ARRAY_COUNT(blurRects)); 69 blurPaint.setColor(colors[i]);
|
H A D | blurrect.cpp | 67 const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, }; local 79 colors, pos, SK_ARRAY_COUNT(colors), tm,
|
H A D | blurroundrect.cpp | 105 const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, }; local 117 colors, pos, SK_ARRAY_COUNT(colors), tm,
|