diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-30 11:10:25 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-30 11:10:25 +0100 |
commit | 08899602322175a6cb080951c2ad0dcbf71446fa (patch) | |
tree | 4d8d72ed157813e1a1b159ed5c57f8d875a926b1 /remux.h | |
parent | a9543347afe9ea7fd031a36e97ef56ba036c1515 (diff) | |
download | vdr-08899602322175a6cb080951c2ad0dcbf71446fa.tar.gz vdr-08899602322175a6cb080951c2ad0dcbf71446fa.tar.bz2 |
The PCR pid is now recorded for channels where this is different from the video PID
Diffstat (limited to 'remux.h')
-rw-r--r-- | remux.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.h 2.23 2009/12/31 15:35:37 kls Exp $ + * $Id: remux.h 2.24 2010/01/29 16:51:26 kls Exp $ */ #ifndef __REMUX_H @@ -172,16 +172,16 @@ protected: int MakeSubtitlingDescriptor(uchar *Target, const char *Language, uchar SubtitlingType, uint16_t CompositionPageId, uint16_t AncillaryPageId); int MakeLanguageDescriptor(uchar *Target, const char *Language); int MakeCRC(uchar *Target, const uchar *Data, int Length); - void GeneratePmtPid(cChannel *Channel); + void GeneratePmtPid(const cChannel *Channel); ///< Generates a PMT pid that doesn't collide with any of the actual ///< pids of the Channel. void GeneratePat(void); ///< Generates a PAT section for later use with GetPat(). - void GeneratePmt(cChannel *Channel); + void GeneratePmt(const cChannel *Channel); ///< Generates a PMT section for the given Channel, for later use ///< with GetPmt(). public: - cPatPmtGenerator(cChannel *Channel = NULL); + cPatPmtGenerator(const cChannel *Channel = NULL); void SetVersions(int PatVersion, int PmtVersion); ///< Sets the version numbers for the generated PAT and PMT, in case ///< this generator is used to, e.g., continue a previously interrupted @@ -191,7 +191,7 @@ public: ///< higher bits will automatically be cleared. ///< SetVersions() needs to be called before SetChannel() in order to ///< have an effect from the very start. - void SetChannel(cChannel *Channel); + void SetChannel(const cChannel *Channel); ///< Sets the Channel for which the PAT/PMT shall be generated. uchar *GetPat(void); ///< Returns a pointer to the PAT section, which consists of exactly @@ -213,6 +213,7 @@ private: int pmtVersion; int pmtPid; int vpid; + int ppid; int vtype; int apids[MAXAPIDS + 1]; // list is zero-terminated int atypes[MAXAPIDS + 1]; // list is zero-terminated @@ -252,6 +253,9 @@ public: int Vpid(void) const { return vpid; } ///< Returns the video pid as defined by the current PMT, or 0 if no video ///< pid has been detected, yet. + int Ppid(void) const { return ppid; } + ///< Returns the PCR pid as defined by the current PMT, or 0 if no PCR + ///< pid has been detected, yet. int Vtype(void) const { return vtype; } ///< Returns the video stream type as defined by the current PMT, or 0 if no video ///< stream type has been detected, yet. |