vdr  2.0.2
dvbsubtitle.h
Go to the documentation of this file.
1 /*
2  * dvbsubtitle.h: DVB subtitles
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * Original author: Marco Schluessler <marco@lordzodiac.de>
8  *
9  * $Id: dvbsubtitle.h 2.7 2012/03/11 13:34:12 kls Exp $
10  */
11 
12 #ifndef __DVBSUBTITLE_H
13 #define __DVBSUBTITLE_H
14 
15 #include "osd.h"
16 #include "thread.h"
17 #include "tools.h"
18 
19 class cDvbSubtitlePage;
20 class cDvbSubtitleAssembler; // for legacy PES recordings
22 
24 private:
25  static int setupLevel;
28  bool frozen;
36  int osdDeltaX;
37  int osdDeltaY;
38  double osdFactorX;
39  double osdFactorY;
42  tColor yuv2rgb(int Y, int Cb, int Cr);
43  void SetOsdData(void);
44  bool AssertOsd(void);
45  int ExtractSegment(const uchar *Data, int Length, int64_t Pts);
46  void FinishPage(cDvbSubtitlePage *Page);
47 public:
49  virtual ~cDvbSubtitleConverter();
50  void Action(void);
51  void Reset(void);
52  void Freeze(bool Status) { frozen = Status; }
53  int ConvertFragments(const uchar *Data, int Length); // for legacy PES recordings
54  int Convert(const uchar *Data, int Length);
55  static void SetupChanged(void);
56  };
57 
58 #endif //__DVBSUBTITLE_H
59