aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-10-01 21:28:31 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-10-01 21:28:31 +0200
commit6bd9700323d6f6f5bb5d7f97764d1091875cbdc1 (patch)
treeb64bb36d3bb7974d74983f54eacc892d061c7ac4 /lib/python/Components
parentb0ac904a84b223808c303f170888559b91c71e71 (diff)
downloadenigma2-6bd9700323d6f6f5bb5d7f97764d1091875cbdc1.tar.gz
enigma2-6bd9700323d6f6f5bb5d7f97764d1091875cbdc1.zip
show scaler sharpness in av setup and in video enhancement plugin
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/AVSwitch.py19
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())
+