Home
last modified time | relevance | path

Searched refs:num_colors (Results 1 – 2 of 2) sorted by relevance

/TwlSDK-5.2.1/build/tools/ppmconv/
Dppmconv8.c54 int num_colors; member
176 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()
Dppmconvbg.c69 int num_colors; member
220 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()