blob: e8fa81403d126386360e41f1e6ad52c21c46a238 (
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
|
#include "teletext.h"
struct ttxt_data_field;
struct timeval;
class cOsd;
class cFont;
#define MAXTTXTROWS 5
class cTtxtSubsDisplay {
public:
cTtxtSubsDisplay(void);
~cTtxtSubsDisplay(void);
void SetPage(int Pageno); // Pageno is 0x000 to 0x799
void Hide(void);
void Show(void);
void TtxtData(const uint8_t *, uint64_t sched_time = 0);
protected:
void Clear(void);
void ShowOSD();
void ClearOSD(void);
private:
int mPageState;
int mMag;
int mNo;
int mDoDisplay;
struct ttxt_page page;
cOsd *mOsd;
cMutex mOsdLock;
struct timeval *mLastDataTime;
const cFont *mOsdFont;
};
|