Hi,
Sorry for posting on this old topic, but I followed the fix described by dom, and enabling the 32bpp framebuffer, I end with wrong colors for pictures in DirectFB.
I tried to update the config in a coherent way (see below), but certainly missed something...
My problem is clear in the color config returned by fbset (rgba 8/0,8/8,8/16,8/24), which is not ARGB as written in /etc/directfbrc, but I don't know how to fix that....
Can someone give me a hint?
(using Raspbian Jesssy and the firmware is up-to-date)
Code: Select all
# /boot/config.txt
framebuffer_width=1920
framebuffer_height=1080
framebuffer_depth=32
Code: Select all
# /etc/directfbrc
mode=1920x1080
depth=32
pixelformat=ARGB
Code: Select all
# /etc/fb.modes
mode "1920x1080-24p"
geometry 1920 1080 1920 1080 32
timings 13468 148 638 36 4 44 5
hsync high
vsync high
endmode
Code: Select all
# fbset -i
mode "1920x1080"
geometry 1920 1080 1920 1080 32
timings 0 0 0 0 0 0 0
rgba 8/0,8/8,8/16,8/24
endmode
Frame buffer device information:
Name : BCM2708 FB
Address : 0x4c7e1000
Size : 8294400
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 7680
Accelerator : No
Code: Select all
# surface creI guess that this is a ation for picture
desc.flags = DSDESC_WIDTH | DSDESC_HEIGHT | DSDESC_CAPS | DSDESC_PIXELFORMAT;
desc.width = pDisplay->layer_config.width;
desc.height = pDisplay->layer_config.height;
desc.caps = DSCAPS_FLIPPING;
desc.pixelformat = DSPF_ARGB;
DFBCHECK(pDisplay->dfb->CreateSurface(pDisplay->dfb, &desc, &pElem->surface));