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 /ttxtsubsfilter.c | |
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 'ttxtsubsfilter.c')
-rw-r--r-- | ttxtsubsfilter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ttxtsubsfilter.c b/ttxtsubsfilter.c index 9271215..ae13cc0 100644 --- a/ttxtsubsfilter.c +++ b/ttxtsubsfilter.c @@ -126,6 +126,11 @@ void cTtxtSubsFilter::MakeY0(char *outdata, char *indata, uint16_t newpageno) struct ttxt_data_field *o = (struct ttxt_data_field *) outdata; uint8_t hambuf[2]; + o->data_unit_id = 3; // EBU Teletxt subtitle data + o->data_unit_length = 44; + o->par_loff = 0xc0; // reserved bits + unknown line + o->framing_code = 0xe4; + // new magazine number (Y = 0) ham8_4byte((newpageno >> 8) & 0x7, hambuf); o->mag_addr_ham[0] = invtab[hambuf[0]]; |