Home
last modified time | relevance | path

Searched refs:mInputPixelToCount (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/palette/
DWSMeansQuantizer.java52 private @Nullable Map<Integer, Integer> mInputPixelToCount; field in WSMeansQuantizer
74 mInputPixelToCount = inputPixelToCount; in WSMeansQuantizer()
86 if (mInputPixelToCount == null) { in quantize()
89 mInputPixelToCount = mapQuantizer.getColorToCount(); in quantize()
92 mPoints = new float[mInputPixelToCount.size()][3]; in quantize()
93 mPixels = new int[mInputPixelToCount.size()]; in quantize()
95 for (int pixel : mInputPixelToCount.keySet()) { in quantize()
161 mClusterPopulations[i] = mInputPixelToCount.get(mPixels[i]); in initializeClusters()
239 int count = mInputPixelToCount.get(pixel); in recalculateClusterCenters()
DWuQuantizer.java62 private Map<Integer, Integer> mInputPixelToCount; field in WuQuantizer
75 mInputPixelToCount = quantizerMap.getColorToCount(); in quantize()
79 Set<Integer> uniqueColors = mInputPixelToCount.keySet(); in quantize()
81 mColors = new int[mInputPixelToCount.keySet().size()]; in quantize()
87 constructHistogram(mInputPixelToCount); in quantize()
108 return mInputPixelToCount; in inputPixelToCount()