From 9da109a661aebbb40d1903f6cac59da95a65f9d5 Mon Sep 17 00:00:00 2001 From: Victor Toso Date: Fri, 6 Jan 2017 09:18:56 +0100 Subject: [PATCH] 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 a list of video codecs in a order of preference. Signed-off-by: Victor Toso Acked-by: Frediano Ziglio --- spice/enums.h | 1 + spice/protocol.h | 1 + 2 files changed, 2 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index 743a4a8..0420da9 100644 --- a/spice/enums.h +++ b/spice/enums.h @@ -529,6 +529,7 @@ enum { SPICE_MSGC_DISPLAY_STREAM_REPORT, SPICE_MSGC_DISPLAY_PREFERRED_COMPRESSION, SPICE_MSGC_DISPLAY_GL_DRAW_DONE, + SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE, SPICE_MSGC_END_DISPLAY }; diff --git a/spice/protocol.h b/spice/protocol.h index d742eda..657d835 100644 --- a/spice/protocol.h +++ b/spice/protocol.h @@ -141,6 +141,7 @@ enum { SPICE_DISPLAY_CAP_CODEC_MJPEG, SPICE_DISPLAY_CAP_CODEC_VP8, SPICE_DISPLAY_CAP_CODEC_H264, + SPICE_DISPLAY_CAP_PREF_VIDEO_CODEC_TYPE, }; enum {