Add LZ4 image compression support.

- Add a new LZ4 image type to spice.proto.
- Add canvas_get_lz4() to common_canvas_base, to get a pixmap from an
  lz4 image.
- Add an enable-lz4 switch to the configure script, disabled by default.
This commit is contained in:
Javier Celaya 2014-10-22 09:58:29 +02:00 committed by Christophe Fergeau
parent cb37de3520
commit 77ce36426f

View File

@ -358,6 +358,7 @@ enum8 image_type {
FROM_CACHE_LOSSLESS,
ZLIB_GLZ_RGB,
JPEG_ALPHA,
LZ4,
};
flags8 image_flags {
@ -568,6 +569,8 @@ struct Image {
BinaryData lz_rgb;
case JPEG:
BinaryData jpeg;
case LZ4:
BinaryData lz4;
case LZ_PLT:
LZPLTData lz_plt;
case ZLIB_GLZ_RGB: