Changeset 3227
- Timestamp:
- May 9, 2010, 10:33:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/system_autoresolution_1_25/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution/plugin.py
r2035 r3227 33 33 config.plugins.autoresolution.deinterlacer_progressive = ConfigSelection(default = "auto", choices = 34 34 [("off", _("off")), ("auto", _("auto")), ("on", _("on")), ("bob", _("bob"))]) 35 config.plugins.autoresolution.delay_switch_mode = ConfigSelection(default = " 6000", choices = [36 ("1 000", "1 " + _("second")), ("2000", "2 " + _("seconds")), ("3000", "3 " + _("seconds")),35 config.plugins.autoresolution.delay_switch_mode = ConfigSelection(default = "1", choices = [ 36 ("1", "off"), ("1000", "1 " + _("second")), ("2000", "2 " + _("seconds")), ("3000", "3 " + _("seconds")), 37 37 ("4000", "4 " + _("seconds")), ("5000", "5 " + _("seconds")), ("6000", "6 " + _("seconds")), ("7000", "7 " + _("seconds")), 38 38 ("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) 40 41 41 42 def setDeinterlacer(mode): … … 159 160 framerate = info and info.getInfo(iServiceInformation.sFrameRate) 160 161 161 if height != -1 and width != -1 and framerate != -1:162 if height > 0 and width > 0 and framerate > 0: 162 163 frate = str(framerate)[:2] #fallback? 163 164 if frqdic.has_key(framerate): … … 166 167 prog = progressive == 1 and 'p' or 'i' 167 168 168 if (height >= 900 or width >= 1600) and frate in ('24', '25', '30') and prog == 'p': # 1080p content169 if (height >= 900 or width >= 1600) and frate in ('24', '25', '30') and prog == 'p': # 1080p content 169 170 new_mode = 'p1080_%s' % frate 170 171 ######## HUSKY NEW 720p 171 elif (height > 576 or width > 720) and frate == '50' : # 720p 50Hz detection172 elif (height > 576 or width > 720) and frate == '50' : # 720p 50Hz detection 172 173 prog = 'p' 173 174 new_mode = 'hd_%s' % prog … … 182 183 new_mode = 'hd_%s' % prog 183 184 184 if progressive == 1 or prog == 'p': ####### HUSKY or prog added185 if progressive == 1 or prog == 'p': ####### HUSKY or prog added 185 186 setDeinterlacer(config.plugins.autoresolution.deinterlacer_progressive.value) 186 187
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)