Searched refs:numColors (Results 1 – 6 of 6) sorted by relevance
45 const int8_t numColors = patch->numColors; in Patch() local46 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in Patch()47 for (int8_t i = 0; i < numColors; i++) { in Patch()
118 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument119 return from(bitmap).maximumColorCount(numColors).generate(); in generate()136 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument137 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
556 int8_t numColors; in do_9patch() local713 numColors = numRows * numCols; in do_9patch()714 image->info9Patch.numColors = numColors; in do_9patch()715 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); in do_9patch()768 assert(colorIndex == numColors); in do_9patch()770 for (i=0; i<numColors; i++) { in do_9patch()774 if (i == numColors - 1) printf("\n"); in do_9patch()816 for (int i = 0; i < outPatch->numColors; i++) { in checkNinePatchSerialization()
956 int8_t numColors; in do9Patch() local1115 numColors = numRows * numCols; in do9Patch()1116 image->info9Patch.numColors = numColors; in do9Patch()1117 image->colors.resize(numColors); in do9Patch()1167 assert(colorIndex == numColors); in do9Patch()1170 for (i = 0; i < numColors; i++) { in do9Patch()1173 if (i == numColors - 1) printf("\n"); in do9Patch()
123 uint8_t numColors; member
164 for (int i=0; i<numColors; i++) { in deviceToFile()184 for (int i=0; i<numColors; i++) { in fileToDevice()198 + numColors * sizeof(uint32_t); in serializedSize()223 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()