Searched refs:maxColors (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | ColorCutQuantizer.java | 88 * @param maxColors The maximum number of colors that should be in the result palette. 91 ColorCutQuantizer(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { argument 138 if (distinctColorCount <= maxColors) { 151 mQuantizedColors = quantizePixels(maxColors); 167 private List<Swatch> quantizePixels(int maxColors) { argument 170 final PriorityQueue<Vbox> pq = new PriorityQueue<>(maxColors, VBOX_COMPARATOR_VOLUME); 175 // Now go through the boxes, splitting them until we have reached maxColors or there are no 177 splitBoxes(pq, maxColors);
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | ColorCutQuantizer.java | 68 * @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 D | BitmapFactory.cpp | 409 int maxColors = 256; local 412 colorTable.reset(new SkColorTable(colors, maxColors)); 420 colorCount = &maxColors;
|
Completed in 501 milliseconds