Searched refs:numColors (Results 1 – 9 of 9) sorted by relevance
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()1100 int numColors = numOpaqueColors + numAlphaColors; in analyze_image() local1101 *paletteEntries = numColors; in analyze_image()[all …]
991 int8_t numColors; in do9Patch() local1155 numColors = numRows * numCols; in do9Patch()1156 image->info9Patch.numColors = numColors; in do9Patch()1157 image->colors.resize(numColors); in do9Patch()1207 assert(colorIndex == numColors); in do9Patch()1210 for (i = 0; i < numColors; i++) { in do9Patch()1213 if (i == numColors - 1) printf("\n"); in do9Patch()
612 data.numColors = static_cast<uint8_t>(region_colors.size()); in SerializeBase()
128 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument129 return from(bitmap).maximumColorCount(numColors).generate(); in generate()146 final Bitmap bitmap, final int numColors, final Palette.PaletteAsyncListener listener) { in generateAsync() argument147 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
282 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
105 if (iter.numRectsToDraw() == chunk->numColors) { in getTransparentRegion()
699 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
130 uint8_t numColors; member
168 for (int i=0; i<numColors; i++) { in deviceToFile()188 for (int i=0; i<numColors; i++) { in fileToDevice()202 + numColors * sizeof(uint32_t); in serializedSize()227 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()