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/pes2es.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/pes2es.h')
-rw-r--r-- | command/pes2es.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/command/pes2es.h b/command/pes2es.h new file mode 100644 index 0000000..6b7c6bc --- /dev/null +++ b/command/pes2es.h @@ -0,0 +1,78 @@ +/* + * pes2es.h: A program for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + */ + +#ifndef __pes2es_h_ +#define __pes2es_h_ + +#ifndef uchar +typedef unsigned char uchar; +#endif + +#include <inttypes.h> +#include <stdlib.h> +#include <string.h> + +#include "global.h" +#include "queue.h" + +class cMarkAdPES2ES +{ +private: + struct PESHDR + { + uchar Sync1; + uchar Sync2; + uchar Sync3; + uchar StreamID; + uchar LenH; + uchar LenL; + }; + +#pragma pack(1) + struct PESHDROPT + { +unsigned OOC: + 1; +unsigned CY: + 1; +unsigned DAI: + 1; +unsigned PESP: + 1; +unsigned PESSC: + 2; +unsigned MarkerBits: + 2; +unsigned EXT: + 1; +unsigned CRC: + 1; +unsigned ACI: + 1; +unsigned TM: + 1; +unsigned RATE: + 1; +unsigned ESCR: + 1; +unsigned TSF: + 2; +unsigned Length: + 8; + }; +#pragma pack() + + cMarkAdPaketQueue *queue; + int type; + void Reset(); +public: + cMarkAdPES2ES(const char *QueueName="PES2ES", int QueueSize=32768); + ~cMarkAdPES2ES(); + void Process(MarkAdPid Pid, uchar *PESData, int PESSize, uchar **ESData, int *ESSize); +}; + +#endif |