path: root/
diff options
authorDavid Verbeiren <>2013-01-09 13:04:08 +0100
committerChristian Beier <>2013-01-25 21:07:07 +0100
commitd891478ec985660c03f95cffda0e6a1ad4ba350c (patch)
treeb25c9d2a7fa5727fccc3b1b528532a5e28583a5d /
parent98d49517edc412b524e8feb9c4568f418a25e0d2 (diff)
LibVNCClient: Add H.264 encoding for framebuffer updates
This patch implements support in LibVNCClient for framebuffer updates encoded as H.264 frames. Hardware accelerated decoding is performed using VA API. This is experimental support to let the community explore the possibilities offered by the potential bandwidth and latency reductions that H.264 encoding allows. This may be particularly useful for use cases such as online gaming, hosted desktops, hosted set top boxes... This patch only provides the client side support and is meant to be used with corresponding server-side support, as provided by an upcoming patch for qemu ui/vnc module (to view the display of a virtual machine executing under QEMU). With this H.264-based encoding, if multiple framebuffer update messages are generated for a single server framebuffer modification, the H.264 frame data is sent only with the first update message. Subsequent update framebuffer messages will contain only the coordinates and size of the additional updated regions. Instructions/Requirements: * The patch should be applied on top of the previous patch I submitted with minor enhancements to the gtkvncviewer application: * Currently only works with libva 1.0: use branch "v1.0-branch" for libva and intel-driver. Those can be built as follows: cd libva git checkout v1.0-branch ./ make sudo make install cd .. git clone git:// cd intel-driver git checkout v1.0-branch ./ make sudo make install Signed-off-by: David Verbeiren <>
Diffstat (limited to '')
1 files changed, 14 insertions, 0 deletions
diff --git a/ b/
index 3c8e3b7..c8b0d61 100644
--- a/
+++ b/
@@ -151,6 +151,20 @@ HAVE_X11="false"
AH_TEMPLATE(HAVE_X11, [X11 build environment present])
+# See if we want libva support
+# TODO: check if library actually exists
+AH_TEMPLATE(CONFIG_LIBVA, [Build libva support])
+[ --with-libva build libva support],,)
+if test "x$with_libva" != "xno"; then
+ AC_CHECK_LIB(va, vaInitialize,
+ VA_LIBS="-lva -lva-x11"
# See if we are to build x11vnc:
AH_TEMPLATE(HAVE_SYSTEM_LIBVNCSERVER, [Use the system libvncserver build environment for x11vnc.])