diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 11:01:34 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 11:01:34 +0100 |
commit | e5d1aacca2020e63dbaf320ba8b1de61746ad410 (patch) | |
tree | 0e267f716f34700a439971926fdc79b0172a0f38 /ttxtsubsreceiver.h | |
parent | 88012c106b8310507e872c72544f423433bac5d2 (diff) | |
download | vdr-plugin-ttxtsubs-0.0.5pre1.tar.gz vdr-plugin-ttxtsubs-0.0.5pre1.tar.bz2 |
- New features:v0.0.5pre1
- More than one language can be chosen, they are used in order of preference
- Handles languages with two ISO 639-2 identifiers (as ger/deu, fre/fra)
- Subtitles can now be turned on or off
- Optional main menu alternative for easy access
- Selectable vertical position of text for 4:3/Anamorphic or Letterbox
- Left, Center or Right horizontal position of text
- Remapping option for those French channels that incorrectly
sends teletext page numbers in decimal instead of hexadecimal.
Very moderate remapping done at the moment, I hope it is enough.
- Subtitles are now recorded with their PTS (timestamps). Not that
the timestamps are completely wrong on some channels, this
may confuse uncareful subtitle extracting software.
- Included patch for VDR 1.3.5 - untested!
- Bugs fixed:
- Fixed a net-to-host-order bug in the si parser that could make it
incorrectly think that there are no subtitles on a channel.
Thanks to Nicolas "tarass"!
- Fixed a bit swapping bug causing incorrect character encoding for
some languages. Thanks to Nicolas "tarass"!
Diffstat (limited to 'ttxtsubsreceiver.h')
-rw-r--r-- | ttxtsubsreceiver.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ttxtsubsreceiver.h b/ttxtsubsreceiver.h index a88aa65..3e11695 100644 --- a/ttxtsubsreceiver.h +++ b/ttxtsubsreceiver.h @@ -1,6 +1,11 @@ class cRingBufferFrame; +struct encodedPTS { + uint8_t valid; + uint8_t data[5]; +}; + class cTtxtSubsReceiver : public cReceiver { public: @@ -8,7 +13,7 @@ class cTtxtSubsReceiver : public cReceiver virtual ~cTtxtSubsReceiver(); // returns pointer buf if there is new data - uint8_t *Get(uint8_t *buf); + uint8_t *Get(uint8_t *buf, encodedPTS *pts = NULL); // wait for more data void Wait(void); @@ -31,4 +36,5 @@ class cTtxtSubsReceiver : public cReceiver uint8_t mIndexPageLines; uint8_t mIndexPageCol; uint16_t mIndexPageNo; + encodedPTS mPTS; }; |