summaryrefslogtreecommitdiffstats
path: root/rfb/rfbproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'rfb/rfbproto.h')
-rw-r--r--rfb/rfbproto.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h
index acb2e7b..43f41e8 100644
--- a/rfb/rfbproto.h
+++ b/rfb/rfbproto.h
@@ -514,6 +514,9 @@ typedef struct {
#define rfbEncodingSupportedEncodings 0xFFFE0002
#define rfbEncodingServerIdentity 0xFFFE0003
+#ifdef LIBVNCSERVER_CONFIG_LIBVA
+#define rfbEncodingH264 0x48323634
+#endif
/*****************************************************************************
*
@@ -869,6 +872,21 @@ typedef struct {
#endif
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ * h264 - h264 encoding. We have an rfbH264Header structure
+ * giving the number of bytes following. Finally the data follows is
+ * h264 encoded frame.
+ */
+
+typedef struct {
+ uint32_t nBytes;
+ uint32_t slice_type;
+ uint32_t width;
+ uint32_t height;
+} rfbH264Header;
+
+#define sz_rfbH264Header 16
+
+/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* XCursor encoding. This is a special encoding used to transmit X-style
* cursor shapes from server to clients. Note that for this encoding,
* coordinates in rfbFramebufferUpdateRectHeader structure hold hotspot
OpenPOWER on IntegriCloud