2000-10-03 10:34:48 +02:00
|
|
|
/*
|
2002-05-10 14:55:53 +02:00
|
|
|
* dvbosd.h: Implementation of the DVB On Screen Display
|
2000-10-03 10:34:48 +02:00
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2004-05-16 10:35:36 +02:00
|
|
|
* $Id: dvbosd.h 1.17 2004/04/30 13:44:16 kls Exp $
|
2000-10-03 10:34:48 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DVBOSD_H
|
|
|
|
#define __DVBOSD_H
|
|
|
|
|
2002-08-10 14:58:25 +02:00
|
|
|
#include <linux/dvb/osd.h>
|
2002-08-04 14:57:29 +02:00
|
|
|
#include "dvbdevice.h"
|
2004-05-16 10:35:36 +02:00
|
|
|
#include "osd.h"
|
2000-10-03 10:34:48 +02:00
|
|
|
|
2004-05-16 10:35:36 +02:00
|
|
|
class cDvbOsd : public cOsd {
|
2000-10-03 10:34:48 +02:00
|
|
|
private:
|
2002-05-18 14:03:22 +02:00
|
|
|
int osdDev;
|
2004-05-16 10:35:36 +02:00
|
|
|
bool shown;
|
2000-10-03 10:34:48 +02:00
|
|
|
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:
|
2004-05-16 10:35:36 +02:00
|
|
|
cDvbOsd(int Left, int Top, int OsdDev);
|
2002-05-10 14:55:53 +02:00
|
|
|
virtual ~cDvbOsd();
|
2004-05-16 10:35:36 +02:00
|
|
|
virtual eOsdError CanHandleAreas(const tArea *Areas, int NumAreas);
|
|
|
|
virtual void Flush(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cDvbOsdProvider : public cOsdProvider {
|
|
|
|
private:
|
|
|
|
int osdDev;
|
|
|
|
public:
|
|
|
|
cDvbOsdProvider(int OsdDev);
|
|
|
|
virtual cOsd *CreateOsd(int Left, int Top);
|
2000-10-03 10:34:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DVBOSD_H
|