diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-03-30 18:49:58 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-03-30 18:49:58 +0200 |
commit | 74cdd9ffa1d0e5f74942051e7e22e07542929c03 (patch) | |
tree | e59472547b1ed3543b8e2d1d0e2a7c52fcb24c04 /command/demux.h | |
parent | 6446f24dce1b30fa341b7de078ca4385d1378457 (diff) | |
download | vdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.gz vdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.bz2 |
Changed directory structure, added Makefiles
Diffstat (limited to 'command/demux.h')
-rw-r--r-- | command/demux.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/command/demux.h b/command/demux.h new file mode 100644 index 0000000..3cb85cc --- /dev/null +++ b/command/demux.h @@ -0,0 +1,45 @@ +/* + * demux.h: A program 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" + +class cMarkAdDemux +{ +private: + 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(); + ~cMarkAdDemux(); + int Process(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen); +}; + +#endif |