aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Decoder.cxx
diff options
context:
space:
mode:
authorVladimir Sukhonosov <xornet@xornet.org>2022-01-21 07:59:02 +0300
committerVladimir Sukhonosov <xornet@xornet.org>2022-01-21 08:26:07 +0300
commit03df44849617122fba9b521006ae147e4520bf73 (patch)
tree2fce438db755881d2a1863a3353e8194ef0c8379 /common/rfb/Decoder.cxx
parenta1d755a5f833c47d9c6fde4da1ec7e9e8631f1ce (diff)
downloadtigervnc-03df44849617122fba9b521006ae147e4520bf73.tar.gz
tigervnc-03df44849617122fba9b521006ae147e4520bf73.zip
H264 Decoder
Linux implementation using ffmpeg
Diffstat (limited to 'common/rfb/Decoder.cxx')
-rw-r--r--common/rfb/Decoder.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/rfb/Decoder.cxx b/common/rfb/Decoder.cxx
index 72641a43..924f86d8 100644
--- a/common/rfb/Decoder.cxx
+++ b/common/rfb/Decoder.cxx
@@ -31,6 +31,9 @@
#include <rfb/HextileDecoder.h>
#include <rfb/ZRLEDecoder.h>
#include <rfb/TightDecoder.h>
+#ifdef HAVE_H264
+#include <rfb/H264Decoder.h>
+#endif
using namespace rfb;
@@ -66,6 +69,9 @@ bool Decoder::supported(int encoding)
case encodingHextile:
case encodingZRLE:
case encodingTight:
+#ifdef HAVE_H264
+ case encodingH264:
+#endif
return true;
default:
return false;
@@ -87,6 +93,10 @@ Decoder* Decoder::createDecoder(int encoding)
return new ZRLEDecoder();
case encodingTight:
return new TightDecoder();
+#ifdef HAVE_H264
+ case encodingH264:
+ return new H264Decoder();
+#endif
default:
return NULL;
}