From: ghost Date: Mon, 5 Oct 2009 18:43:43 +0000 (+0200) Subject: Merge branch 'master' of git.opendreambox.org:/git/enigma2 X-Git-Tag: 2.6.0~46^2 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/29eeffa0512e1ea22f1bbb2ae486c58e2e529ff6?hp=5f565fabd83bad38dbd5d79e881743c0fb29dde1 Merge branch 'master' of git.opendreambox.org:/git/enigma2 --- diff --git a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py index b18f5595..4ba49582 100755 --- a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py +++ b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py @@ -238,6 +238,26 @@ class VideoEnhancement: else: config.pep.dynamic_contrast = NoSave(ConfigNothing()) + try: + x = config.av.scaler_sharpness.value + except KeyError: + if os_path.exists("/proc/stb/vmpeg/0/pep_scaler_sharpness"): + def setScaler_sharpness(config): + myval = int(config.value) + try: + print "--> setting scaler_sharpness to: %0.8X" % myval + open("/proc/stb/vmpeg/0/pep_scaler_sharpness", "w").write("%0.8X" % myval) + except IOError: + print "couldn't write pep_scaler_sharpness." + + if not VideoEnhancement.firstRun: + self.setConfiguredValues() + + config.av.scaler_sharpness = ConfigSlider(default=13, limits=(0,26)) + config.av.scaler_sharpness.addNotifier(setScaler_sharpness) + else: + config.av.scaler_sharpness = NoSave(ConfigNothing()) + if VideoEnhancement.firstRun: self.setConfiguredValues()