X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FVideoEnhancement%2FVideoEnhancement.py;fp=lib%2Fpython%2FPlugins%2FSystemPlugins%2FVideoEnhancement%2FVideoEnhancement.py;h=45e129c38bc9cc2284b175973ae1081ad1ea4434;hp=4ba495824e6c049712707b5efaa61be142611829;hb=092500af8858006398cff1fed1eff882daa89b4e;hpb=402ce55c8a079176ef903c94e158310e08530e48 diff --git a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py index 4ba4958..45e129c 100755 --- a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py +++ b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py @@ -1,4 +1,4 @@ -from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection, ConfigNothing, NoSave +from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection, ConfigBoolean, ConfigNothing, NoSave from Tools.CList import CList from os import path as os_path # The "VideoEnhancement" is the interface to /proc/stb/vmpeg/0. @@ -258,6 +258,40 @@ class VideoEnhancement: else: config.av.scaler_sharpness = NoSave(ConfigNothing()) + if os_path.exists("/proc/stb/vmpeg/0/pep_scaler_vertical_dejagging"): + def setScaler_vertical_dejagging(configElement): + myval = configElement.value and "enable" or "disable" + try: + print "--> setting scaler_vertical_dejagging to: %s" % myval + open("/proc/stb/vmpeg/0/pep_scaler_vertical_dejagging", "w").write(myval) + except IOError: + print "couldn't write pep_scaler_vertical_dejagging." + + if not VideoEnhancement.firstRun: + self.setConfiguredValues() + + config.pep.scaler_vertical_dejagging = ConfigBoolean(default=False, descriptions = {False: "Disable", True: "Enable"} ) + config.pep.scaler_vertical_dejagging.addNotifier(setScaler_vertical_dejagging) + else: + config.pep.scaler_vertical_dejagging = NoSave(ConfigNothing()) + + if os_path.exists("/proc/stb/vmpeg/0/smooth"): + def setSmooth(configElement): + myval = configElement.value and "enable" or "disable" + try: + print "--> setting smooth to: %s" % myval + open("/proc/stb/vmpeg/0/smooth", "w").write(myval) + except IOError: + print "couldn't write smooth." + + if not VideoEnhancement.firstRun: + self.setConfiguredValues() + + config.pep.smooth = ConfigBoolean(default=False, descriptions = {False: "Disable", True: "Enable"} ) + config.pep.smooth.addNotifier(setSmooth) + else: + config.pep.smooth = NoSave(ConfigNothing()) + if VideoEnhancement.firstRun: self.setConfiguredValues()