Clif Swiggett wrote: > Here's a mystery I was hoping someone might know how to solve. > > I'm running directfb on an arm9. When I run fbset it tells me the rgba > settings are 5,5,5,0. When I run a simple directfb application it > errors out reporting an Unsupported pixelformat of 5,6,5. Attached is a > console dump showing this. Anyone know why directfb things the > framebuffer is set to 5,6,5 or what I might do to fix this? > > Thanks for any help! > Clif > > =========console dump==================== > > # fbset > > mode "240x320-1" > # D: 0.150 MHz, H: 0.444 kHz, V: 1.333 Hz > geometry 240 320 240 320 16 > timings 6666240 16 21 7 5 61 1 > rgba 5/0,5/5,5/10,0/0 > endmode
That's BGR instead of RGB and not supported by DirectFB. > # ./fbtest2 > > ---------------------- DirectFB v0.9.24 --------------------- > (c) 2000-2002 convergence integrated media GmbH > (c) 2002-2004 convergence GmbH > ----------------------------------------------------------- > > (*) DirectFB/Core: Single Application Core. (2006-05-01 23:45) > (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 91)... > (!) DirectFB/FBDev: couldn't access /proc/bus/pci/devices! > --> No such file or directory > (*) Direct/Thread: Running 'PS/2 Input' (INPUT, 92)... > (!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:797] > (*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH) > (*) Direct/Thread: Running 'Linux Input' (INPUT, 93)... > (*) DirectFB/Input: adc-lh7 0.1 (convergence integrated media GmbH) > (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 94)... > (*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH) > (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence > integrated media GmbH) > (*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH) CSS return from > DirectFBCreate CSS return from SetCooperativeLevel CSS call > CreateSurface > (!) DirectFB/FBDev: Unsupported pixelformat: rgba 5/0, 6/5, 5/11, 0/0 > (16bit) DirectFB switches to 16bit if supported, but the format is BGR anyways. You can add DSPF_BGR16 if you like, but maybe you can just switch the channel order in hardware. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
