2013-11-17 11:20:42 +01:00
|
|
|
#ifdef STREAMDEV_PS
|
|
|
|
|
2009-07-06 08:14:20 +02:00
|
|
|
#ifndef VDR_STREAMDEV_TS2PSREMUX_H
|
|
|
|
#define VDR_STREAMDEV_TS2PSREMUX_H
|
2004-12-30 23:43:55 +01:00
|
|
|
|
|
|
|
#include "remux/tsremux.h"
|
2009-06-19 08:32:38 +02:00
|
|
|
#include "server/streamer.h"
|
2004-12-30 23:43:55 +01:00
|
|
|
|
2009-01-16 12:35:43 +01:00
|
|
|
#ifndef MAXTRACKS
|
|
|
|
#define MAXTRACKS 64
|
|
|
|
#endif
|
|
|
|
|
2009-06-19 08:32:38 +02:00
|
|
|
namespace Streamdev {
|
|
|
|
|
2004-12-30 23:43:55 +01:00
|
|
|
class cTS2PS;
|
|
|
|
|
|
|
|
class cTS2PSRemux: public cTSRemux {
|
|
|
|
private:
|
2005-02-11 17:44:14 +01:00
|
|
|
int m_NumTracks;
|
|
|
|
cTS2PS *m_Remux[MAXTRACKS];
|
2009-06-19 08:32:38 +02:00
|
|
|
cStreamdevBuffer *m_ResultBuffer;
|
2005-02-11 17:44:14 +01:00
|
|
|
int m_ResultSkipped;
|
|
|
|
int m_Skipped;
|
|
|
|
bool m_Synced;
|
|
|
|
bool m_IsRadio;
|
|
|
|
|
2004-12-30 23:43:55 +01:00
|
|
|
public:
|
2005-02-11 17:44:14 +01:00
|
|
|
cTS2PSRemux(int VPid, const int *Apids, const int *Dpids, const int *Spids);
|
2004-12-30 23:43:55 +01:00
|
|
|
virtual ~cTS2PSRemux();
|
2005-02-11 17:44:14 +01:00
|
|
|
|
|
|
|
int Put(const uchar *Data, int Count);
|
|
|
|
uchar *Get(int &Count);
|
|
|
|
void Del(int Count) { m_ResultBuffer->Del(Count); }
|
2004-12-30 23:43:55 +01:00
|
|
|
};
|
|
|
|
|
2009-06-19 08:32:38 +02:00
|
|
|
} // namespace Streamdev
|
|
|
|
|
2009-07-06 08:14:20 +02:00
|
|
|
#endif // VDR_STREAMDEV_TS2PSREMUX_H
|
2013-11-17 11:20:42 +01:00
|
|
|
|
|
|
|
#endif
|