[Spice-commits] 2 commits - spice/enums.h spice/stream-device.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 8 14:36:33 UTC 2019
spice/enums.h | 1 +
spice/stream-device.h | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
New commits:
commit 96d7dd9eeff51e75ae9ee1d00adb573d50bb97c6
Author: Kevin Pouget <kpouget at redhat.com>
Date: Thu Aug 22 15:17:50 2019 +0200
stream-device: Define Quality Indicator messages
These messages are used to transmit streaming quality indicators from
the streaming device to SPICE Server.
The message is a variable-length, zero-terminated string.
A new capability is introduced (STREAM_CAP_QUALITY_INDICATOR) for
SPICE server and streaming agent capabilities negotiation.
Signed-off-by: Kevin Pouget <kpouget at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/spice/stream-device.h b/spice/stream-device.h
index c70690a..15d839b 100644
--- a/spice/stream-device.h
+++ b/spice/stream-device.h
@@ -92,9 +92,13 @@ typedef enum StreamMsgType {
STREAM_TYPE_CURSOR_MOVE,
/* the graphics device display information message (device address and display id) */
STREAM_TYPE_DEVICE_DISPLAY_INFO,
+ /* video encoding quality indicator message */
+ STREAM_TYPE_QUALITY_INDICATOR,
} StreamMsgType;
typedef enum StreamCapabilities {
+ /* handling of STREAM_TYPE_QUALITY_INDICATOR messages */
+ STREAM_CAP_QUALITY_INDICATOR,
STREAM_CAP_END // this must be the last
} StreamCapabilities;
@@ -171,6 +175,23 @@ typedef struct StreamMsgDeviceDisplayInfo {
uint8_t device_address[0]; // a zero-terminated string
} StreamMsgDeviceDisplayInfo;
+/* This message contains a quality indicator string, generated by the
+ * streaming agent. It is indended to be used by a module running of
+ * the server to ajust the streaming quality.
+ *
+ * The format of the string message is not specificied because
+ * module-specific.
+ *
+ * This message is sent by the guest to the host.
+ *
+ * States allowed: any
+ *
+ * Capability required: STREAM_CAP_QUALITY_INDICATOR
+ */
+typedef struct StreamMsgQualityIndicator {
+ uint8_t quality[0]; // a zero-terminated string
+} StreamMsgQualityIndicator;
+
/* Tell to stop current stream and possibly start a new one.
* This message is sent by the host to the guest.
* Allows to communicate the codecs supported by the clients.
commit 8ee9c7822cf3dcd5187a46e784f7a8e3473b51f5
Author: Kevin Pouget <kpouget at redhat.com>
Date: Thu Aug 22 15:17:50 2019 +0200
protocol: Define an enumeration for Quality Indicator messages
These messages are used to transmit streaming quality indicators from
SPICE client to SPICE server.
The message data structure is defined in spice-common/spice.proto:
message {
Data data @to_ptr;
} @declare quality_indicator;
Signed-off-by: Kevin Pouget <kpouget at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/spice/enums.h b/spice/enums.h
index 172cc4d..e88c1b1 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -468,6 +468,7 @@ enum {
SPICE_MSGC_MAIN_MIGRATE_END,
SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS,
SPICE_MSGC_MAIN_MIGRATE_CONNECTED_SEAMLESS,
+ SPICE_MSGC_MAIN_QUALITY_INDICATOR,
SPICE_MSGC_END_MAIN
};
More information about the Spice-commits
mailing list