summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Celaya <javier.celaya@flexvm.es>2015-04-27 10:01:00 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-06-22 19:54:30 +0200
commit12ab27180b3cae25096a1c5281a6f26d14470dc5 (patch)
treea6ea8e3eaf06f411ac235c9069f941aaf0ec0062
parent3cc9566a00cb4deb1ead414c390a29beaccc0bd0 (diff)
Proto: Add preferred compression message and constants.
When accessing a virtual desktop from different devices, some may have different image compression requirements, e.g. slow devices may prefer the faster LZ4 over GLZ. This message instructs the server to switch the image compression algorithm. This patch also promotes the SPICE_IMAGE_COMPRESS_* constants so that they are available from both the server and the client.
-rw-r--r--spice.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/spice.proto b/spice.proto
index 01493c9..2889802 100644
--- a/spice.proto
+++ b/spice.proto
@@ -361,6 +361,17 @@ enum8 image_type {
LZ4,
};
+enum8 image_compress {
+ INVALID = 0,
+ OFF,
+ AUTO_GLZ,
+ AUTO_LZ,
+ QUIC,
+ GLZ,
+ LZ,
+ LZ4,
+};
+
flags8 image_flags {
CACHE_ME,
HIGH_BITS_SET,
@@ -922,6 +933,10 @@ channel DisplayChannel : BaseChannel {
int32 last_frame_delay;
uint32 audio_delay;
} stream_report;
+
+ message {
+ uint8 image_compression;
+ } preferred_compression;
};
flags16 keyboard_modifier_flags {