On Samstag 06 Mai 2006 13:13, Stefan Lucke wrote:
> Hi,
> 
> I'm trying to implement the blitting flag DSBLIT_INTERLACED.
> That should be a solution for a 4:3 TVout downscaleing problem.
> Discussion first starts here:
> http://mail.directfb.org/pipermail/directfb-users/2005-October/000770.html
> 
> When forced to do a separate stretchblit for each field, it works.
> But for some unkown reason, I could not get SetBlittingFlags(value)
> to be passed to matrox driver.
> 
>       scrSurface->SetBlittingFlags(DSBLIT_INTERLACED);
>       scrSurface->StretchBlit(videoSurface, &src, &dst);
> 

Oh damm compiler !!!!

I added a trace fprintf() and saw DSBLIT_INTERLACED arrived in matroc.c

So I changed:
mdev->blit_interlaced   = flags & DSBLIT_INTERLACED;

to
mdev->blit_interlaced   = (flags & DSBLIT_INTERLACED) ? true : false;

And SetBlittingFlags() works (test is now successfull) !!

But I guess many other code parts don*t work as expected,
as 'bool bvalue = flags & MASK' is quite common in DirectFB code.

gcc version on this machine is:

bodega3b ~ # gcc --version
gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)

-- 
Stefan Lucke

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to