2004-03-03 03:20:00 +01:00
|
|
|
/*
|
|
|
|
* Frontend Status Monitor plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2004-02-26 03:20:00 +01:00
|
|
|
#ifndef __FEMONRECEIVER_H
|
|
|
|
#define __FEMONRECEIVER_H
|
|
|
|
|
2004-02-27 03:20:00 +01:00
|
|
|
#include <vdr/device.h> // only for TS_SIZE
|
2004-03-03 03:20:00 +01:00
|
|
|
#include <vdr/thread.h>
|
2004-02-26 03:20:00 +01:00
|
|
|
#include <vdr/receiver.h>
|
|
|
|
|
2004-03-03 03:20:00 +01:00
|
|
|
class cFemonReceiver : public cReceiver, public cThread {
|
2004-02-26 03:20:00 +01:00
|
|
|
private:
|
2004-03-03 03:20:00 +01:00
|
|
|
bool m_Active;
|
|
|
|
int m_VideoPid;
|
|
|
|
int m_AudioPid;
|
|
|
|
int m_VideoPacketCount;
|
|
|
|
int m_AudioPacketCount;
|
|
|
|
double m_VideoBitrate;
|
|
|
|
double m_AudioBitrate;
|
2004-02-26 03:20:00 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Activate(bool On);
|
|
|
|
virtual void Receive(uchar *Data, int Length);
|
2004-03-03 03:20:00 +01:00
|
|
|
virtual void Action(void);
|
2004-02-26 03:20:00 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
cFemonReceiver(int Ca, int Vpid, int Apid);
|
|
|
|
virtual ~cFemonReceiver();
|
|
|
|
|
2004-03-07 03:20:00 +01:00
|
|
|
double VideoBitrate(void) { return m_VideoBitrate; }; // Mbit/s
|
|
|
|
double AudioBitrate(void) { return m_AudioBitrate; }; // kbit/s
|
2004-02-26 03:20:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__FEMONRECEIVER_H
|
|
|
|
|