X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c39e992eac597c341dfef198d1179f84efa0791e..06d7275867f5737235100f50f3ad7d5ec2f526fc:/lib/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py 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 e25ad38e..cde3930e --- 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,7 @@ 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.oldSplit = config.pep.split.value self.oldSharpness = config.pep.sharpness.value self.oldAuto_flesh = config.pep.auto_flesh.value @@ -90,7 +90,7 @@ 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.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) @@ -194,7 +194,7 @@ 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.splitEntry is not None: config.pep.split.setValue('off') if self.sharpnessEntry is not None: @@ -231,7 +231,7 @@ 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.splitEntry is not None: config.pep.split.setValue('off') if self.sharpnessEntry is not None: @@ -270,14 +270,14 @@ class VideoEnhancementPreview(Screen, ConfigListScreen): skin = """ - - - - - - - - """ + + + + + + + + """ def __init__(self, session, configEntry = None, oldSplitMode = None, maxValue = None): Screen.__init__(self, session) @@ -394,5 +394,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