Searched refs:max_colors (Results 1 – 1 of 1) sorted by relevance
| /TwlSDK-5.4/build/tools/ppmconv/ |
| D | ppmconvbg.c | 70 int max_colors; member 97 static int Rgb2Index(int num_pixels, u8 *rgb_buffer, u8 *index_buffer, int max_colors, 102 static void OutputIndex(FILE * fp, char *label, int max_colors, int width, int height, u8 *pixel); 212 static void ColorTableInit(ColorTable * t, int max_colors) in ColorTableInit() argument 214 if (NULL == (t->color = (u16 *)calloc(max_colors, sizeof(u16)))) in ColorTableInit() 221 t->max_colors = max_colors; in ColorTableInit() 247 if (i >= t->max_colors) in ColorTableAppend() 282 static int Rgb2Index(int num_pixels, u8 *rgb_buffer, u8 *index_buffer, int max_colors, in Rgb2Index() argument 287 ColorTableInit(cp, max_colors); in Rgb2Index() 299 fprintf(stderr, "ppmconvbg: Error too many colors (over %d)\n", max_colors); in Rgb2Index() [all …]
|