Searched refs:maxColors (Results 1 - 4 of 4) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Quantizer.java | 25 void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters); argument
|
H A D | ColorCutQuantizer.java | 88 * @param maxColors The maximum number of colors that should be in the result palette. 91 public void quantize(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);
|
H A D | VariationalKMeansQuantizer.java | 72 * @param maxColors Maximum number of clusters to extract. 76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { argument 89 final List<KMeans.Mean> optimalMeans = getOptimalKMeans(maxColors, hslPixels);
|
/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);
|
Completed in 88 milliseconds