summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/ScreenSharing/VideoFrame.cpp')
-rw-r--r--Swiften/ScreenSharing/VideoFrame.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/VideoFrame.cpp b/Swiften/ScreenSharing/VideoFrame.cpp
new file mode 100644
index 0000000..d36ec5c
--- /dev/null
+++ b/Swiften/ScreenSharing/VideoFrame.cpp
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#include <Swiften/ScreenSharing/VideoFrame.h>
+
+namespace Swift {
+
+VideoFrame::VideoFrame(int width, int height, uint8_t *rgb24data)
+ : width(width), height(height)
+{
+ int len = width * height;
+ data.insert(data.begin(), rgb24data, rgb24data + len);
+}
+
+}