-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathait.h
53 lines (44 loc) · 1.05 KB
/
ait.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* ait.h: AIT section filter
*
* See the main source file for copyright information and
* how to reach the author.
*
*/
#pragma once
#include <vdr/filter.h>
#include <vdr/thread.h>
#define MAXPMTENTRIES 64
/* ETSI TS 102 809
* Possible values of the stream content descriptor
*/
enum application_control_codes
{
acc_reserved = 0x00,
acc_Autostart = 0x01,
acc_present = 0x02,
acc_destroy = 0x03,
acc_kill = 0x04,
acc_prefetch = 0x05,
acc_remote = 0x06,
acc_disabled = 0x07,
acc_playback_autostart = 0x08,
};
#define MAXPMTENTRIES 64
class cAitFilter : public cFilter
{
private:
cMutex mutex;
cTimeMs timer;
int patVersion;
int pmtVersion;
int sid;
int pmtPid;
int pmtNextCheck;
protected:
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
public:
cAitFilter(int Sid);
virtual void SetStatus(bool On);
void Trigger(int Sid = -1);
};