summaryrefslogtreecommitdiff
path: root/demux.h
blob: d0b8265bac021f858d3a02719b6ccc98aff0ef71 (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
/*
 * demux.h: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id$
 */

#ifndef __demux_h_
#define __demux_h_

#ifndef TS_SIZE
#define TS_SIZE 188
#endif

#include "global.h"
#include "ts2pkt.h"
#include "pes2audioes.h"

class cMarkAdDemux
{
private:
    cMarkAdTS2Pkt *ts2pkt;
    cMarkAdPES2AudioES *pes2audioes;
    uchar *pkt;
    uchar *pesptr; // pointer into pkt

    uchar *tsdata;
    int tssize;
    uchar *tsptr;

    int pktlen;
public:
    cMarkAdDemux(int RecvNumber);
    ~cMarkAdDemux();
    int Process(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen);
};

#endif