vdr
2.2.0
Main Page
Namespaces
Classes
Files
File List
File Members
nit.h
Go to the documentation of this file.
1
/*
2
* nit.h: NIT section filter
3
*
4
* See the main source file 'vdr.c' for copyright information and
5
* how to reach the author.
6
*
7
* $Id: nit.h 3.1 2014/03/10 14:12:05 kls Exp $
8
*/
9
10
#ifndef __NIT_H
11
#define __NIT_H
12
13
#include "
filter.h
"
14
#include "
sdt.h
"
15
16
#define MAXNITS 16
17
#define MAXNETWORKNAME Utf8BufSize(256)
18
19
class
cNitFilter
:
public
cFilter
{
20
private
:
21
22
class
cNit
{
23
public
:
24
u_short
networkId
;
25
char
name
[
MAXNETWORKNAME
];
26
bool
hasTransponder
;
27
};
28
29
cSectionSyncer
sectionSyncer
;
30
cSdtFilter
*
sdtFilter
;
31
cNit
nits
[
MAXNITS
];
32
u_short
networkId
;
33
int
numNits
;
34
protected
:
35
virtual
void
Process
(u_short Pid,
u_char
Tid,
const
u_char
*Data,
int
Length);
36
public
:
37
cNitFilter
(
cSdtFilter
*SdtFilter);
38
virtual
void
SetStatus
(
bool
On);
39
};
40
41
#endif //__NIT_H
cNitFilter::sdtFilter
cSdtFilter * sdtFilter
Definition:
nit.h:30
cNitFilter::cNit::networkId
u_short networkId
Definition:
nit.h:24
filter.h
cNitFilter::networkId
u_short networkId
Definition:
nit.h:32
cSdtFilter
Definition:
sdt.h:16
cNitFilter::numNits
int numNits
Definition:
nit.h:33
MAXNITS
#define MAXNITS
Definition:
nit.h:16
cNitFilter
Definition:
nit.h:19
cNitFilter::cNit
Definition:
nit.h:22
cNitFilter::sectionSyncer
cSectionSyncer sectionSyncer
Definition:
nit.h:29
cFilter
Definition:
filter.h:41
cSectionSyncer
Definition:
filter.h:16
cNitFilter::cNit::hasTransponder
bool hasTransponder
Definition:
nit.h:26
MAXNETWORKNAME
#define MAXNETWORKNAME
Definition:
nit.h:17
cNitFilter::Process
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
Definition:
nit.c:38
cNitFilter::nits
cNit nits[MAXNITS]
Definition:
nit.h:31
sdt.h
cNitFilter::SetStatus
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
Definition:
nit.c:30
SI::u_char
unsigned char u_char
Definition:
headers.h:24
cNitFilter::cNit::name
char name[MAXNETWORKNAME]
Definition:
nit.h:25
cNitFilter::cNitFilter
cNitFilter(cSdtFilter *SdtFilter)
Definition:
nit.c:22
Generated by
1.8.11