Lines Matching defs:colors
39 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { }
53 free(colors);
57 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors);
71 uint32_t* colors;
159 NOISY(printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",
733 // colors we can use in the 9-patch format.
741 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t));
784 image->colors[colorIndex++] = c;
796 printf(" #%08x", image->colors[i]);
840 assert(outPatch->colors[i] == inPatch->colors[i]);
905 uint32_t colors[256], col;
916 // 3. There are no more than 256 distinct RGBA colors
957 // Check if image is really <= 256 colors
962 if (colors[idx] == col) {
977 colors[num_colors++] = col;
1000 // 3. RGB(A) - use COLOR_TYPE_PALETTE if the number of distinct colors is sufficiently
1031 // Create separate RGB and Alpha palettes and set the number of colors
1036 col = colors[idx];
1117 NOISY(printf("Image %s has %d colors%s, using PNG_COLOR_TYPE_PALETTE\n",
1234 NOISY(printf("Image written: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",