/
PidInfo.h
95 lines (81 loc) · 1.98 KB
/
PidInfo.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* PidInfo.h
* Copyright (C) 2005 nate
* Copyright (C) 2006 bear
*
* This file is part of TSFileSource, a directshow push source filter that
* provides an MPEG transport stream output.
*
* TSFileSource is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* TSFileSource is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TSFileSource; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* nate can be reached on the forums at
* http://forums.dvbowners.com/
*/
#ifndef PIDINFO_H
#define PIDINFO_H
#include <vector>
class PidInfo
{
public:
PidInfo();
virtual ~PidInfo();
void Clear();
void CopyFrom(PidInfo *pidInfo);
void CopyTo(PidInfo *pidInfo);
int vid;
int h264;
int mpeg4;
int aud;
int aud2;
int aac;
int aac2;
int dts;
int dts2;
int ac3;
int ac3_2;
int chnumb;
int txt;
int sub;
int sid;
int pmt;
int pcr;
int opcr;
long bitrate;
__int64 start;
__int64 end;
__int64 dur;
unsigned char chname[128];
unsigned char onetname[128];
unsigned char sdesc[128];
unsigned char edesc[600];
unsigned char sndesc[128];
unsigned char endesc[600];
unsigned long TsArray[16];
};
class PidInfoArray
{
public:
PidInfoArray();
virtual ~PidInfoArray();
void Clear();
void Add(PidInfo *newPidInfo);
void RemoveAt(int nPosition);
PidInfo &operator[](int nPosition);
int Count();
private:
std::vector<PidInfo *> m_Array;
CCritSec m_ArrayLock;
};
#endif