Searched refs:num_colors (Results 1 – 2 of 2) sorted by relevance
54 int num_colors; member176 t->num_colors = 0; in ColorTableInit()194 for (i = 0; i < t->num_colors; i++) in ColorTableAppend()208 t->num_colors++; in ColorTableAppend()224 return index < t->num_colors ? t->color[index] : 0x0000; in ColorTableGetColor()
69 int num_colors; member220 t->num_colors = 0; in ColorTableInit()239 for (i = 0; i < t->num_colors; i++) in ColorTableAppend()253 t->num_colors++; in ColorTableAppend()269 return index < t->num_colors ? t->color[index] : 0x0000; in ColorTableGetColor()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()388 fwrite(cp->color, sizeof(u16), cp->num_colors, fp); in OutputCLUT()