summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Celaya <javier.celaya@flexvm.es>2014-10-22 09:58:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2014-12-02 19:23:53 +0100
commit77ce36426f26cd3dcf8bb06a0511f365c74003dc (patch)
tree8a223d870c8b11c8f2af67d21596aeca59cdda34
parentcb37de352012da27268882eb24784ba39e834712 (diff)
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.
-rw-r--r--spice.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/spice.proto b/spice.proto
index 316d287..01493c9 100644
--- a/spice.proto
+++ b/spice.proto
@@ -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: