Lines Matching refs:color
33 uint32_t color, unsigned int hash) in palette_find() argument
38 if (entry->color == color) { in palette_find()
76 int palette_put(VncPalette *palette, uint32_t color) in palette_put() argument
82 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_put()
83 entry = palette_find(palette, color, hash); in palette_put()
90 entry->color = color; in palette_put()
98 int palette_idx(const VncPalette *palette, uint32_t color) in palette_idx() argument
103 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_idx()
104 entry = palette_find(palette, color, hash); in palette_idx()
114 void (*iter)(int idx, uint32_t color, void *opaque), in palette_iter() argument
122 iter(entry->idx, entry->color, opaque); in palette_iter()
136 return entry->color; in palette_color()
145 static void palette_fill_cb(int idx, uint32_t color, void *opaque) in palette_fill_cb() argument
149 colors[idx] = color; in palette_fill_cb()