summaryrefslogtreecommitdiff
path: root/demux.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-10-02 17:36:58 +0200
committerJochen Dolze <vdr@dolze.de>2009-10-02 17:36:58 +0200
commit52cd041405849817c72d272bee0e6798f57b66c4 (patch)
tree994709d9e41ae0a367ba4b0bf5254911a4f38558 /demux.h
parenta21c3bf58621446068b054326eec83dae1e744a0 (diff)
downloadvdr-plugin-markad-52cd041405849817c72d272bee0e6798f57b66c4.tar.gz
vdr-plugin-markad-52cd041405849817c72d272bee0e6798f57b66c4.tar.bz2
Rewrote packet handling code, now it uses queues
Diffstat (limited to 'demux.h')
-rw-r--r--demux.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/demux.h b/demux.h
index d0b8265..ed11e6c 100644
--- a/demux.h
+++ b/demux.h
@@ -13,23 +13,28 @@
#define TS_SIZE 188
#endif
+#ifndef VDR_SIZE
+#define VDR_SIZE 2048
+#endif
+
#include "global.h"
+#include "tools.h"
+#include "vdr2pkt.h"
#include "ts2pkt.h"
-#include "pes2audioes.h"
+#include "pes2es.h"
class cMarkAdDemux
{
private:
+ int recvnumber;
+ cMarkAdVDR2Pkt *vdr2pkt;
cMarkAdTS2Pkt *ts2pkt;
- cMarkAdPES2AudioES *pes2audioes;
- uchar *pkt;
- uchar *pesptr; // pointer into pkt
-
- uchar *tsdata;
- int tssize;
- uchar *tsptr;
+ cMarkAdPES2ES *pes2audioes;
+ cMarkAdPES2ES *pes2videoes;
+ cMarkAdPaketQueue *queue;
- int pktlen;
+ 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();