vdr  2.0.5
pat.h
Go to the documentation of this file.
1 /*
2  * pat.h: PAT section filter
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: pat.h 2.3 2013/02/16 15:20:24 kls Exp $
8  */
9 
10 #ifndef __PAT_H
11 #define __PAT_H
12 
13 #include <stdint.h>
14 #include "filter.h"
15 
16 #define MAXPMTENTRIES 64
17 
18 class cPatFilter : public cFilter {
19 private:
20  time_t lastPmtScan;
21  int pmtIndex;
22  int pmtPid;
23  int pmtSid;
26  bool PmtVersionChanged(int PmtPid, int Sid, int Version);
27 protected:
28  virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
29 public:
30  cPatFilter(void);
31  virtual void SetStatus(bool On);
32  void Trigger(void);
33  };
34 
35 int GetCaDescriptors(int Source, int Transponder, int ServiceId, const int *CaSystemIds, int BufSize, uchar *Data, int EsPid);
44 
45 #endif //__PAT_H
int pmtPid
Definition: pat.h:22
unsigned char uchar
Definition: tools.h:30
bool PmtVersionChanged(int PmtPid, int Sid, int Version)
Definition: pat.c:258
int GetCaDescriptors(int Source, int Transponder, int ServiceId, const int *CaSystemIds, int BufSize, uchar *Data, int EsPid)
Gets all CA descriptors for a given channel.
Definition: pat.c:226
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
Definition: pat.c:276
cPatFilter(void)
Definition: pat.c:233
int pmtIndex
Definition: pat.h:21
Definition: filter.h:41
#define MAXPMTENTRIES
Definition: pat.h:16
int numPmtEntries
Definition: pat.h:25
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
Definition: pat.c:243
Definition: pat.h:18
void Trigger(void)
Definition: pat.c:253
time_t lastPmtScan
Definition: pat.h:20
unsigned char u_char
Definition: headers.h:24
uint64_t pmtVersion[MAXPMTENTRIES]
Definition: pat.h:24
int pmtSid
Definition: pat.h:23