blob: 188cdeeb2917e98112cc27e6994401a0d641c1b4 (
plain)
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
|
#pragma once
#include "DVBChannel.h"
#pragma pack(1)
typedef struct
{
UINT8 TableID;
WORD SectionSyntaxIndicator : 1;
WORD Reserved1 : 3;
WORD SectionLength : 12;
WORD BouquetID;
UINT8 Reserved2 : 1;
UINT8 VersionNumber : 5;
UINT8 CurrentNextIndicator : 1;
UINT8 SectionNumber;
UINT8 LastSectionNumber;
} SI_HEADER;
class CMpeg2DataParser
{
public :
CMpeg2DataParser(IBaseFilter* pFilter);
HRESULT ParseSDT(ULONG ulFreq);
HRESULT ParsePAT();
HRESULT ParseNIT();
static CString ConvertString (BYTE* pBuffer, int nLength);
CAtlMap<int,CDVBChannel> Channels;
private :
CComQIPtr<IMpeg2Data> m_pData;
MPEG2_FILTER m_Filter;
DVB_STREAM_TYPE ConvertToDVBType(PES_STREAM_TYPE nType);
HRESULT ParseSIHeader(CGolombBuffer& gb, DVB_SI SIType, WORD& wSectionLength, WORD& wTSID);
HRESULT ParsePMT(CDVBChannel& Channel);
};
|