Il giorno lun, 25/02/2008 alle 12.09 +0100, Claudio Ciccani ha scritto: > Il giorno lun, 25/02/2008 alle 00.50 +0100, Denis Oliver Kropp ha > scritto: > > Claudio Ciccani wrote: > > > Il giorno dom, 24/02/2008 alle 21.41 +0100, [EMAIL PROTECTED] ha > > > scritto: > > >> New commits: > > >> http://git.directfb.org/?p=ports/cairodfb.git;a=commit;h=12695427007196f0b51f4b2f9f3114db4138e76f > > >> commit 12695427007196f0b51f4b2f9f3114db4138e76f > > >> Author: Claudio Ciccani <[EMAIL PROTECTED]> > > >> Date: Sun Feb 24 21:42:37 2008 +0100 > > >> > > >> Experimental version of the backend based on the new DirectFB > > >> features. > > >> > > >> This also definitively implements antialiased composite_trapezoids() > > >> by using FillTriangle() and an accumulation buffer. > > >> > > >> cairo/cairo-directfb-surface.c | 769 +++++++++------ > > >> cairo/cairo-directfb.h | 70 ++ > > >> cairo/cairo-directfb.patch | 2151 > > >> +++++++++++++++++----------------------- > > >> 3 files changed, 1418 insertions(+), 1572 deletions(-) > > >> > > > > > > And is also very fast!! > > > The cairo-spacewar demo runs at about 90fps, against the 60fps of the > > > old backend (testing hardware is a Radeon 9250). > > > > Great! > > > > I should test it on SH7722, but it does not support SRCALPHASAT > > I was just wondering if it is really unsupported or only > unimplemented... > In the cairo backend I could implement a different method that uses > DSPD_ADD. Need to do some tests, however. >
Tested, but I need at least DSBLIT_COLORIZE and DSBLIT_BLEND_COLORALPHA to make it work. Without these functions I can't provide a decent antialiasing. See the below results. * Direct Antialiasing (no accumulator) Not good, because there are overlapping/adjacent edges. http://img240.imagevenue.com/img.php?image=58327_cairo-knockout_0000.ppm_122_374lo.jpg * Accumulator blended with [ONE,ONE] and than colorized Better, but you can see a border around the circles. http://img104.imagevenue.com/img.php?image=58334_cairo-knockout_0001.ppm_122_996lo.jpg * Accumulator blended with [SRCALPHASAT,ONE] The best. http://img219.imagevenue.com/img.php?image=58335_cairo-knockout_0002.ppm_122_142lo.jpg -- Claudio Ciccani [EMAIL PROTECTED] [EMAIL PROTECTED] http://directfb.org _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev