Lines Matching refs:color
68 u16 *color; member
214 if (NULL == (t->color = (u16 *)calloc(max_colors, sizeof(u16)))) in ColorTableInit()
235 static int ColorTableAppend(ColorTable * t, u16 color) in ColorTableAppend() argument
241 if (t->color[i] == color) in ColorTableAppend()
252 t->color[i] = color; in ColorTableAppend()
269 return index < t->num_colors ? t->color[index] : 0x0000; in ColorTableGetColor()
292 u16 color; in Rgb2Index() local
294 color = RGB5551(rgb_buffer[n], rgb_buffer[n + 1], rgb_buffer[n + 2], 1); in Rgb2Index()
295 index = ColorTableAppend(cp, color); in Rgb2Index()
388 fwrite(cp->color, sizeof(u16), cp->num_colors, fp); in OutputCLUT()
557 free(clut.color); in Convert()
563 if (clut.color) in Convert()
564 free(clut.color); in Convert()