Searched refs:maxColors (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | ColorCutQuantizer.java | 91 public void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { in quantize() argument 138 if (distinctColorCount <= maxColors) { in quantize() 151 mQuantizedColors = quantizePixels(maxColors); in quantize() 167 private List<Swatch> quantizePixels(int maxColors) { in quantizePixels() argument 170 final PriorityQueue<Vbox> pq = new PriorityQueue<>(maxColors, VBOX_COMPARATOR_VOLUME); in quantizePixels() 177 splitBoxes(pq, maxColors); in quantizePixels()
|
D | VariationalKMeansQuantizer.java | 76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { in quantize() argument 89 final List<KMeans.Mean> optimalMeans = getOptimalKMeans(maxColors, hslPixels); in quantize()
|
D | Quantizer.java | 25 void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters); in quantize() argument
|
/frameworks/support/palette/src/main/java/androidx/palette/graphics/ |
D | ColorCutQuantizer.java | 73 ColorCutQuantizer(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { in ColorCutQuantizer() argument 120 if (distinctColorCount <= maxColors) { in ColorCutQuantizer() 133 mQuantizedColors = quantizePixels(maxColors); in ColorCutQuantizer() 149 private List<Palette.Swatch> quantizePixels(int maxColors) { in quantizePixels() argument 152 final PriorityQueue<Vbox> pq = new PriorityQueue<>(maxColors, VBOX_COMPARATOR_VOLUME); in quantizePixels() 159 splitBoxes(pq, maxColors); in quantizePixels()
|