summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-14 15:57:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-14 15:57:30 +0200
commit9de548ee59234ddfbb1e8a65d72d2385ba165d4e (patch)
treecfe1b14cf7f6013fbf4b0625727b4b9fd9090801 /remux.h
parent4b8968f7e1f91f88e51a5014aa17f07484040f72 (diff)
downloadvdr-9de548ee59234ddfbb1e8a65d72d2385ba165d4e.tar.gz
vdr-9de548ee59234ddfbb1e8a65d72d2385ba165d4e.tar.bz2
Recording both audio tracks
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/remux.h b/remux.h
index 011dd3b6..ae19a441 100644
--- a/remux.h
+++ b/remux.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.h 1.3 2001/06/02 15:15:43 kls Exp $
+ * $Id: remux.h 1.4 2001/06/14 15:27:07 kls Exp $
*/
#ifndef __REMUX_H
@@ -19,18 +19,11 @@
#define P_FRAME 2
#define B_FRAME 3
-//XXX -> remux.c???
-// Start codes:
-#define SC_PICTURE 0x00 // "picture header"
-#define SC_SEQU 0xB3 // "sequence header"
-#define SC_PHEAD 0xBA // "pack header"
-#define SC_SHEAD 0xBB // "system header"
-#define SC_AUDIO 0xC0
-#define SC_VIDEO 0xE0
-
// The minimum amount of video data necessary to identify frames:
#define MINVIDEODATA (16*1024) // just a safe guess (max. size of any frame block, plus some safety)
+#define RESULTBUFFERSIZE (MINVIDEODATA * 4)
+
typedef unsigned char uchar;
class cTS2PES;
@@ -39,16 +32,16 @@ private:
bool exitOnFailure;
bool synced;
int skipped;
- dvb_pid_t vPid, aPid;
- cTS2PES *vTS2PES, *aTS2PES;
- uchar resultBuffer[MINVIDEODATA * 4];//XXX
+ dvb_pid_t vPid, aPid1, aPid2;
+ cTS2PES *vTS2PES, *aTS2PES1, *aTS2PES2;
+ uchar resultBuffer[RESULTBUFFERSIZE];
int resultCount;
int resultDelivered;
int GetPid(const uchar *Data);
int GetPacketLength(const uchar *Data, int Count, int Offset);
int ScanVideoPacket(const uchar *Data, int Count, int Offset, uchar &PictureType);
public:
- cRemux(dvb_pid_t VPid, dvb_pid_t APid, bool ExitOnFailure = false);
+ cRemux(dvb_pid_t VPid, dvb_pid_t APid1, dvb_pid_t APid2 = 0, bool ExitOnFailure = false);
~cRemux();
void SetAudioPid(int APid);
const uchar *Process(const uchar *Data, int &Count, int &Result, uchar *PictureType = NULL);