summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2010-02-12 22:06:19 +0100
committeretobi <git@e-tobi.net>2013-03-10 13:52:15 +0100
commit0460f10ead868f796e642adf6a3bdc1b6d8ca190 (patch)
tree958075dab594d4ba5b1d550c4d4f688571e059ef /remux.h
parent08f2963cfb42038575a741e2902b9b7a95c0a0f8 (diff)
downloadvdr-patches-0460f10ead868f796e642adf6a3bdc1b6d8ca190.tar.gz
vdr-patches-0460f10ead868f796e642adf6a3bdc1b6d8ca190.tar.bz2
Capture teletext subtitle pages from PMT
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/remux.h b/remux.h
index 4cef4da..203ed34 100644
--- a/remux.h
+++ b/remux.h
@@ -342,6 +342,7 @@ private:
int vpid;
int ppid;
int vtype;
+ int tpid;
int apids[MAXAPIDS + 1]; // list is zero-terminated
int atypes[MAXAPIDS + 1]; // list is zero-terminated
char alangs[MAXAPIDS][MAXLANGCODE2];
@@ -392,6 +393,9 @@ public:
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.
+ int Tpid(void) { return tpid; }
+ ///< Returns the teletext pid as defined by the current PMT, or 0 if no teletext
+ ///< pid has been detected, yet.
const int *Apids(void) const { return apids; }
const int *Dpids(void) const { return dpids; }
const int *Spids(void) const { return spids; }
@@ -406,6 +410,7 @@ public:
uchar SubtitlingType(int i) const { return (0 <= i && i < MAXSPIDS) ? subtitlingTypes[i] : uchar(0); }
uint16_t CompositionPageId(int i) const { return (0 <= i && i < MAXSPIDS) ? compositionPageIds[i] : uint16_t(0); }
uint16_t AncillaryPageId(int i) const { return (0 <= i && i < MAXSPIDS) ? ancillaryPageIds[i] : uint16_t(0); }
+ const tTeletextSubtitlePage* TeletextSubtitlePages() const { return teletextSubtitlePages; }
};
// TS to PES converter: