summaryrefslogtreecommitdiff
path: root/display.h
blob: bf608c970e58f2c222f6eb4ce3c366ead67b3196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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