Statistics
| Branch: | Revision:

root / ui / vnc-palette.h @ 7fee199c

History | View | Annotate | Download (2.5 kB)

# Date Author Comment
e31e3694 02/24/2011 12:28 am Corentin Chary

vnc: palette: use a pool to reduce memory allocations

We now that the palette will never have more than 256
elements. Let's use a pool to reduce malloc calls.

Signed-off-by: Corentin Chary <>
Signed-off-by: Anthony Liguori <>

72aefb76 02/24/2011 12:28 am Corentin Chary

vnc: palette: add palette_init calls

This allow to use palette on the stack instead of always
allocating them.

Signed-off-by: Corentin Chary <>
Signed-off-by: Anthony Liguori <>

f8562e32 02/24/2011 12:28 am Corentin Chary

vnc: palette: and fill and color calls.

These two helpers are needed for zrle and zywrle.

Signed-off-by: Corentin Chary <>
Signed-off-by: Anthony Liguori <>

5136a052 07/27/2010 01:36 am Corentin Chary

vnc: tight: stop using qdict for palette stuff

Profiling with callgrind seems to show that a lot of time is spent
in the palette code (mostly due to memory allocation and qdict to int
conversion).

This patch adds a VncPalette implementation. The palette is stored...