Hi Timothy, I added the DSRO_SMOOTH_UPSCALE and DSRO_SMOOTH_DOWNSCALE in SetRenderOptions. I also removed DSBLIT_BLEND_ALPHACHANNEL from SetBlittingFlags. But StrechBlit did nothing difference, the saw edge is still obvious. The interplation options does not work. I do not know why. The initialization part in my code is below. ------------------------------------------------------------------------------- .......
DirectFBInit (&argc, &argv); DirectFBCreate (&dfb); dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN); dsc.flags = DSDESC_CAPS; dsc.caps = DSCAPS_PRIMARY | DSCAPS_FLIPPING; //dsc.caps = DSCAPS_PRIMARY | DSCAPS_DOUBLE; dfb->CreateSurface (dfb, &dsc, &primary); primary->Clear (primary, 0, 0, 0, 0xff); primary->GetSize (primary, &screen_width, &screen_height); //primary->SetBlittingFlags (primary, DSBLIT_BLEND_ALPHACHANNEL); primary->SetRenderOptions(primary, DSRO_SMOOTH_UPSCALE | DSRO_SMOOTH_DOWNSCALE); ....... ------------------------------------------------------------------------------------ Any comment is appreciated. Thanks! Jack --- On Tue, 2/9/10, Strelchun, Timothy <timothy.strelc...@intel.com> wrote: From: Strelchun, Timothy <timothy.strelc...@intel.com> Subject: Re: [directfb-dev] Does StretchBlit use nearest-neighbour interpolation? To: "'directfb-dev@directfb.org'" <directfb-dev@directfb.org> Date: Tuesday, February 9, 2010, 8:21 PM Hi Jack, Yes, the CPU-based rasterizer compilation defaults to nearest for scaling. It can be changed to support linear interpolation via configuring using the --with-smooth-scaling option. There is also optional render option flags that can be set using IDirectFBSurface::SetRenderOptions. Specifically, DSRO_SMOOTH_UPSCALE and DSRO_SMOOTH_DOWNSCALE. Timothy -- Timothy Strelchun CE Software Engineering Digital Home Group Intel Corporation The views expressed above are my own and not those of Intel ________________________________ From: directfb-dev-boun...@directfb.org [mailto:directfb-dev-boun...@directfb.org] On Behalf Of Jack W. Sent: Tuesday, February 09, 2010 5:08 PM To: directfb-dev@directfb.org Subject: [directfb-dev] Does StretchBlit use nearest-neighbour interpolation? Hi, The result of the StretchBlit looks like generated by nearest neighbour interpolation. Is it true? If use bi-linear interpolation, how about the performance? Very slow? Thanks! -Jack _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev