mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
Drop vdr code, use ffmpeg dvb sub decoder. atm patched ffmpeg used
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@153 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -12,26 +12,27 @@
|
||||
#ifndef __DVBSUBTITLE_H
|
||||
#define __DVBSUBTITLE_H
|
||||
|
||||
#include "osd.h"
|
||||
extern "C" {
|
||||
#include <unistd.h>
|
||||
#include <linux/fb.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavutil/avutil.h>
|
||||
}
|
||||
|
||||
#include "tools.h"
|
||||
|
||||
class cDvbSubtitlePage;
|
||||
class cDvbSubtitleAssembler; // for legacy PES recordings
|
||||
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);
|
||||
bool running;
|
||||
pthread_mutex_t mutex;
|
||||
cList<cDvbSubtitleBitmaps> *bitmaps;
|
||||
AVCodecContext * avctx;
|
||||
AVCodec * avcodec;
|
||||
public:
|
||||
cDvbSubtitleConverter(void);
|
||||
virtual ~cDvbSubtitleConverter();
|
||||
@@ -41,9 +42,7 @@ public:
|
||||
void Pause(bool pause);
|
||||
void Lock();
|
||||
void Unlock();
|
||||
int ConvertFragments(const uchar *Data, int Length, int64_t pts); // for legacy PES recordings
|
||||
int Convert(const uchar *Data, int Length, int64_t pts);
|
||||
static void SetupChanged(void);
|
||||
bool Running() { return running; };
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user