diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2009-10-06 09:37:50 +0200 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2009-10-06 09:37:50 +0200 |
| commit | 56e21b732a65d9b548f77167230223bb586e82c2 (patch) | |
| tree | 64a9172747b01ebe5cb5f3b970ce0bdc5d0bacd3 /lib/python/Components | |
| parent | 1afe4083af2355924c810b478f0655d695e50c45 (diff) | |
| parent | 29eeffa0512e1ea22f1bbb2ae486c58e2e529ff6 (diff) | |
| download | enigma2-56e21b732a65d9b548f77167230223bb586e82c2.tar.gz enigma2-56e21b732a65d9b548f77167230223bb586e82c2.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index 8f4255b8..bc2a66a4 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -1,7 +1,8 @@ from config import config, ConfigSlider, ConfigSelection, ConfigYesNo, \ - ConfigEnableDisable, ConfigSubsection, ConfigBoolean, ConfigNumber + ConfigEnableDisable, ConfigSubsection, ConfigBoolean, ConfigNumber, ConfigNothing, NoSave from enigma import eAVSwitch, getDesktop from SystemInfo import SystemInfo +from os import path as os_path class AVSwitch: def setInput(self, input): @@ -166,3 +167,19 @@ def InitAVSwitch(): if can_osd_alpha: config.av.osd_alpha = ConfigSlider(default=255, limits=(0,255)) config.av.osd_alpha.addNotifier(setAlpha) + + 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) + open("/proc/stb/vmpeg/0/pep_apply", "w").write("1") + except IOError: + print "couldn't write pep_scaler_sharpness" + + config.av.scaler_sharpness = ConfigSlider(default=13, limits=(0,26)) + config.av.scaler_sharpness.addNotifier(setScaler_sharpness) + else: + config.av.scaler_sharpness = NoSave(ConfigNothing()) + |
