diff options
author | Johns <johns98@gmx.net> | 2012-02-13 14:13:24 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-13 14:13:24 +0100 |
commit | a98a4adc7eb3542ef246b10381863ae386d069a1 (patch) | |
tree | de753e15a71c942f2599f326cb0faebf5ba57916 /softhddevice.cpp | |
parent | f872f54e2a1429402ae1ba6768c2169443a81272 (diff) | |
download | vdr-plugin-softhddevice-a98a4adc7eb3542ef246b10381863ae386d069a1.tar.gz vdr-plugin-softhddevice-a98a4adc7eb3542ef246b10381863ae386d069a1.tar.bz2 |
Studio levels could be configured in setup menu.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index a579bd3..783bec4 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -62,6 +62,7 @@ static char ConfigMakePrimary; ///< config primary wanted static char ConfigHideMainMenuEntry; ///< config hide main menu entry static int ConfigVideoSkipLines; ///< config skip lines top/bottom +static int ConfigVideoStudioLevels; ///< config use studio levels /// config deinterlace static int ConfigVideoDeinterlace[RESOLUTIONS]; @@ -384,6 +385,7 @@ class cMenuSetupSoft:public cMenuSetupPage int MakePrimary; int HideMainMenuEntry; int SkipLines; + int StudioLevels; int Scaling[RESOLUTIONS]; int Deinterlace[RESOLUTIONS]; int SkipChromaDeinterlace[RESOLUTIONS]; @@ -453,6 +455,9 @@ cMenuSetupSoft::cMenuSetupSoft(void) SkipLines = ConfigVideoSkipLines; Add(new cMenuEditIntItem(tr("Skip lines top+bot (pixel)"), &SkipLines, 0, 64)); + StudioLevels = ConfigVideoStudioLevels; + Add(new cMenuEditBoolItem(tr("Use studio levels (vdpau only)"), + &StudioLevels, trVDR("no"), trVDR("yes"))); for (i = 0; i < RESOLUTIONS; ++i) { Add(SeparatorItem(resolution[i])); @@ -519,6 +524,8 @@ void cMenuSetupSoft::Store(void) SetupStore("SkipLines", ConfigVideoSkipLines = SkipLines); VideoSetSkipLines(ConfigVideoSkipLines); + SetupStore("StudioLevels", ConfigVideoStudioLevels = StudioLevels); + VideoSetStudioLevels(ConfigVideoStudioLevels); for (i = 0; i < RESOLUTIONS; ++i) { char buf[128]; @@ -1259,6 +1266,10 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value) VideoSetSkipLines(ConfigVideoSkipLines = atoi(value)); return true; } + if (!strcmp(name, "StudioLevels")) { + VideoSetStudioLevels(ConfigVideoStudioLevels = atoi(value)); + return true; + } for (i = 0; i < RESOLUTIONS; ++i) { char buf[128]; |