diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-10-05 20:42:44 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-10-05 20:42:44 +0200 |
| commit | 87f242184106eac9b58a27eb871d44170713c2c4 (patch) | |
| tree | b7c5d3134b43c943d497d0826ad95c7bf4523a7a /lib/python | |
| parent | aad3256fb995891065c9771bf2af8d3ad74527fc (diff) | |
| download | enigma2-87f242184106eac9b58a27eb871d44170713c2c4.tar.gz enigma2-87f242184106eac9b58a27eb871d44170713c2c4.zip | |
fix for older enigma2 versions
Diffstat (limited to 'lib/python')
| -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() |
