summaryrefslogtreecommitdiff
path: root/osd.h
blob: a43d6b6b4961ba90c0c7fd3d900ff7b7f1bff87a (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
33
34
35
36
37
38
39
40
#ifndef VDR_OSDPIP_OSD_H
#define VDR_OSDPIP_OSD_H

#include <vdr/osd.h>
#include <vdr/thread.h>
#include <vdr/receiver.h>

extern "C" {
#include <mpeg2dec/mpeg2.h>
#include <mpeg2dec/mpeg2convert.h>
};

class cRingBufferLinear;
class cOsdPipReceiver;

class cOsdPipObject: public cOsdObject, public cThread {
private:
	cOsdBase *m_Osd;
	cRingBufferLinear *m_ESBuffer;
	cOsdPipReceiver *m_Receiver;
	const cChannel *m_Channel;
	tWindowHandle m_Window;
	cBitmap *m_Bitmap;

	bool m_Active;
	bool m_Ready;
	int m_Width, m_Height;

protected:
	virtual void Action(void);

public:
	cOsdPipObject(cDevice *Device, const cChannel *Channel);
	virtual ~cOsdPipObject(void);

	virtual void Show(void);
	eOSState ProcessKey(eKeys k);
};

#endif // VDR_OSDPIP_OSD_H