diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-04-24 08:34:30 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-05-02 14:47:29 +0300 |
commit | 22fc0b0145876b90385c1c88923bcd72a6380812 (patch) | |
tree | a0350e5fc8f84b504d5ac3c6e442859302d832bf /common | |
parent | 178c7eaff6fa45b9051bb4d3cf90f45ea9319f83 (diff) |
video streaming: add support for frames of different sizes
rhbz #813826, #815426
Add SPICE_MSG_DISPLAY_STREAM_DATA_SIZED, for stream_data message
that also contains the size and destination box of the data.
The server can send such messages only to clients with
SPICE_DISPLAY_CAP_SIZED_STREAM.
Diffstat (limited to 'common')
-rw-r--r-- | common/messages.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/common/messages.h b/common/messages.h index 106a8d3..e3677d1 100644 --- a/common/messages.h +++ b/common/messages.h @@ -308,13 +308,26 @@ typedef struct SpiceMsgDisplayStreamCreate { SpiceClip clip; } SpiceMsgDisplayStreamCreate; -typedef struct SpiceMsgDisplayStreamData { +typedef struct SpiceStreamDataHeader { uint32_t id; uint32_t multi_media_time; +} SpiceStreamDataHeader; + +typedef struct SpiceMsgDisplayStreamData { + SpiceStreamDataHeader base; uint32_t data_size; uint8_t data[0]; } SpiceMsgDisplayStreamData; +typedef struct SpiceMsgDisplayStreamDataSized { + SpiceStreamDataHeader base; + uint32_t width; + uint32_t height; + SpiceRect dest; + uint32_t data_size; + uint8_t data[0]; +} SpiceMsgDisplayStreamDataSized; + typedef struct SpiceMsgDisplayStreamClip { uint32_t id; SpiceClip clip; |