summaryrefslogtreecommitdiff
path: root/ttxtsubsdisplay.h
blob: fa76860b031e10a1216a8b722d79d30626d393f0 (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

#include "teletext.h"

struct ttxt_data_field;
struct timeval;

class cOsdBase;

#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 *);

 protected:
  void Clear(void);
  void ShowOSD();
  void ClearOSD(void);
  
 private:
  int mPageState;
  int mMag;
  int mNo;
  int mDoDisplay;
  struct ttxt_page page;
  cOsdBase *mOsd;
  cMutex mOsdLock;
  struct timeval *mLastDataTime;
};