summaryrefslogtreecommitdiff
path: root/display.h
diff options
context:
space:
mode:
Diffstat (limited to 'display.h')
-rw-r--r--display.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/display.h b/display.h
new file mode 100644
index 0000000..bf608c9
--- /dev/null
+++ b/display.h
@@ -0,0 +1,32 @@
+/*
+ * See the README file for copyright information and how to reach the author.
+ *
+ * $Id$
+ */
+
+#ifndef DISPLAY_H
+#define DISPLAY_H
+
+#include "interface/vmcs_host/vc_dispmanx_types.h"
+
+class cRpiDisplay
+{
+
+public:
+
+ static int Open(int device);
+ static void Close(void);
+
+ static int GetSize(int &width, int &height);
+ static int AddElement(DISPMANX_ELEMENT_HANDLE_T &element,
+ int width, int height, int layer);
+ static int Snapshot(uint8_t* frame, int width, int height);
+
+private:
+
+ static DISPMANX_DISPLAY_HANDLE_T s_display;
+ static DISPMANX_UPDATE_HANDLE_T s_update;
+
+};
+
+#endif