[mythtv-commits] Ticket #9917: softblend OSD is displayed with wrong colors on powerpc

MythTV noreply at mythtv.org
Tue Jul 12 07:08:27 UTC 2011


#9917: softblend OSD is displayed with wrong colors on powerpc
----------------------------------------------+-------------------------
     Reporter:  kim@…                         |      Owner:  markk
         Type:  Patch - Bug Fix               |     Status:  new
     Priority:  minor                         |  Milestone:  unknown
    Component:  MythTV - Video/OSD Rendering  |    Version:  Unspecified
     Severity:  medium                        |   Keywords:  ppc
Ticket locked:  0                             |
----------------------------------------------+-------------------------
 Due to an endianness problem, components of the YUVA image are mixed up,
 which causes the OSD to be displayed wrongly (usually all red/pink).
 The trivial fix is to change:

 mythtv/libs/libmythtv/util-osd.cpp, line 246:

 {{{
 b1 = src1 + B_OI; b2 = b1 + 4; b3 = src2 + 0; b4 = b3 + 4;
 g1 = src1 + G_OI; g2 = g1 + 4; g3 = src2 + 1; g4 = g3 + 4;
 r1 = src1 + R_OI; r2 = r1 + 4; r3 = src2 + 2; r4 = r3 + 4;
 a1 = src1 + A_OI; a2 = a1 + 4; a3 = src2 + 3; a4 = a3 + 4;
 }}}
 into
 {{{
 b1 = src1 + B_OI; b2 = b1 + 4; b3 = src2 + B_OI; b4 = b3 + 4;
 g1 = src1 + G_OI; g2 = g1 + 4; g3 = src2 + G_OI; g4 = g3 + 4;
 r1 = src1 + R_OI; r2 = r1 + 4; r3 = src2 + R_OI; r4 = r3 + 4;
 a1 = src1 + A_OI; a2 = a1 + 4; a3 = src2 + A_OI; a4 = a3 + 4;
 }}}

 Changing this fixes the OSD display problem on linux ppc.
 Version 0.24, 0.24.1 and git head are affected.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9917>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list