mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
0553fce43c
- Use cStreamer (base class) instead of cLiveStreamer (no need to know streamer type) * works with cLiveStreamer and cLiveFilterStreamer * avoid circular dependency - visibility of cStreamdevLiveReceiver: Moved from livestreamer.h -> .c Modified Files: server/livefilter.c server/livefilter.h server/livestreamer.c server/livestreamer.h
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
#ifndef VDR_STREAMDEV_LIVESTREAMER_H
|
|
#define VDR_STREAMDEV_LIVESTREAMER_H
|
|
|
|
#include <vdr/config.h>
|
|
#include <vdr/receiver.h>
|
|
|
|
#include "server/streamer.h"
|
|
#include "server/livefilter.h"
|
|
#include "common.h"
|
|
|
|
class cTS2PSRemux;
|
|
class cTS2ESRemux;
|
|
class cExternRemux;
|
|
class cRemux;
|
|
class cStreamdevLiveReceiver;
|
|
|
|
// --- cStreamdevLiveStreamer -------------------------------------------------
|
|
|
|
class cStreamdevLiveStreamer: public cStreamdevStreamer {
|
|
private:
|
|
int m_Priority;
|
|
int m_Pids[MAXRECEIVEPIDS + 1];
|
|
int m_NumPids;
|
|
eStreamType m_StreamType;
|
|
const cChannel *m_Channel;
|
|
cDevice *m_Device;
|
|
cStreamdevLiveReceiver *m_Receiver;
|
|
cRemux *m_PESRemux;
|
|
cTS2ESRemux *m_ESRemux;
|
|
cTS2PSRemux *m_PSRemux;
|
|
cExternRemux *m_ExtRemux;
|
|
|
|
public:
|
|
cStreamdevLiveStreamer(int Priority);
|
|
virtual ~cStreamdevLiveStreamer();
|
|
|
|
void SetDevice(cDevice *Device) { m_Device = Device; }
|
|
bool SetPid(int Pid, bool On);
|
|
bool SetChannel(const cChannel *Channel, eStreamType StreamType, int Apid = 0);
|
|
bool SetFilter(u_short Pid, u_char Tid, u_char Mask, bool On);
|
|
|
|
virtual int Put(const uchar *Data, int Count);
|
|
virtual uchar *Get(int &Count);
|
|
virtual void Del(int Count);
|
|
|
|
virtual void Attach(void);
|
|
virtual void Detach(void);
|
|
|
|
// Statistical purposes:
|
|
virtual std::string Report(void);
|
|
};
|
|
|
|
#endif // VDR_STREAMDEV_LIVESTREAMER_H
|