Searched refs:maxColors (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WSMeansQuantizer.java | 83 public void quantize(@NonNull int[] pixels, int maxColors) { in quantize() argument 88 mapQuantizer.quantize(pixels, maxColors); in quantize() 104 maxColors = Math.min(maxColors, mClusters.length); in quantize() 106 maxColors = Math.min(maxColors, mPoints.length); in quantize() 108 initializeClusters(maxColors); in quantize() 110 calculateClusterDistances(maxColors); in quantize() 111 if (!reassignPoints(maxColors)) { in quantize() 114 recalculateClusterCenters(maxColors); in quantize() 118 for (int i = 0; i < maxColors; i++) { in quantize() 127 private void initializeClusters(int maxColors) { in initializeClusters() argument [all …]
|
D | CelebiQuantizer.java | 43 public void quantize(int[] pixels, int maxColors) { in quantize() argument 45 wu.quantize(pixels, maxColors); in quantize() 48 kmeans.quantize(pixels, maxColors); in quantize()
|
D | ColorCutQuantizer.java | 88 public void quantize(final int[] pixels, final int maxColors) { in quantize() argument 130 if (distinctColorCount <= maxColors) { in quantize() 143 mQuantizedColors = quantizePixels(maxColors); in quantize() 159 private List<Swatch> quantizePixels(int maxColors) { in quantizePixels() argument 162 final PriorityQueue<Vbox> pq = new PriorityQueue<>(maxColors, VBOX_COMPARATOR_VOLUME); in quantizePixels() 169 splitBoxes(pq, maxColors); in quantizePixels()
|
D | Quantizer.java | 30 void quantize(int[] pixels, int maxColors); in quantize() argument
|
D | VariationalKMeansQuantizer.java | 75 public void quantize(int[] pixels, int maxColors) { in quantize() argument 88 final List<KMeans.Mean> optimalMeans = getOptimalKMeans(maxColors, hslPixels); in quantize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | SplashscreenContentDrawer.java | 1012 public void quantize(final int[] pixels, final int maxColors) { in quantize() argument 1023 mInnerQuantizer.quantize(pixels, maxColors); in quantize() 1035 mInnerQuantizer.quantize(samplePixels, maxColors); in quantize()
|