mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
71 lines
1.2 KiB
C++
71 lines
1.2 KiB
C++
/*
|
|
* statistics.h: IPTV plugin for the Video Disk Recorder
|
|
*
|
|
* See the README file for copyright information and how to reach the author.
|
|
*
|
|
* $Id: statistics.h,v 1.5 2007/10/07 22:54:09 rahrenbe Exp $
|
|
*/
|
|
|
|
#ifndef __IPTV_STATISTICS_H
|
|
#define __IPTV_STATISTICS_H
|
|
|
|
#include "statisticif.h"
|
|
|
|
struct pidStruct {
|
|
u_short pid;
|
|
long DataAmount;
|
|
};
|
|
|
|
// Section statistics
|
|
class cIptvSectionStatistics : public cIptvStatisticIf {
|
|
protected:
|
|
long filteredData;
|
|
long numberOfCalls;
|
|
|
|
public:
|
|
cIptvSectionStatistics();
|
|
virtual ~cIptvSectionStatistics();
|
|
|
|
cString GetStatistic();
|
|
|
|
private:
|
|
cTimeMs timer;
|
|
};
|
|
|
|
// Device statistics
|
|
class cIptvDeviceStatistics : public cIptvStatisticIf {
|
|
protected:
|
|
long dataBytes;
|
|
|
|
public:
|
|
cIptvDeviceStatistics();
|
|
virtual ~cIptvDeviceStatistics();
|
|
|
|
cString GetStatistic();
|
|
|
|
protected:
|
|
void UpdateActivePids(u_short pid, long payload);
|
|
|
|
private:
|
|
pidStruct mostActivePids[IPTV_STATS_ACTIVE_PIDS_COUNT];
|
|
cTimeMs timer;
|
|
};
|
|
|
|
// Streamer statistics
|
|
class cIptvStreamerStatistics : public cIptvStatisticIf {
|
|
protected:
|
|
long dataBytes;
|
|
|
|
public:
|
|
cIptvStreamerStatistics();
|
|
virtual ~cIptvStreamerStatistics();
|
|
|
|
cString GetStatistic();
|
|
|
|
private:
|
|
cTimeMs timer;
|
|
};
|
|
|
|
#endif // __IPTV_STATISTICS_H
|
|
|