From 62912232e2b38a1857c0ff279bd61579b1ab85ae Mon Sep 17 00:00:00 2001 From: etobi Date: Fri, 12 Feb 2010 22:06:19 +0100 Subject: Capture teletext subtitle pages from PMT --- remux.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'remux.h') diff --git a/remux.h b/remux.h index 5ee6722..390236a 100644 --- a/remux.h +++ b/remux.h @@ -216,6 +216,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]; @@ -262,6 +263,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; } @@ -276,6 +280,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: -- cgit v1.2.3