Hello to everybody,

I have this evaluation board at91sam9263 from Atmel and few weeks/ month the custom kernel is running on it.
Everything works fine (USB, Ethernet, Sound, etc).

I am also able to view pictures on the display and also I can draw rectangles and text via directfb on the screen, but unfortunately I have a problem to display the correct colors.

If I try to view a picture via the command fbv or df_databuffer the colors red and blue are swapped, the same holds true for an video via mplayer (with the option -vo fbdev2 ). But when I convert the same png file to a ppm and exchange it with the tux boot logo, this will displayed correct in RGB colors. (But only during this boot process is this logo visible and correct)

And also a strange thing is that when I write by myself (via a small C-Program) values to the device (dev/fb0 ) I get the colors red, green and blue but in a different order. Here is red, red (0xF800) but green is blue (0x07E0) and blue is green (0x001F) and I am writing those hex values directly to dev/fb0.

Also research through the internet was unsuccessful because not many people facing the same problem. I have read some workarounds for RGB24 to BGR24 for a directfb patch, but in my case I use RGB16 and all the attempts to change the RGB to BGR fails. Maybe also a problem is that I am not able to change the settings from directfb everything will be canceled and directfb falls back to its default RGB16 setting.

Sorry, that I am new to this topic, maybe someone can give me a hint or a good advice.
Thanks a lot.

Best regards
Sven
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to