summaryrefslogtreecommitdiff
path: root/ttxtsubsglobals.h
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2008-12-13 11:01:34 +0100
committerTobias Grimm <tobias@e-tobi.loc>2008-12-13 11:01:34 +0100
commite5d1aacca2020e63dbaf320ba8b1de61746ad410 (patch)
tree0e267f716f34700a439971926fdc79b0172a0f38 /ttxtsubsglobals.h
parent88012c106b8310507e872c72544f423433bac5d2 (diff)
downloadvdr-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 'ttxtsubsglobals.h')
-rw-r--r--ttxtsubsglobals.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/ttxtsubsglobals.h b/ttxtsubsglobals.h
new file mode 100644
index 0000000..09bae9d
--- /dev/null
+++ b/ttxtsubsglobals.h
@@ -0,0 +1,50 @@
+
+class cPluginTtxtsubs;
+class cMenuSetupTtxtsubs;
+
+#define MAXLANGUAGES 5
+
+class cTtxtsubsConf {
+ friend class cPluginTtxtsubs;
+ friend class cMenuSetupTtxtsubs;
+
+ public:
+ cTtxtsubsConf(void)
+ {
+ mDoDisplay = 1;
+ mDoRecord = 1;
+ mMainMenuEntry = 0;
+ mTextPos = 0;
+ mBottomLB = 0;
+ mBottomAdj = 0;
+ mFrenchSpecial = 0;
+ memset(mLanguages, 0, sizeof(mLanguages));
+ memset(mHearingImpaireds, 0, sizeof(mHearingImpaireds));
+ }
+
+ public:
+ int doDisplay(void) {return mDoDisplay;}
+ int doRecord(void) {return mDoRecord;}
+ int mainMenuEntry(void) {return mMainMenuEntry;}
+ int textPos(void) {return mTextPos;}
+ int bottomLB(void) {return mBottomLB;}
+ int bottomAdj(void) {return mBottomAdj;}
+ int frenchSpecial(void) {return mFrenchSpecial;}
+ char (*languages(void))[MAXLANGUAGES][2][4] {return &mLanguages;}
+ int (*hearingImpaireds(void))[MAXLANGUAGES][2] {return &mHearingImpaireds;}
+
+ int langChoise(const char *lang, const int HI);
+
+ protected:
+ int mDoDisplay;
+ int mDoRecord;
+ int mMainMenuEntry;
+ int mTextPos;
+ int mBottomLB;
+ int mBottomAdj;
+ int mFrenchSpecial;
+ char mLanguages[MAXLANGUAGES][2][4];
+ int mHearingImpaireds[MAXLANGUAGES][2];
+};
+
+extern cTtxtsubsConf globals;