2004-01-11 15:54:37 +01:00
|
|
|
/*
|
|
|
|
* nit.h: NIT section filter
|
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2014-03-11 09:32:48 +01:00
|
|
|
* $Id: nit.h 2.0.1.1 2014/03/11 09:30:05 kls Exp $
|
2004-01-11 15:54:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NIT_H
|
|
|
|
#define __NIT_H
|
|
|
|
|
|
|
|
#include "filter.h"
|
2014-03-11 09:32:48 +01:00
|
|
|
#include "sdt.h"
|
2004-01-11 15:54:37 +01:00
|
|
|
|
2004-01-18 16:31:58 +01:00
|
|
|
#define MAXNITS 16
|
2007-06-10 13:02:43 +02:00
|
|
|
#define MAXNETWORKNAME Utf8BufSize(256)
|
2004-01-18 16:31:58 +01:00
|
|
|
|
2004-01-11 15:54:37 +01:00
|
|
|
class cNitFilter : public cFilter {
|
|
|
|
private:
|
2004-01-18 16:31:58 +01:00
|
|
|
|
|
|
|
class cNit {
|
|
|
|
public:
|
|
|
|
u_short networkId;
|
|
|
|
char name[MAXNETWORKNAME];
|
|
|
|
bool hasTransponder;
|
|
|
|
};
|
|
|
|
|
2004-01-11 15:54:37 +01:00
|
|
|
cSectionSyncer sectionSyncer;
|
2014-03-11 09:32:48 +01:00
|
|
|
cSdtFilter *sdtFilter;
|
2004-01-18 16:31:58 +01:00
|
|
|
cNit nits[MAXNITS];
|
|
|
|
u_short networkId;
|
|
|
|
int numNits;
|
2004-01-11 15:54:37 +01:00
|
|
|
protected:
|
|
|
|
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
|
|
|
|
public:
|
2014-03-11 09:32:48 +01:00
|
|
|
cNitFilter(cSdtFilter *SdtFilter);
|
2004-01-11 15:54:37 +01:00
|
|
|
virtual void SetStatus(bool On);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__NIT_H
|