diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-10-12 14:52:30 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-10-12 14:52:30 +0200 |
commit | 0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c (patch) | |
tree | a22c8317f28226d78095534c9c5b1f7119265415 /dvbsubtitle.h | |
parent | 3a4b7f065ce64a81214cc837841378f979086481 (diff) | |
download | vdr-0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c.tar.gz vdr-0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c.tar.bz2 |
Implemented handling DVB subtitles
Diffstat (limited to 'dvbsubtitle.h')
-rw-r--r-- | dvbsubtitle.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dvbsubtitle.h b/dvbsubtitle.h new file mode 100644 index 00000000..d848134d --- /dev/null +++ b/dvbsubtitle.h @@ -0,0 +1,43 @@ +/* + * dvbsubtitle.h: DVB subtitles + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * Original author: Marco Schlüßler <marco@lordzodiac.de> + * + * $Id: dvbsubtitle.h 1.1 2007/10/12 14:27:30 kls Exp $ + */ + +#ifndef __DVBSUBTITLE_H +#define __DVBSUBTITLE_H + +#include "osd.h" +#include "thread.h" +#include "tools.h" + +class cDvbSubtitlePage; +class cDvbSubtitleAssembler; +class cDvbSubtitleBitmaps; + +class cDvbSubtitleConverter : public cThread { +private: + static int setupLevel; + cDvbSubtitleAssembler *dvbSubtitleAssembler; + cOsd *osd; + cList<cDvbSubtitlePage> *pages; + cList<cDvbSubtitleBitmaps> *bitmaps; + tColor yuv2rgb(int Y, int Cb, int Cr); + bool AssertOsd(void); + int ExtractSegment(const uchar *Data, int Length, int64_t Pts); + void FinishPage(cDvbSubtitlePage *Page); +public: + cDvbSubtitleConverter(void); + virtual ~cDvbSubtitleConverter(); + void Action(void); + void Reset(void); + int Convert(const uchar *Data, int Length); + static void SetupChanged(void); + }; + +#endif //__DVBSUBTITLE_H |