summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-06-21 18:06:42 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 08:53:12 (GMT)
commitf374887e7a27831771304a09a74d6cd54f8ef4e4 (patch)
tree8490553468223483fee7418e420894260a37692c /Swiften/ScreenSharing/VideoFrame.h
parent931b52184bf37f298f9c967883a3b71c912f834b (diff)
downloadswift-contrib-f374887e7a27831771304a09a74d6cd54f8ef4e4.zip
swift-contrib-f374887e7a27831771304a09a74d6cd54f8ef4e4.tar.bz2
Middle part of the outgoing media pipeline
Diffstat (limited to 'Swiften/ScreenSharing/VideoFrame.h')
-rw-r--r--Swiften/ScreenSharing/VideoFrame.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/VideoFrame.h b/Swiften/ScreenSharing/VideoFrame.h
new file mode 100644
index 0000000..1d98062
--- /dev/null
+++ b/Swiften/ScreenSharing/VideoFrame.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#ifndef VIDEOFRAME_H
+#define VIDEOFRAME_H
+
+#pragma once
+
+#include <boost/shared_ptr.hpp>
+#include <vector>
+#include <stdint.h>
+
+namespace Swift {
+ class VideoFrame {
+ public:
+ typedef boost::shared_ptr<VideoFrame> ref;
+
+ VideoFrame(int width, int height, uint8_t *rgb24data);
+
+ int width;
+ int height;
+ std::vector<uint8_t> data;
+ };
+}
+
+#endif // VIDEOFRAME_H