git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SystemPlugins/VideoEnhancement: - add support for dm500hd
[enigma2.git]
/
lib
/
python
/
Plugins
/
SystemPlugins
/
VideoEnhancement
/
VideoEnhancement.py
diff --git
a/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py
b/lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py
index f7c5cfb96b74a935dcbb0d714d853e7852b5021b..7db02556995026ffdbd18e0f9703ab166afd2037 100755
(executable)
--- a/
lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py
+++ b/
lib/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py
@@
-1,5
+1,5
@@
from enigma import eTimer
from enigma import eTimer
-from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection,
ConfigYesNo
+from Components.config import config, ConfigSubsection, ConfigSlider, ConfigSelection,
ConfigYesNo, NoSave
from Tools.CList import CList
from Tools.HardwareInfo import HardwareInfo
import os
from Tools.CList import CList
from Tools.HardwareInfo import HardwareInfo
import os
@@
-18,6
+18,8
@@
class VideoEnhancement:
hw_type = HardwareInfo().get_device_name()
config.pep = ConfigSubsection()
hw_type = HardwareInfo().get_device_name()
config.pep = ConfigSubsection()
+ config.pep.configsteps = NoSave(ConfigSelection(choices=[1, 5, 10, 25], default = 1))
+
def setContrast(config):
myval = int(config.value*256)
try:
def setContrast(config):
myval = int(config.value*256)
try:
@@
-116,7
+118,7
@@
class VideoEnhancement:
config.pep.digital_contour_removal = ConfigSlider(default=0, limits=(0,5))
config.pep.digital_contour_removal.addNotifier(setDigital_contour_removal)
config.pep.digital_contour_removal = ConfigSlider(default=0, limits=(0,5))
config.pep.digital_contour_removal.addNotifier(setDigital_contour_removal)
- if hw_type
== 'dm8000'
:
+ if hw_type
in ( 'dm8000', 'dm500hd' )
:
def setSplitMode(config):
try:
print "--> setting splitmode to:",str(config.value)
def setSplitMode(config):
try:
print "--> setting splitmode to:",str(config.value)
@@
-217,7
+219,7
@@
class VideoEnhancement:
if config.usage.setup_level.index >= 2: # expert+
hw_type = HardwareInfo().get_device_name()
if config.usage.setup_level.index >= 2: # expert+
hw_type = HardwareInfo().get_device_name()
- if hw_type
== 'dm8000' or hw_type == 'dm800'
:
+ if hw_type
in ( 'dm8000', 'dm800', 'dm500hd' )
:
video_enhancement = VideoEnhancement()
if video_enhancement.firstRun == True:
video_enhancement.setConfiguredValues()
video_enhancement = VideoEnhancement()
if video_enhancement.firstRun == True:
video_enhancement.setConfiguredValues()