mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Transponder information is now available in advanced display mode: Press 'OK' key to switch between the simple and the advanced display mode. Moved bitrate calculation to it's own thread for improved accurancy.
41 lines
887 B
C++
41 lines
887 B
C++
/*
|
|
* Frontend Status Monitor plugin for the Video Disk Recorder
|
|
*
|
|
* See the README file for copyright information and how to reach the author.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef __FEMONRECEIVER_H
|
|
#define __FEMONRECEIVER_H
|
|
|
|
#include <vdr/device.h> // only for TS_SIZE
|
|
#include <vdr/thread.h>
|
|
#include <vdr/receiver.h>
|
|
|
|
class cFemonReceiver : public cReceiver, public cThread {
|
|
private:
|
|
bool m_Active;
|
|
int m_VideoPid;
|
|
int m_AudioPid;
|
|
int m_VideoPacketCount;
|
|
int m_AudioPacketCount;
|
|
double m_VideoBitrate;
|
|
double m_AudioBitrate;
|
|
|
|
protected:
|
|
virtual void Activate(bool On);
|
|
virtual void Receive(uchar *Data, int Length);
|
|
virtual void Action(void);
|
|
|
|
public:
|
|
cFemonReceiver(int Ca, int Vpid, int Apid);
|
|
virtual ~cFemonReceiver();
|
|
|
|
double VideoBitrate(void) { return m_VideoBitrate; };
|
|
double AudioBitrate(void) { return m_AudioBitrate; };
|
|
};
|
|
|
|
#endif //__FEMONRECEIVER_H
|
|
|