-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvr350osd.h
44 lines (36 loc) · 924 Bytes
/
pvr350osd.h
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
38
39
40
41
42
43
44
/*
* pvr350osd.h:
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __PVR350_OSD_H
#define __PVR350_OSD_H
#include <vdr/osdbase.h>
#include <linux/fb.h>
class cPvr350Osd : public cOsd {
private:
int fd;
unsigned char *osd;
bool shown;
protected:
virtual void SetActive(bool On);
public:
cPvr350Osd(int Left, int Top, uint Level, int fbfd, unsigned char *osdbuf);
~cPvr350Osd();
eOsdError CanHandleAreas(const tArea *Areas, int NumAreas);
eOsdError SetAreas(const tArea *Areas, int NumAreas);
void Flush(void);
void Copy_OSD_buffer_to_card(void);
private:
void Hide(cBitmap *Bitmap);
};
class cPvr350OsdProvider : public cOsdProvider {
private:
unsigned char *osdBuf;
int osdfd;
public:
cPvr350OsdProvider(int fd, unsigned char *buf);
virtual cOsd *CreateOsd(int Left, int Top, uint Level);
};
#endif