aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/avswitch.h
blob: bcb29c40eb405491c10b539a0fbbd22c06c0b82a (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
#ifndef __avswitch_h
#define __avswitch_h

#include <lib/base/object.h>
#include <lib/python/connections.h>

class eSocketNotifier;

class eAVSwitch: public Object
{
	static eAVSwitch *instance;
	int m_video_mode;
	ePtr<eSocketNotifier> m_fp_notifier;
	void fp_event(int what);
	int m_fp_fd;
#ifdef SWIG
	eAVSwitch();
	~eAVSwitch();
#endif
protected:
public:
#ifndef SWIG
	eAVSwitch();
	~eAVSwitch();
#endif
	static eAVSwitch *getInstance();
	bool haveScartSwitch();
	int getVCRSlowBlanking();
	void setColorFormat(int format);
	void setAspectRatio(int ratio);
	void setVideomode(int mode);
	void setInput(int val);
	void setWSS(int val);
	PSignal1<void, int> vcr_sb_notifier;
};

#endif