Conversion from RGB555 to BGR555 is not as simple as swapping high and
low bytes of a word.
Your example talks about RGB565.


Now I dont see diff between those formats ( about conversion )... But I'll
be thinking...


I solved  problem like this.
> http://mail.directfb.org/pipermail/directfb-users/2007-April/002828.html

The patch you refer to is not a diff, so it's hard to understand what
did you add/remove to support your system.


To support your system you must only write your own functions to store/load
data.
( See lib/direct/util.h file. ) I named the functions as load_le16() /
store_le16()
There you should convert RGB555 to BGR555 and back.( two commands for AT32
as I know )
And it's all....

Ooops, my patch hasn't a support of RGB555 yet...  :-(
I'll do it within next few days.


But if you just replaced the memory access functions, then this seems a
bit hackish to me ;-)  But then again your situation is a bit different
from mine.


Main property of my method is that other code ( need RGB555 ) will be worked
with AT32AP ! And you can use your code on other platforms.

--
Best Regards
Nikita Egorov
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to