[Spice-devel] [PATCH 1/3] Add support for LZ compression of A8 images

2012-08-23 Thread Søren Sandmann Pedersen
From: Søren Sandmann Pedersen Graduality is irrelevant for A8 images, so instead of using RGB-ness as a short-cut, add a new macro BITMAP_FMT_HAS_GRADUALITY() that returns true for the existing RGB images, but false for A8. --- server/red_common.h| 2 +- server/red_parse_qxl.c | 2 +- serv

Re: [Spice-devel] [PATCH 1/3] Add support for LZ compression of A8 images

2012-08-23 Thread Søren Sandmann
Hans de Goede writes: >> @@ -5882,7 +5888,8 @@ static const LzImageType >> MAP_BITMAP_FMT_TO_LZ_IMAGE_TYPE[] = { >> LZ_IMAGE_TYPE_RGB16, >> LZ_IMAGE_TYPE_RGB24, >> LZ_IMAGE_TYPE_RGB32, >> -LZ_IMAGE_TYPE_RGBA >> +LZ_IMAGE_TYPE_RGBA, >> +LZ_IMAGE_TYPE_A8 >> }; >> >>

Re: [Spice-devel] [PATCH 1/3] Add support for LZ compression of A8 images

2012-08-20 Thread Hans de Goede
Hi, On 08/19/2012 10:53 PM, Søren Sandmann Pedersen wrote: Graduality is irrelevant for A8 images, so instead of using RGB-ness as a short-cut, add a new macro BITMAP_FMT_HAS_GRADUALITY() that returns true for the existing RGB images, but false for A8. --- server/red_common.h| 2 +- serv

[Spice-devel] [PATCH 1/3] Add support for LZ compression of A8 images

2012-08-20 Thread Søren Sandmann Pedersen
Graduality is irrelevant for A8 images, so instead of using RGB-ness as a short-cut, add a new macro BITMAP_FMT_HAS_GRADUALITY() that returns true for the existing RGB images, but false for A8. --- server/red_common.h| 2 +- server/red_parse_qxl.c | 2 +- server/red_worker.c| 23