maybe some contruct like for both policy and policy2:
policy_choices = open("/proc/stb/video/policy_choices").readline().split()
...
if "auto" in policy_choices:
...
Edited by daddelfalk, 31 December 2011 - 14:53.
Posted 31 December 2011 - 14:55
Hi,
maybe some contruct like for both policy and policy2:
policy_choices = open("/proc/stb/video/policy_choices").readline().split()
...
if "auto" in policy_choices:
...
Posted 31 December 2011 - 15:21
Made whole patch.
Posted 31 December 2011 - 15:27
Posted 31 December 2011 - 16:29
I also like that.yes, i tried apply this patch. If i try set Auto and zap to channel, where is 16:9 broadcasted as 4:3 ( => black is left, top, right, bottom), picture was stretched horizontaly only - it seems, stretched are only sides of picture, centrer of picture is well. Never saw before.
GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K
Posted 31 December 2011 - 17:52
@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB
Posted 31 December 2011 - 18:15
While we are talking auto switching letterbox, something crossed my mind:
Teletext will work a lot quicker if you press the txt button and if resolution is 1920x1080 (HD) it changes to 704x576 and if teletext ends switches back to 1920x1080
Posted 31 December 2011 - 18:20
Hi,
attached Patch introduces support for checking, if Hardware is capable of "auto" Mode. And removed "nonlinear" and "policy" Selections from 16:9 policy2 due to Pieter's explaination.
policychoices = [] if 'auto' supported: policychoices.append([auto: _("Auto")]) policychoices.append([.......]) config.av.policy_169 = ConfigSelection(choices = policychoices)(not sure about the exact syntax of appending lists, I'm not a native python speaker)
Edited by pieterg, 31 December 2011 - 18:21.
Posted 1 January 2012 - 19:59
av_policy = {} if os.path.exists("/proc/stb/video/policy2_choices") and "auto" in open("/proc/stb/video/policy2_choices").readline(): # TRANSLATORS: (aspect ratio policy: auto try to display as fullscreen, even if this breaks the aspect. av_policy["auto"] = _("Auto") # TRANSLATORS: (aspect ratio policy: black bars on top/bottom) in doubt, keep english term. av_policy["letterbox"] = _("Letterbox") # TRANSLATORS: (aspect ratio policy: cropped content on left/right) in doubt, keep english term av_policy["panscan"] = _("Pan&Scan") # TRANSLATORS: (aspect ratio policy: display as fullscreen, even if this breaks the aspect) av_policy["scale"] = _("Just Scale") config.av.policy_169 = ConfigSelection( choices=av_policy, default="letterbox" ) av_policy = {} if os.path.exists("/proc/stb/video/policy_choices") and "auto" in open("/proc/stb/video/policy_choices").readline(): # TRANSLATORS: (aspect ratio policy: auto try to display as fullscreen, even if this breaks the aspect. av_policy["auto"] = _("Auto") # TRANSLATORS: (aspect ratio policy: black bars on left/right) in doubt, keep english term. av_policy["pillarbox"] = _("Pillarbox") # TRANSLATORS: (aspect ratio policy: cropped content on left/right) in doubt, keep english term av_policy["panscan"] = _("Pan&Scan") # TRANSLATORS: (aspect ratio policy: display as fullscreen, with stretching the left/right) av_policy["nonlinear"] = _("Nonlinear") # TRANSLATORS: (aspect ratio policy: display as fullscreen, even if this breaks the aspect) av_policy["scale"] = _("Just Scale") config.av.policy_43 = ConfigSelection(choices=av_policy, default = "pillarbox") del av_policy
Posted 7 January 2012 - 11:05
Posted 7 January 2012 - 11:33
0 members, 1 guests, 0 anonymous users