summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-11-06 17:12:01 +0000
committerFrediano Ziglio <freddy77@gmail.com>2021-01-19 13:24:55 +0000
commit4348ddb628fa1f65857d6284e534570cc1a8a466 (patch)
treea30fa7fddc160e33a6b95da487855ff3cbdc09d6
parentee71794b2af557593b1377395fe43d34968b2ee8 (diff)
RFC protocol: Allows to send partial frame data
Reduce the needs to buffer the entire frame and than send and on the other end to wait the entire frame before processing. Some encodings allow to start processing before having a full frame allowing to reduce latency and buffering with huge frames. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--spice/enums.h1
-rw-r--r--spice/protocol.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/spice/enums.h b/spice/enums.h
index 45baf9f..49b6507 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -496,6 +496,7 @@ enum {
SPICE_MSG_DISPLAY_STREAM_CLIP,
SPICE_MSG_DISPLAY_STREAM_DESTROY,
SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL,
+ SPICE_MSG_DISPLAY_STREAM_PARTIAL_DATA,
SPICE_MSG_DISPLAY_DRAW_FILL = 302,
SPICE_MSG_DISPLAY_DRAW_OPAQUE,
SPICE_MSG_DISPLAY_DRAW_COPY,
diff --git a/spice/protocol.h b/spice/protocol.h
index c5cbb6b..154c67c 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -150,6 +150,7 @@ enum {
SPICE_DISPLAY_CAP_PREF_VIDEO_CODEC_TYPE,
SPICE_DISPLAY_CAP_CODEC_VP9,
SPICE_DISPLAY_CAP_CODEC_H265,
+ SPICE_DISPLAY_CAP_STREAM_PARTIAL,
};
enum {