[Spice-devel,protocol,6/12] Add support for the VP8 and H264 video codecs and for advertising supported video codecs. (take 3)

Submitted by Francois Gouget on June 10, 2015, 3:37 p.m.

Details

Message ID alpine.DEB.2.20.1506101057550.23792@amboise
State New
Headers show

Not browsing as part of any series.

Commit Message

Francois Gouget June 10, 2015, 3:37 p.m.
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@codeweavers.com>
---

This should be followed by a spice-common commit that ensures we get the 
right version of these headers.

Changes since take 2:
- This patch also adds h264.

 spice/enums.h    | 2 ++
 spice/protocol.h | 4 ++++
 2 files changed, 6 insertions(+)

Patch hide | download patch | download mbox

diff --git a/spice/enums.h b/spice/enums.h
index 18e2f74..2bb2739 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 bea376c..d53642a 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -134,6 +134,10 @@  enum {
     SPICE_DISPLAY_CAP_A8_SURFACE,
     SPICE_DISPLAY_CAP_STREAM_REPORT,
     SPICE_DISPLAY_CAP_LZ4_COMPRESSION,
+    SPICE_DISPLAY_CAP_MULTI_CODEC,
+    SPICE_DISPLAY_CAP_CODEC_MJPEG,
+    SPICE_DISPLAY_CAP_CODEC_VP8,
+    SPICE_DISPLAY_CAP_CODEC_H264,
 };
 
 enum {