diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-10-07 00:50:36 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-10-07 00:50:36 +0200 |
| commit | 0b06818dbb088f312e4b7c3099bde8adbb301124 (patch) | |
| tree | 5a5748b2d33606e91b90cdf228bac50d5fc9fdee /lib/python/Plugins/SystemPlugins/VideoEnhancement | |
| parent | 7e064d56b3b1fc640f3aff218840f537c8119e64 (diff) | |
| parent | 56e21b732a65d9b548f77167230223bb586e82c2 (diff) | |
| download | enigma2-0b06818dbb088f312e4b7c3099bde8adbb301124.tar.gz enigma2-0b06818dbb088f312e4b7c3099bde8adbb301124.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/VideoEnhancement')
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py | 20 |
1 files changed, 20 insertions, 0 deletions
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() |
