Changeset 3227 for ipk/source


Ignore:
Timestamp:
May 9, 2010, 10:33:28 AM (16 years ago)
Author:
civer
Message:

[IPK /AutoResolution/plugin.py]

  • added new py THX husky
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution/plugin.py

    r2035 r3227  
    3333config.plugins.autoresolution.deinterlacer_progressive = ConfigSelection(default = "auto", choices =
    3434                [("off", _("off")), ("auto", _("auto")), ("on", _("on")), ("bob", _("bob"))])
    35 config.plugins.autoresolution.delay_switch_mode = ConfigSelection(default = "6000", choices = [
    36                 ("1000", "1 " + _("second")), ("2000", "2 " + _("seconds")), ("3000", "3 " + _("seconds")),
     35config.plugins.autoresolution.delay_switch_mode = ConfigSelection(default = "1", choices = [
     36                ("1", "off"), ("1000", "1 " + _("second")), ("2000", "2 " + _("seconds")), ("3000", "3 " + _("seconds")),
    3737                ("4000", "4 " + _("seconds")), ("5000", "5 " + _("seconds")), ("6000", "6 " + _("seconds")), ("7000", "7 " + _("seconds")),
    3838                ("8000", "8 " + _("seconds")), ("9000", "9 " + _("seconds")), ("10000", "10 " + _("seconds"))])
    39 ####### Husky default delay set to 6000
     39####### add 1ms (delay= off)
     40####### Husky default delay set to 1 (delay=off)
    4041
    4142def setDeinterlacer(mode):
     
    159160                        framerate = info and info.getInfo(iServiceInformation.sFrameRate)
    160161
    161                         if height != -1 and width != -1 and framerate != -1:
     162                        if height > 0 and width > 0 and framerate > 0:
    162163                                frate = str(framerate)[:2] #fallback?
    163164                                if frqdic.has_key(framerate):
     
    166167                                prog = progressive == 1 and 'p' or 'i'
    167168
    168                                 if (height >= 900 or width >= 1600) and frate in ('24', '25', '30') and prog == 'p':            # 1080p content
     169                                if (height >= 900 or width >= 1600) and frate in ('24', '25', '30') and prog == 'p':    # 1080p content
    169170                                        new_mode = 'p1080_%s' % frate
    170171######## HUSKY NEW 720p
    171                                 elif (height > 576 or width > 720) and frate == '50' :          # 720p 50Hz detection
     172                                elif (height > 576 or width > 720) and frate == '50' :                          # 720p 50Hz detection
    172173                                                prog = 'p'
    173174                                                new_mode = 'hd_%s' % prog
     
    182183                                        new_mode = 'hd_%s' % prog
    183184
    184                                 if  progressive == 1 or prog == 'p':    ####### HUSKY or prog added
     185                                if  progressive == 1 or prog == 'p':                                            ####### HUSKY or prog added
    185186                                        setDeinterlacer(config.plugins.autoresolution.deinterlacer_progressive.value)
    186187
Note: See TracChangeset for help on using the changeset viewer.