Searched refs:numColors (Results 1 - 5 of 5) sorted by relevance
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
H A D | Palette.java | 119 * Generate a {@link Palette} from a {@link Bitmap} using the specified {@code numColors}. 120 * Good values for {@code numColors} depend on the source image type. 124 * @param numColors The maximum number of colors in the generated palette. Increasing this 127 public static Palette generate(Bitmap bitmap, int numColors) { argument 129 checkNumberColorsParam(numColors); 135 ColorCutQuantizer quantizer = ColorCutQuantizer.fromBitmap(scaledBitmap, numColors); 170 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { 172 checkNumberColorsParam(numColors); 179 return generate(params[0], numColors); 528 private static void checkNumberColorsParam(int numColors) { argument 169 generateAsync( final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Patch.cpp | 63 const int8_t numColors = patch->numColors; local 64 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { 65 for (int8_t i = 0; i < numColors; i++) {
|
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 586 int8_t numColors; local 739 numColors = numRows * numCols; 740 image->info9Patch.numColors = numColors; 741 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); 791 assert(colorIndex == numColors); 793 for (i=0; i<numColors; i++) { 797 if (i == numColors - 1) printf("\n"); 839 for (int i = 0; i < outPatch->numColors; i++) {
|
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 123 uint8_t numColors; member in struct:android::Res_png_9patch
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 161 for (int i=0; i<numColors; i++) { 181 for (int i=0; i<numColors; i++) { 195 + numColors * sizeof(uint32_t); 212 memcpy(data, &patch.wasDeserialized, 4); // copy wasDeserialized, numXDivs, numYDivs, numColors 220 memcpy(data, colors, patch.numColors * sizeof(uint32_t));
|
Completed in 1996 milliseconds