2007-10-12 14:52:30 +02:00
|
|
|
|
/*
|
|
|
|
|
* dvbsubtitle.h: DVB subtitles
|
|
|
|
|
*
|
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
|
* how to reach the author.
|
|
|
|
|
*
|
|
|
|
|
* Original author: Marco Schl<EFBFBD><EFBFBD>ler <marco@lordzodiac.de>
|
|
|
|
|
*
|
2008-08-15 14:49:34 +02:00
|
|
|
|
* $Id: dvbsubtitle.h 2.1 2008/05/25 14:36:52 kls Exp $
|
2007-10-12 14:52:30 +02:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __DVBSUBTITLE_H
|
|
|
|
|
#define __DVBSUBTITLE_H
|
|
|
|
|
|
|
|
|
|
#include "osd.h"
|
|
|
|
|
#include "thread.h"
|
|
|
|
|
#include "tools.h"
|
|
|
|
|
|
|
|
|
|
class cDvbSubtitlePage;
|
2008-08-15 14:49:34 +02:00
|
|
|
|
class cDvbSubtitleAssembler; // for legacy PES recordings
|
2007-10-12 14:52:30 +02:00
|
|
|
|
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);
|
2008-08-15 14:49:34 +02:00
|
|
|
|
int ConvertFragments(const uchar *Data, int Length); // for legacy PES recordings
|
2007-10-12 14:52:30 +02:00
|
|
|
|
int Convert(const uchar *Data, int Length);
|
|
|
|
|
static void SetupChanged(void);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //__DVBSUBTITLE_H
|