X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FVideoEnhancement%2Fplugin.py;h=a568ac17f99696d094a15f323391093e22586c8c;hb=HEAD;hp=e25ad38e44eaaed77151a2749f504f64de281710;hpb=c39e992eac597c341dfef198d1179f84efa0791e;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 e25ad38..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)
@@ -65,7 +65,9 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
self.oldBlock_noise = config.pep.block_noise_reduction.value
self.oldMosquito_noise = config.pep.mosquito_noise_reduction.value
self.oldDigital_contour = config.pep.digital_contour_removal.value
- self.oldScaler_sharpness = config.pep.scaler_sharpness.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
@@ -90,7 +92,9 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
self.saturationEntry = addToConfigList(_("Saturation"), config.pep.saturation)
self.hueEntry = addToConfigList(_("Hue"), config.pep.hue)
self.brightnessEntry = addToConfigList(_("Brightness"), config.pep.brightness)
- self.scaler_sharpnessEntry = addToConfigList(_("Scaler sharpness"), config.pep.scaler_sharpness)
+ 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"
@@ -194,7 +203,11 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
if self.digital_contour_removalEntry is not None:
config.pep.digital_contour_removal.setValue(self.oldDigital_contour)
if self.scaler_sharpnessEntry is not None:
- config.pep.scaler_sharpness.setValue(self.oldScaler_sharpness)
+ 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:
@@ -231,7 +244,11 @@ class VideoEnhancementSetup(Screen, ConfigListScreen):
if self.digital_contour_removalEntry is not None:
config.pep.digital_contour_removal.setValue(0)
if self.scaler_sharpnessEntry is not None:
- config.pep.scaler_sharpness.setValue(13)
+ 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