Merge branch 'experimental' into vuplus_sum_exper
authorikseong <ikseong@vuplus>
Tue, 29 Jun 2010 10:06:17 +0000 (19:06 +0900)
committerikseong <ikseong@vuplus>
Tue, 29 Jun 2010 10:06:17 +0000 (19:06 +0900)
Conflicts:

lib/dvb/epgcache.cpp
lib/dvb/frontend.cpp
lib/dvb/idvb.h
lib/gdi/lcd.cpp
lib/python/Components/Converter/TemplatedMultiContent.py
lib/python/Components/NimManager.py
lib/python/Components/Renderer/Listbox.py
lib/python/Screens/Satconfig.py
lib/python/Screens/ServiceScan.py
lib/python/Screens/Subtitles.py
po/nl.po

14 files changed:
1  2 
RecordTimer.py
configure.ac
data/menu.xml
data/skin.xml
lib/dvb/dvb.cpp
lib/dvb/frontend.cpp
lib/gdi/font.cpp
lib/gdi/glcddc.cpp
lib/gdi/lcd.cpp
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
lib/python/Screens/InfoBarGenerics.py
lib/python/Screens/NetworkSetup.py
lib/python/Screens/ServiceScan.py
lib/python/enigma_python.i

diff --cc RecordTimer.py
Simple merge
diff --cc configure.ac
Simple merge
diff --cc data/menu.xml
Simple merge
diff --cc data/skin.xml
Simple merge
diff --cc lib/dvb/dvb.cpp
index 4acd385,40d4418..059d417
mode 100755,100644..100755
Simple merge
index 2a2973a,a593cfa..096705e
mode 100755,100644..100755
diff --cc lib/gdi/lcd.cpp
index c8560ac,a953ef0..9cb657c
mode 100755,100644..100755
@@@ -141,45 -176,52 +176,55 @@@ eDBoxLCD *eDBoxLCD::getInstance(
  
  void eDBoxLCD::update()
  {
-       if (!is_oled || is_oled == 2)
 +#ifdef BUILD_VUPLUS /* ikseong  */
 +      return ;
 +#endif
+       if (lcdfd >= 0)
        {
-               unsigned char raw[132*8];
-               int x, y, yy;
-               for (y=0; y<8; y++)
+               if (!is_oled || is_oled == 2)
                {
-                       for (x=0; x<132; x++)
+                       unsigned char raw[132*8];
+                       int x, y, yy;
+                       for (y=0; y<8; y++)
                        {
-                               int pix=0;
-                               for (yy=0; yy<8; yy++)
+                               for (x=0; x<132; x++)
                                {
-                                       pix|=(_buffer[(y*8+yy)*132+x]>=108)<<yy;
+                                       int pix=0;
+                                       for (yy=0; yy<8; yy++)
+                                       {
+                                               pix|=(_buffer[(y*8+yy)*132+x]>=108)<<yy;
+                                       }
+                                       raw[y*132+x]=(pix^inverted);
                                }
-                               raw[y*132+x]=(pix^inverted);
                        }
-               }
-               if (lcdfd >= 0)
                        write(lcdfd, raw, 132*8);
-       } else
-       {
-               unsigned char raw[64*64];
-               int x, y;
-               memset(raw, 0, 64*64);
-               for (y=0; y<64; y++)
+               }
+               else if (is_oled == 3) {
+                       FILE *f = fopen("/tmp/bla", "w+");
+                       if (f) {
+                               fwrite(_buffer, _stride * res.height(), 1, f);
+                               fclose(f);
+                       }
+                       write(lcdfd, _buffer, _stride * res.height());
+               }
+               else
                {
-                       int pix=0;
-                       for (x=0; x<128 / 2; x++)
+                       unsigned char raw[64*64];
+                       int x, y;
+                       memset(raw, 0, 64*64);
+                       for (y=0; y<64; y++)
                        {
-                               pix = (_buffer[y*132 + x * 2 + 2] & 0xF0) |(_buffer[y*132 + x * 2 + 1 + 2] >> 4);
-                               if (inverted)
-                                       pix = 0xFF - pix;
-                               raw[y*64+x] = pix;
+                               int pix=0;
+                               for (x=0; x<128 / 2; x++)
+                               {
+                                       pix = (_buffer[y*132 + x * 2 + 2] & 0xF0) |(_buffer[y*132 + x * 2 + 1 + 2] >> 4);
+                                       if (inverted)
+                                               pix = 0xFF - pix;
+                                       raw[y*64+x] = pix;
+                               }
                        }
-               }
-               if (lcdfd >= 0)
                        write(lcdfd, raw, 64*64);
+               }
        }
  }
  
@@@ -811,13 -822,13 +822,13 @@@ class AdapterSetupConfiguration(Screen
  
        def loadDescription(self):
                if self["menulist"].getCurrent()[1] == 'edit':
 -                      self["description"].setText(_("Edit the network configuration of your Dreambox.\n" ) + self.oktext )
 +                      self["description"].setText(_("Edit the network configuration of your STB.\n" ) + self.oktext )
                if self["menulist"].getCurrent()[1] == 'test':
 -                      self["description"].setText(_("Test the network configuration of your Dreambox.\n" ) + self.oktext )
 +                      self["description"].setText(_("Test the network configuration of your STB.\n" ) + self.oktext )
                if self["menulist"].getCurrent()[1] == 'dns':
 -                      self["description"].setText(_("Edit the Nameserver configuration of your Dreambox.\n" ) + self.oktext )
 +                      self["description"].setText(_("Edit the Nameserver configuration of your STB.\n" ) + self.oktext )
                if self["menulist"].getCurrent()[1] == 'scanwlan':
-                       self["description"].setText(_("Scan your network for wireless Access Points and connect to them using your selected wireless device.\n" ) + self.oktext )
+                       self["description"].setText(_("Scan your network for wireless access points and connect to them using your selected wireless device.\n" ) + self.oktext )
                if self["menulist"].getCurrent()[1] == 'wlanstatus':
                        self["description"].setText(_("Shows the state of your wireless LAN connection.\n" ) + self.oktext )
                if self["menulist"].getCurrent()[1] == 'lanrestart':
@@@ -36,22 -35,8 +36,9 @@@ class ServiceScan(Screen)
                        self.close()
        
        def cancel(self):
 +              self.resetTimeout()
                self.close()
                
-       def setTimeout(self):
-               try:
-                       self.oldtimeoutvalue = open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "r").readline()
-                       open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "w").write("0")
-               except:
-                       print "[info] no /sys/module/dvb_core/parameters/dvb_shutdown_timeout available"                
-               
-       def resetTimeout(self):
-               try:
-                       open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "w").write(self.oldtimeoutvalue)
-               except:
-                       print "[info] no /sys/module/dvb_core/parameters/dvb_shutdown_timeout available"
-       
        def __init__(self, session, scanList):
                Screen.__init__(self, session)
                
@@@ -83,4 -66,4 +68,4 @@@
  
        def createSummary(self):
                print "ServiceScanCreateSummary"
--              return ServiceScanSummary
++              return ServiceScanSummary