Lines Matching refs:colors
40 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { }
54 free(colors);
58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors);
72 uint32_t* colors;
161 printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",
707 // colors we can use in the 9-patch format.
715 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t));
758 image->colors[colorIndex++] = c;
773 printf(" #%08x", image->colors[i]);
817 assert(outPatch->colors[i] == inPatch->colors[i]);
882 uint32_t colors[256], col;
893 // 3. There are no more than 256 distinct RGBA colors
942 // Check if image is really <= 256 colors
947 if (colors[idx] == col) {
964 colors[num_colors++] = col;
989 // 3. RGB(A) - use COLOR_TYPE_PALETTE if the number of distinct colors is sufficiently
1020 // Create separate RGB and Alpha palettes and set the number of colors
1025 col = colors[idx];
1108 printf("Image %s has %d colors%s, using PNG_COLOR_TYPE_PALETTE\n",
1231 printf("Image written: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",