summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2017-01-06 13:01:59 +0100
committerFrediano Ziglio <fziglio@redhat.com>2017-01-06 12:20:47 +0000
commit6439bec0deed0fcf251d4d77514b7c4a87384097 (patch)
treebf950015af2d3795e59ad72142c706de83cbcd59
parent86dcd22d334a4992718780417bc574623bd61826 (diff)
protocol: add preferred video codec message
Client might want to choose a preferred video codec for streaming for different reasons which having hardware decoder support being the most interest one. This message allows the client to send an array of video codecs in order of preference. Signed-off-by: Victor Toso <victortoso@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--common/messages.h5
-rw-r--r--spice.proto5
2 files changed, 10 insertions, 0 deletions
diff --git a/common/messages.h b/common/messages.h
index 516a345..b838881 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -644,6 +644,11 @@ typedef struct SpiceMsgcPortEvent {
uint8_t event;
} SpiceMsgcPortEvent;
+typedef struct SpiceMsgcDisplayPreferredVideoCodecType {
+ uint8_t num_of_codecs;
+ uint8_t codecs[0];
+} SpiceMsgcDisplayPreferredVideoCodecType;
+
typedef struct SpiceMsgcDisplayPreferredCompression {
uint8_t image_compression;
} SpiceMsgcDisplayPreferredCompression;
diff --git a/spice.proto b/spice.proto
index 0bfc515..c347a60 100644
--- a/spice.proto
+++ b/spice.proto
@@ -985,6 +985,11 @@ channel DisplayChannel : BaseChannel {
message {
} gl_draw_done;
+
+ message {
+ uint8 num_of_codecs;
+ video_codec_type codecs[num_of_codecs] @end;
+ } preferred_video_codec_type;
};
flags16 keyboard_modifier_flags {