blob: e712a83c47d0e6b0ac8dfabbda4e60f7ea4bc3e8 (
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
47
48
49
50
|
/*
* demux.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __demux_h_
#define __demux_h_
#ifndef TS_SIZE
#define TS_SIZE 188
#endif
#ifndef VDR_SIZE
#define VDR_SIZE 2048
#endif
#include "global.h"
#include "queue.h"
#include "vdr2pkt.h"
#include "ts2pkt.h"
#include "pes2es.h"
#if 1
#include <unistd.h>
#endif
class cMarkAdDemux
{
private:
int recvnumber;
cMarkAdVDR2Pkt *vdr2pkt;
cMarkAdTS2Pkt *ts2pkt;
cMarkAdPES2ES *pes2audioes;
cMarkAdPES2ES *pes2videoes;
cMarkAdPaketQueue *queue;
bool pause;
int pause_retval;
void ProcessTS(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen);
void ProcessVDR(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen);
public:
cMarkAdDemux(int RecvNumber);
~cMarkAdDemux();
int Process(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen);
};
#endif
|