summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/ScreenSharing/VideoDecoder.h')
-rw-r--r--Swiften/ScreenSharing/VideoDecoder.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/VideoDecoder.h b/Swiften/ScreenSharing/VideoDecoder.h
new file mode 100644
index 0000000..810d5ae
--- /dev/null
+++ b/Swiften/ScreenSharing/VideoDecoder.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <Swiften/Base/boost_bsignals.h>
+#include <boost/shared_ptr.hpp>
+#include <stdint.h>
+
+namespace Swift {
+ class Image;
+
+ class VideoDecoder {
+ public:
+ VideoDecoder() {}
+ virtual ~VideoDecoder() {}
+
+ virtual void decodeFrame(const std::vector<uint8_t>& frame) = 0;
+
+ public:
+ boost::signal<void (const Image&)> onNewImageDecoded;
+ };
+}