I figure I can't just fix the offsets. case 24: if (dfb_fbdev_compatible_format( var, 0, 8, 8, 8, 0, 16, 8, 0 )) return DSPF_RGB24;
The return value appears to return the bit depth and format. I would assume a DSPF_BGR24 needs to be defined? If so what other places should I change? Thanks, Craig On Friday 04 January 2008 10:48:24 am Homam Dabis wrote: > Re: BGR24 > > You could have a look at systems/fbdev/fbdev.c in directfb directory. > > There is a function like DFBSurfacePixelFormat that may be useful to your > needs i.e you could change the offsets etc. > > Homam. > > > > ----- Original Message ---- > From: Craig Matsuura <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED]; directfb-users@directfb.org > Sent: Thursday, 3 January, 2008 10:04:01 PM > Subject: [directfb-users] Davinci support? > > Ok, this might be the wrong place to post this message, however I'm not > getting much help on the user list. I am a developer (kernel level) and we > are using the davinci in one of our products. We successfully have > displayed to all windows (osd0,osd1 (attr), vid0 and vid1) in both SD > 720x480x16 (osd0) and HD 1280x720x24 (vid0). > > Now, we are looking to moving to using directfb on the platform and I saw > the post for support for the davinci. I was very happy to see this. > > I have the mv 2.6.10 kernel, I built directfb and used fb0 (720x480x16) > appears to work great. > > I really need 1280x720 support and the osd0 has a know hw problem with > video tearing if used in 1280x720 (HD). So in our current non-directfb > application we moved to the vid0 window based on discussion with TI. We > now are using vid0 in 1280x720x24 (RGB24) mode. I setup directfb to > support RGB24 and fould out the RGB24 is represented differently than what > directfb supports. Basically its like big endian. So the colors are > incorrect (R and B are swapped). > > However this is not the only problem. The directfb-1.1.1 builds with the > davincifb.h files provided but the ioctl calls make in directfb do not > exist in the mv 2.6.10 kernel. So I get failures like the following: > > ./dfbinfo --dfb:system=devmem --dfb:video-phys=0x83000000 > --dfb:video-length=691200 > > =======================| DirectFB 1.1.1 |======================= > (c) 2001-2007 The DirectFB Organization (directfb.org) > (c) 2000-2004 Convergence (integrated media) GmbH > ------------------------------------------------------------ > > (*) DirectFB/Core: Single Application Core. (2007-12-18 01:01) [ DEBUG ] > (!) Davinci/Driver: FBIO_GET_TIMING failed! > --> Invalid argument > (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) > (*) DirectFB/Core/WM: Default 0.3 (directfb.org) > (!) IDirectFB_Construct: No layers available! Missing driver? > (#) DirectFBError [DirectFBCreate() failed]: Not supported! > Interface instances remaining (1): > - 'IDirectFB' at 0x1b6f8 (dfb) allocated in DirectFBCreate (directfb.c: > 197) > > No kernel I have looked at has support for the GET_TIMING ioctl. > Replacing the davincifb.h in directfb with the one found in my kernel will > not build. > > So here are the two issues: > > 1) There is not support for BGR24 (TI version which is BGR24) > 2) Trying to use the davinci support in directfb does not work due to > missing ioctl calls. > > Do you have a patch for the davincifb.c to add the ioctl calls? How about > support for BGR24? > > I really think the missing ioctl calls are the biggest issue, as if this > worked I could persue 1280x720 mode. As for the BGR24, I would like to > know what I can change in directfb to support this strange format in > directfb. > > NOTE: Keep in mind the BGR24 mode is when I use /dev/fb1 (fbdev support in > directfb), not the direct support claimed to be working in directfb. > > Thanks, > Craig > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > > __________________________________________________________ > Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users