diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-12 13:30:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-12 13:30:11 +0200 |
commit | 8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0 (patch) | |
tree | e8541a80ded13b9dd263123d4adf1e941f902ce8 /dvbosd.c | |
parent | c3144c9ab81a02469f65bded3285d643a3111ebc (diff) | |
download | vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.gz vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.bz2 |
Some improvements in cOsd creation
Diffstat (limited to 'dvbosd.c')
-rw-r--r-- | dvbosd.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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) { |