summaryrefslogtreecommitdiff
path: root/receiver.h
blob: d05b2f0f035764e1deaa1f1853adaf13a079c4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * OSD Picture in Picture plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 */

#ifndef VDR_OSDPIP_RECEIVER_H
#define VDR_OSDPIP_RECEIVER_H

#include <vdr/receiver.h>
#include <vdr/thread.h>

class cRingBufferLinear;
class cRingBufferFrame;
class cRemux;

class cOsdPipReceiver: public cReceiver, public cThread {
private:
	cRingBufferLinear *m_TSBuffer;
	cRingBufferFrame *m_ESBuffer;
	cRemux *m_Remux;

	bool m_Active;

protected:
	virtual void Activate(bool On);
	virtual void Receive(uchar *Data, int Length);
	virtual void Action(void);

public:
	cOsdPipReceiver::cOsdPipReceiver(const cChannel *Channel, 
			cRingBufferFrame *ESBuffer);
	virtual ~cOsdPipReceiver();
};

#endif // VDR_OSDPIP_RECEIVER_H