[Openchrome-users] [openChrome] #284: XV_COLORKEY handling issue
OpenChrome Trac
trac
Mon Mar 9 04:52:16 PDT 2009
#284: XV_COLORKEY handling issue
--------------------+-------------------------------------------------------
Reporter: kjhelm1 | Owner: somebody
Type: defect | Status: new
Priority: minor | Component: xv
Version: | Keywords:
Blocking: | Blockedby:
--------------------+-------------------------------------------------------
Debian Lenny's Totem Movie Player (2.22.2) doesn't work with openchrome's
xv. I've pinpointed the problem to XV_COLORKEY attribute handling.
I'm using 16-bit color depth, but xvinfo lists:
"XV_COLORKEY" (range 0 to 16777215)
client settable attribute
client gettable attribute (current value is 2081)
The allowed range is for 24-bit depth (shouldn't it be 0 to 65535?). The
current value 2081 is for 16-bit depth, which means 1 for each of R, G, B.
Totem turns XV_AUTOPAINT_COLORKEY on and sets XV_COLORKEY to 0x010203
(66051). Apparently totem thinks the bit depth is 24 bits. And 66051 is
certainly in the allowed range. However, the picture is not visible with
these values. If I use xvattr to manually set the colorkey value to
anything in inside 0..65535 range the picture becomes visible, but
anything above 65535 and the picture disappears.
It may be that the convention for XV_COLORKEY is that it's always supposed
to be 24 bits. In that case openchrome should internally convert the key
to 16-bits. If that is not the convention and the colorkey is supposed to
be in the actual color depth of the display, then this is actually a totem
bug. The attribute range being 0..16777215 remains an openchrome bug in
either case.
--
Ticket URL: <http://www.openchrome.org/trac/ticket/284>
openChrome <http://www.openchrome.org/>
The openChrome project
More information about the Openchrome-users
mailing list