Lines Matching defs:colormap
40 uint8_t colormap[4];
158 uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha;
162 rgba_palette[i] = (ctx->palette[colormap[i]] & 0x00ffffff)
172 if (alpha[i] != 0 && !color_used[colormap[i]]) {
173 color_used[colormap[i]] = 1;
185 if (!color_used[colormap[i]]) {
191 color_used[colormap[i]] = (i + 1);
194 rgba_palette[i] = (rgba_palette[color_used[colormap[i]] - 1] & 0x00ffffff) |
224 uint8_t *colormap = ctx->colormap, *alpha = ctx->alpha;
281 /* set colormap */
284 colormap[3] = buf[pos] >> 4;
285 colormap[2] = buf[pos] & 0x0f;
286 colormap[1] = buf[pos + 1] >> 4;
287 colormap[0] = buf[pos + 1] & 0x0f;