Lines Matching refs:colors
49 free(info9Patch.colors);
128 NOISY(printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",
603 // colors we can use in the 9-patch format.
611 image->info9Patch.colors = (uint32_t*)malloc(numColors * sizeof(uint32_t));
654 image->info9Patch.colors[colorIndex++] = c;
666 printf(" #%08x", image->info9Patch.colors[i]);
718 assert(outPatch->colors[i] == inPatch->colors[i]);
734 if (patch1.colors[i] != patch2.colors[i]) {
811 uint32_t colors[256], col;
822 // 3. There are no more than 256 distinct RGBA colors
863 // Check if image is really <= 256 colors
868 if (colors[idx] == col) {
883 colors[num_colors++] = col;
906 // 3. RGB(A) - use COLOR_TYPE_PALETTE if the number of distinct colors is sufficiently
937 // Create separate RGB and Alpha palettes and set the number of colors
942 col = colors[idx];
1022 NOISY(printf("Image %s has %d colors%s, using PNG_COLOR_TYPE_PALETTE\n",
1118 NOISY(printf("Image written: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",