summaryrefslogtreecommitdiff
path: root/dvbosd.h
blob: bac43f5102f124ca30da559d4413a1999681b5b5 (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
/*
 * dvbosd.h: Implementation of the DVB On Screen Display
 *
 * See the main source file 'vdr.c' for copyright information and
 * how to reach the author.
 *
 * $Id: dvbosd.h 1.17 2004/04/30 13:44:16 kls Exp $
 */

#ifndef __DVBOSD_H
#define __DVBOSD_H

#include <linux/dvb/osd.h>
#include "dvbdevice.h"
#include "osd.h"

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);
  };

class cDvbOsdProvider : public cOsdProvider {
private:
  int osdDev;
public:
  cDvbOsdProvider(int OsdDev);
  virtual cOsd *CreateOsd(int Left, int Top);
  };

#endif //__DVBOSD_H