2002-06-16 12:57:31 +02:00
|
|
|
/*
|
|
|
|
* recorder.h: The actual DVB recorder
|
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2005-08-13 13:17:24 +02:00
|
|
|
* $Id: recorder.h 1.4 2005/08/13 11:31:18 kls Exp $
|
2002-06-16 12:57:31 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RECORDER_H
|
|
|
|
#define __RECORDER_H
|
|
|
|
|
|
|
|
#include "receiver.h"
|
|
|
|
#include "recording.h"
|
|
|
|
#include "remux.h"
|
|
|
|
#include "ringbuffer.h"
|
|
|
|
#include "thread.h"
|
|
|
|
|
2004-10-16 09:36:28 +02:00
|
|
|
class cFileWriter;
|
|
|
|
|
2002-06-16 12:57:31 +02:00
|
|
|
class cRecorder : public cReceiver, cThread {
|
|
|
|
private:
|
|
|
|
cRingBufferLinear *ringBuffer;
|
|
|
|
cRemux *remux;
|
2004-10-16 09:36:28 +02:00
|
|
|
cFileWriter *writer;
|
2002-06-16 12:57:31 +02:00
|
|
|
protected:
|
|
|
|
virtual void Activate(bool On);
|
|
|
|
virtual void Receive(uchar *Data, int Length);
|
|
|
|
virtual void Action(void);
|
|
|
|
public:
|
2005-01-16 14:40:47 +01:00
|
|
|
cRecorder(const char *FileName, int Ca, int Priority, int VPid, const int *APids, const int *DPids, const int *SPids);
|
2002-06-16 12:57:31 +02:00
|
|
|
// Creates a new recorder that requires conditional access Ca, has
|
|
|
|
// the given Priority and will record the given PIDs into the file FileName.
|
|
|
|
virtual ~cRecorder();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__RECORDER_H
|