mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
38 lines
905 B
C++
38 lines
905 B
C++
/*
|
|
* $Id: livefilter.h,v 1.5 2008/04/07 14:27:31 schmirl Exp $
|
|
*/
|
|
|
|
#ifndef VDR_STREAMEV_LIVEFILTER_H
|
|
#define VDR_STREAMEV_LIVEFILTER_H
|
|
|
|
#include "server/streamer.h"
|
|
|
|
class cDevice;
|
|
class cStreamdevLiveFilter;
|
|
|
|
class cStreamdevFilterStreamer: public cStreamdevStreamer {
|
|
private:
|
|
cDevice *m_Device;
|
|
cStreamdevLiveFilter *m_Filter;
|
|
cStreamdevBuffer *m_ReceiveBuffer;
|
|
|
|
protected:
|
|
virtual uchar* GetFromReceiver(int &Count) { return m_ReceiveBuffer->Get(Count); }
|
|
virtual void DelFromReceiver(int Count) { m_ReceiveBuffer->Del(Count); }
|
|
|
|
public:
|
|
cStreamdevFilterStreamer();
|
|
virtual ~cStreamdevFilterStreamer();
|
|
|
|
void SetDevice(cDevice *Device);
|
|
bool SetFilter(u_short Pid, u_char Tid, u_char Mask, bool On);
|
|
|
|
virtual bool IsReceiving(void) const;
|
|
void Receive(uchar *Data);
|
|
|
|
virtual void Attach(void);
|
|
virtual void Detach(void);
|
|
};
|
|
|
|
#endif // VDR_STREAMEV_LIVEFILTER_H
|