[Spice-devel] [PATCH v2 2/7] spice-proto: Add support for the VP8 and H264 video codecs and for advertising supported video codecs.
Francois Gouget
fgouget at free.fr
Thu Aug 6 02:48:09 PDT 2015
Clients that support multiple codecs should advertise the SPICE_DISPLAY_CAP_MULTI_CODEC capability and one SPICE_DISPLAY_CAP_CODEC_XXX per supported codec.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
This is identical to this patch:
http://lists.freedesktop.org/archives/spice-devel/2015-July/020986.html
This should be followed by a spice-common commit that ensures we get the
right version of these headers (possibly that commit could be part of
the commit of 3/7).
spice/enums.h | 2 ++
spice/protocol.h | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/spice/enums.h b/spice/enums.h
index 6a0ab0b..36b0ea3 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -139,6 +139,8 @@ typedef enum SpicePathFlags {
typedef enum SpiceVideoCodecType {
SPICE_VIDEO_CODEC_TYPE_MJPEG = 1,
+ SPICE_VIDEO_CODEC_TYPE_VP8,
+ SPICE_VIDEO_CODEC_TYPE_H264,
SPICE_VIDEO_CODEC_TYPE_ENUM_END
} SpiceVideoCodecType;
diff --git a/spice/protocol.h b/spice/protocol.h
index d3c5962..614dcf1 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -135,6 +135,10 @@ enum {
SPICE_DISPLAY_CAP_STREAM_REPORT,
SPICE_DISPLAY_CAP_LZ4_COMPRESSION,
SPICE_DISPLAY_CAP_PREF_COMPRESSION,
+ SPICE_DISPLAY_CAP_MULTI_CODEC,
+ SPICE_DISPLAY_CAP_CODEC_MJPEG,
+ SPICE_DISPLAY_CAP_CODEC_VP8,
+ SPICE_DISPLAY_CAP_CODEC_H264,
};
enum {
--
2.1.4
More information about the Spice-devel
mailing list