Searched refs:numColors (Results 1 – 5 of 5) sorted by relevance
127 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument129 checkNumberColorsParam(numColors); in generate()135 ColorCutQuantizer quantizer = ColorCutQuantizer.fromBitmap(scaledBitmap, numColors); in generate()170 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument172 checkNumberColorsParam(numColors); in generateAsync()179 return generate(params[0], numColors); in generateAsync()516 private static void checkNumberColorsParam(int numColors) {517 if (numColors < 1) {
63 const int8_t numColors = patch->numColors; in createMesh() local64 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in createMesh()65 for (int8_t i = 0; i < numColors; i++) { in createMesh()
586 int8_t numColors; in do_9patch() local739 numColors = numRows * numCols; in do_9patch()740 image->info9Patch.numColors = numColors; in do_9patch()741 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); in do_9patch()791 assert(colorIndex == numColors); in do_9patch()793 for (i=0; i<numColors; i++) { in do_9patch()797 if (i == numColors - 1) printf("\n"); in do_9patch()839 for (int i = 0; i < outPatch->numColors; i++) { in checkNinePatchSerialization()
112 int8_t numColors; member
161 for (int i=0; i<numColors; i++) { in deviceToFile()181 for (int i=0; i<numColors; i++) { in fileToDevice()195 + numColors * sizeof(uint32_t); in serializedSize()220 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()