summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-12 13:30:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-12 13:30:11 +0200
commit8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0 (patch)
treee8541a80ded13b9dd263123d4adf1e941f902ce8 /dvbosd.c
parentc3144c9ab81a02469f65bded3285d643a3111ebc (diff)
downloadvdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.gz
vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.bz2
Some improvements in cOsd creation
Diffstat (limited to 'dvbosd.c')
-rw-r--r--dvbosd.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/dvbosd.c b/dvbosd.c
index d21bcefb..8056499f 100644
--- a/dvbosd.c
+++ b/dvbosd.c
@@ -4,13 +4,15 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbosd.c 1.22 2004/05/01 15:10:44 kls Exp $
+ * $Id: dvbosd.c 1.23 2004/06/12 13:10:03 kls Exp $
*/
#include "dvbosd.h"
+#include <linux/dvb/osd.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/unistd.h>
+#include "dvbdevice.h"
#include "tools.h"
// --- cDvbOsd ---------------------------------------------------------------
@@ -18,6 +20,18 @@
#define MAXNUMWINDOWS 7 // OSD windows are counted 1...7
#define MAXOSDMEMORY 92000 // number of bytes available to the OSD (depends on firmware version, but there is no way of determining the actual value)
+class cDvbOsd : public cOsd {
+private:
+ int osdDev;
+ bool shown;
+ void Cmd(OSD_Command cmd, int color = 0, int x0 = 0, int y0 = 0, int x1 = 0, int y1 = 0, const void *data = NULL);
+public:
+ cDvbOsd(int Left, int Top, int OsdDev);
+ virtual ~cDvbOsd();
+ virtual eOsdError CanHandleAreas(const tArea *Areas, int NumAreas);
+ virtual void Flush(void);
+ };
+
cDvbOsd::cDvbOsd(int Left, int Top, int OsdDev)
:cOsd(Left, Top)
{