Searched refs:numColors (Results 1 – 8 of 8) sorted by relevance
43 const int8_t numColors = patch->numColors; in Patch() local44 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in Patch()45 for (int8_t i = 0; i < numColors; i++) { in Patch()
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()1099 int numColors = numOpaqueColors + numAlphaColors; in analyze_image() local1100 *paletteEntries = numColors; in analyze_image()[all …]
123 private void loadImage(final int numColors) { in loadImage() argument129 new Palette.Builder(bitmap).maximumColorCount(numColors).generate( in loadImage()
182 void setNumColors(int numColors) { in setNumColors() argument183 mNumColors = numColors; in setNumColors()
954 int8_t numColors; in do9Patch() local1113 numColors = numRows * numCols; in do9Patch()1114 image->info9Patch.numColors = numColors; in do9Patch()1115 image->colors.resize(numColors); in do9Patch()1165 assert(colorIndex == numColors); in do9Patch()1168 for (i = 0; i < numColors; i++) { in do9Patch()1171 if (i == numColors - 1) printf("\n"); in do9Patch()
124 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument125 return from(bitmap).maximumColorCount(numColors).generate(); in generate()142 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument143 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
126 uint8_t numColors; member
166 for (int i=0; i<numColors; i++) { in deviceToFile()186 for (int i=0; i<numColors; i++) { in fileToDevice()200 + numColors * sizeof(uint32_t); in serializedSize()225 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()