Searched refs:maxColors (Results 1 - 2 of 2) sorted by relevance

/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DColorCutQuantizer.java68 * @param maxColors The maximum number of colors that should be in the result palette.
71 ColorCutQuantizer(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { argument
118 if (distinctColorCount <= maxColors) {
131 mQuantizedColors = quantizePixels(maxColors);
147 private List<Swatch> quantizePixels(int maxColors) { argument
150 final PriorityQueue<Vbox> pq = new PriorityQueue<>(maxColors, VBOX_COMPARATOR_VOLUME);
155 // Now go through the boxes, splitting them until we have reached maxColors or there are no
157 splitBoxes(pq, maxColors);
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp371 int maxColors = 256; local
374 colorTable.reset(new SkColorTable(colors, maxColors));
382 colorCount = &maxColors;

Completed in 2414 milliseconds