diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-01-26 17:04:24 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-01-26 17:04:24 +0100 |
| commit | 7647e42f245ae741abd45fed11f416613e103e15 (patch) | |
| tree | a53fd996a4936f66fa817c909feab1b9f618ae58 /lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | |
| parent | e64a1d0b04ba2248d587f76976e77b7cab7aae91 (diff) | |
| download | enigma2-7647e42f245ae741abd45fed11f416613e103e15.tar.gz enigma2-7647e42f245ae741abd45fed11f416613e103e15.zip | |
allow separate configuration of aspect ratio
- used when viewing >16:9 content on 16:9 TV,
- used when viewing 4:3 content on 16:9 TV
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index 02fdf9a5..7149504a 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -293,6 +293,7 @@ class VideoHardware: is_widescreen = force_widescreen or config.av.aspect.value in ["16_9", "16_10"] is_auto = config.av.aspect.value == "auto" + policy2 = "policy" # use main policy if is_widescreen: if force_widescreen: @@ -300,6 +301,7 @@ class VideoHardware: else: aspect = {"16_9": "16:9", "16_10": "16:10"}[config.av.aspect.value] policy = {"pillarbox": "panscan", "panscan": "letterbox", "nonlinear": "nonlinear", "scale": "bestfit"}[config.av.policy_43.value] + policy2 = {"letterbox": "letterbox", "panscan": "panscan", "scale": "bestfit"}[config.av.policy_169.value] elif is_auto: aspect = "any" policy = "bestfit" @@ -312,10 +314,14 @@ class VideoHardware: else: wss = "auto" - print "-> setting aspect, policy, wss", aspect, policy, wss + print "-> setting aspect, policy, policy2, wss", aspect, policy, policy2, wss open("/proc/stb/video/aspect", "w").write(aspect) open("/proc/stb/video/policy", "w").write(policy) open("/proc/stb/denc/0/wss", "w").write(wss) + try: + open("/proc/stb/video/policy2", "w").write(policy2) + except IOError: + pass self.updateSlowblank() self.updateFastblank() |
