Lines Matching refs:cp
98 ColorTable * cp);
103 static void OutputCLUT(FILE * fp, char *label, ColorTable * cp);
283 ColorTable * cp) in Rgb2Index() argument
287 ColorTableInit(cp, max_colors); in Rgb2Index()
295 index = ColorTableAppend(cp, color); in Rgb2Index()
362 static void OutputCLUT(FILE * fp, char *label, ColorTable * cp) in OutputCLUT() argument
365 if (cp->num_colors % 2) in OutputCLUT()
367 cp->num_colors++; in OutputCLUT()
376 fprintf(fp, "const int Num_%s_Palette = %d;\n\n", label, cp->num_colors); in OutputCLUT()
379 for (i = 0; i < cp->num_colors; i++) in OutputCLUT()
381 OutputHalf(fp, ColorTableGetColor(cp, i)); in OutputCLUT()
388 fwrite(cp->color, sizeof(u16), cp->num_colors, fp); in OutputCLUT()