X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FVideoEnhancement%2Fplugin.py;h=a568ac17f99696d094a15f323391093e22586c8c;hb=HEAD;hp=0276e04b7385c95e5998aa8ad796e129a4262a5a;hpb=c1e8c62168f826c2b559340fd94c04c576339820;p=vuplus_dvbapp
diff --git a/lib/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py b/lib/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py
old mode 100755
new mode 100644
index 0276e04..a568ac1
--- a/lib/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py
@@ -11,19 +11,19 @@ from os import path as os_path
class VideoEnhancementSetup(Screen, ConfigListScreen):
skin = """
-
-
-
-
-
-
-
-
-
-
-
-
- """
+
+
+
+
+
+
+
+
+
+
+
+
+ """
def __init__(self, session):
Screen.__init__(self, session)
@@ -66,6 +66,8 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
self.oldMosquito_noise = config.pep.mosquito_noise_reduction.value
self.oldDigital_contour = config.pep.digital_contour_removal.value
self.oldScaler_sharpness = config.av.scaler_sharpness.value
+ self.oldScaler_vertical_dejagging = config.pep.scaler_vertical_dejagging.value
+ self.oldSmooth = config.pep.smooth.value
self.oldSplit = config.pep.split.value
self.oldSharpness = config.pep.sharpness.value
self.oldAuto_flesh = config.pep.auto_flesh.value
@@ -91,6 +93,8 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
self.hueEntry = addToConfigList(_("Hue"), config.pep.hue)
self.brightnessEntry = addToConfigList(_("Brightness"), config.pep.brightness)
self.scaler_sharpnessEntry = addToConfigList(_("Scaler sharpness"), config.av.scaler_sharpness)
+ self.scaler_vertical_dejaggingEntry = addToConfigList(_("Scaler vertical dejagging"), config.pep.scaler_vertical_dejagging)
+ self.smoothEntry = addToConfigList(_("Smooth"), config.pep.smooth)
self.splitEntry = addToConfigList(_("Split preview mode"), config.pep.split, True)
add_to_xtdlist = self.splitEntry is not None
self.sharpnessEntry = addToConfigList(_("Sharpness"), config.pep.sharpness, add_to_xtdlist)
@@ -120,6 +124,8 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
current = self["config"].getCurrent()
if current == self.splitEntry:
ConfigListScreen.keyLeft(self)
+ elif (current == self.scaler_vertical_dejaggingEntry) or (current == self.smoothEntry):
+ ConfigListScreen.keyLeft(self)
elif current != self.splitEntry and current in self.xtdlist:
self.previewlist = [
current,
@@ -138,6 +144,8 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
current = self["config"].getCurrent()
if current == self.splitEntry:
ConfigListScreen.keyRight(self)
+ elif (current == self.scaler_vertical_dejaggingEntry) or (current == self.smoothEntry):
+ ConfigListScreen.keyRight(self)
elif current != self.splitEntry and current in self.xtdlist:
self.previewlist = [
current,
@@ -152,6 +160,7 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
maxvalue = current[1].max
self.session.openWithCallback(self.PreviewClosed, VideoEnhancementPreview, configEntry = self.previewlist, oldSplitMode = None, maxValue = maxvalue)
+
def confirm(self, confirmed):
if not confirmed:
print "not confirmed"
@@ -195,6 +204,10 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
config.pep.digital_contour_removal.setValue(self.oldDigital_contour)
if self.scaler_sharpnessEntry is not None:
config.av.scaler_sharpness.setValue(self.oldScaler_sharpness)
+ if self.scaler_vertical_dejaggingEntry is not None:
+ config.pep.scaler_vertical_dejagging.setValue(self.oldScaler_vertical_dejagging)
+ if self.smoothEntry is not None:
+ config.pep.smooth.setValue(self.oldSmooth)
if self.splitEntry is not None:
config.pep.split.setValue('off')
if self.sharpnessEntry is not None:
@@ -232,6 +245,10 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
config.pep.digital_contour_removal.setValue(0)
if self.scaler_sharpnessEntry is not None:
config.av.scaler_sharpness.setValue(13)
+ if self.scaler_vertical_dejaggingEntry is not None:
+ config.pep.scaler_vertical_dejagging.setValue(False)
+ if self.smoothEntry is not None:
+ config.pep.smooth.setValue(False)
if self.splitEntry is not None:
config.pep.split.setValue('off')
if self.sharpnessEntry is not None:
@@ -270,14 +287,14 @@ class VideoEnhancementPreview(Screen, ConfigListScreen):
skin = """
-
-
-
-
-
-
-
- """
+
+
+
+
+
+
+
+ """
def __init__(self, session, configEntry = None, oldSplitMode = None, maxValue = None):
Screen.__init__(self, session)
@@ -394,5 +411,5 @@ def startSetup(menuid):
def Plugins(**kwargs):
list = []
if config.usage.setup_level.index >= 2 and os_path.exists("/proc/stb/vmpeg/0/pep_apply"):
- list.append(PluginDescriptor(name=_("Videoenhancement Setup"), description=_("Advanced Video Enhancement Setup"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup))
+ list.append(PluginDescriptor(name=_("Videoenhancement Setup"), description=_("Advanced Video Enhancement Setup"), where = PluginDescriptor.WHERE_MENU, needsRestart = False, fnc=startSetup))
return list