On Wed, Jul 09, 2008 at 11:39:16AM +0200, Denis Oliver Kropp wrote: > GARDET Guillaume wrote: > > > > > > Great ! :) Will it be included in the 1.2.0 or not ? When will be > > Yes, as an exception of the RGB-only rule, to provide at least the most > common BGR format to those exotic hardware lovers to play with. > > In the new trunk after branching off 1.2.x I'll be happy to integrate > Ville's work on modular pixel format support to avoid any further bloat > and make it easy to save one or two hundred kilobyte or more.
I've done a little bit more on it after posting the patch. I think what changed is roughly this: - Added new hooks for pixelformats to eliminate most of the pixelformat related code from the core. (TransferBuffer, PixelFromColor, PixelToColor, WriteARGBSpan, DumpLine.) - Smooth scaling should work. Just added a pointer to the function table to the GenefxOps structure. Something a bit more dynamic would be better but this at least works. - Changed the pixelformat registration so that the module will simply need to call dfb_pixelformat_register() in it's initialize function. Some TODOs: - dfb_convert_to_foo() functions are still to be converted somehow. I'm not sure if we want pixelformat modules to know about other formats. If not we could do the conversion via ARGB but that would be less efficient. Smooth scaling already mixes knowledge about different formats inside one module. - MMX/64bit stuff needs to be cleaned up. Right now I just left all the MMX/64bit code in place in the header where they were and just include that in all modules that need it. Also the has_mmx() function (which I made non-static so the modules can use it) should probably be moved somewhere more suitable (libdirect maybe?). I haven't had time to work on this for a while (just kept it rebased on top of master). -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev