hi,
     how to change the pixel format of tmp surface got by GetSubSurface?

thanks.

> Deng XueFeng wrote:
> > I am do a multi video app, there are some limmits:
> > 
> > 1. the the tmp surfaces has different pixel format with main surface
> > (YUY2 for tmp surfaces and RGB16/32 for main surface).
> 
> Fine.

> 
> > 2. due to the original video frame size, the tmp surfaces maybe larger
> > than main surface.
> 
> Fine.

> 
> > 3. the tmp surfaces maybe overlapped. does the operation on one tmp
> > surface affect the another tmp surface?
> 
> Surfaces cannot overlap. They are buffers in memory. You can blit
> any surface on any other surface where subsequent Blits may overlap.
> 
> > as above limmits existed, can i still using GetSubSurface? 
> 
> As I understand your application, you need to call GetSubSurface() on
> the main surface for each thread once and use the sub surface as the
> destination within the thread.
> 
> Anyhow, if you want to have overlapping videos, you need to coordinate
> between threads or only render in one thread, to ensure the order of blits.
> 
> > and even using GetSubSurface, does blit two tmp surfaces to each owo
> > main surface(unichrome have two layers) thread safe?
> 
> You can have one thread on each layer without using GetSubSurface.
> 
> -- 
> Best regards,
>   Denis Oliver Kropp
> 
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"

-- 
Deng XueFeng <[EMAIL PROTECTED]>


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to