#9646 BLOC 1.5-F11: Switch to 24bpp

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 9 20:07:48 EST 2009


#9646: Switch to 24bpp
-------------------------------------------+--------------------------------
           Reporter:  cjb                  |       Owner:  wmb at firmworks.com
               Type:  defect               |      Status:  new              
           Priority:  blocker              |   Milestone:  1.5-F11          
          Component:  ofw - open firmware  |     Version:  not specified    
         Resolution:                       |    Keywords:                   
        Next_action:  code                 |    Verified:  0                
Deployment_affected:                       |   Blockedby:                   
           Blocking:                       |  
-------------------------------------------+--------------------------------

Comment(by wmb at firmworks.com):

 bootanim could do the "expand-on-the-fly" trick by replacing the memcpy on
 line 26 of plymouth.c .  Change:

 memcpy (&fb[FB_WIDTH*line + first_col], &info[DATA], len*2);

 to something line

 {{{
 #define TOARGB(s)  (0xff070307 | (((s) >> 11) << 19) | (((s) << 27) >> 24)
 | (((s) << 27) >> 10))
   u_short *src = &info[DATA];
   u_long dst = &fb[FB_WIDTH*line + first_col];
   for (i = 0; i < len; i++) {
       pix16 = src[i];
      dst[i] = TOARGB(pix16);
    }
 }}}

 A similar change might need to happen for the initial copy of the file
 into the frame buffer.

-- 
Ticket URL: <http://dev.laptop.org/ticket/9646#comment:7>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list