vdr-plugin-streamdev/remux/ts2ps.h

37 lines
799 B
C
Raw Normal View History

2010-12-02 08:53:01 +01:00
#ifndef VDR_STREAMDEV_TS2PESREMUX_H
#define VDR_STREAMDEV_TS2PESREMUX_H
#include "remux/tsremux.h"
2010-12-02 09:44:53 +01:00
#include "server/streamer.h"
2010-12-02 08:53:01 +01:00
2010-12-02 09:43:13 +01:00
#ifndef MAXTRACKS
#define MAXTRACKS 64
#endif
2010-12-02 09:44:53 +01:00
namespace Streamdev {
2010-12-02 08:53:01 +01:00
class cTS2PS;
class cTS2PSRemux: public cTSRemux {
private:
int m_NumTracks;
cTS2PS *m_Remux[MAXTRACKS];
2010-12-02 09:44:53 +01:00
cStreamdevBuffer *m_ResultBuffer;
2010-12-02 08:53:01 +01:00
int m_ResultSkipped;
int m_Skipped;
bool m_Synced;
bool m_IsRadio;
public:
cTS2PSRemux(int VPid, const int *Apids, const int *Dpids, const int *Spids);
virtual ~cTS2PSRemux();
int Put(const uchar *Data, int Count);
uchar *Get(int &Count);
void Del(int Count) { m_ResultBuffer->Del(Count); }
};
2010-12-02 09:44:53 +01:00
} // namespace Streamdev
2010-12-02 08:53:01 +01:00
#endif // VDR_STREAMDEV_TS2PESREMUX_H