Quoting Jiri Svoboda:
>  
> > Using mplayer on the overlay might be a good idea. But it wouldn't use
> > a window on that layer, but access the layer's surface directly.
> > You just need to change the dfb vo driver so that it puts the overlay
> > into a specified screen location and leave the primary layer 
> > untouched.
> 
> Shouldn't be hard. Actually it will very simplify the vo_directfb2.c code
> because
> most of autodection stuff (layer, formats, videomode..) will gone and
> configuration could be "hardcoded".

Some basic detection should still be there, e.g. for choosing the fastest
pixel format.

> The only tricky part could be position & size of overlay, because the UI
> must tell
> to mplayer's vo driver desired location.

Hmm, the layer could be positioned by the application itself.
But the current implementation doesn't allow multiple applications
to share the same exclusive context, while multiple exclusive contexts
are allowed. Entering exclusive cooperative level creates a private layer
context (config etc.) and switches to it.

So the second application would have to "join" the exclusive context created by
the first application. But I'm not sure how the first application could permit
that and how the second application could lookup the context to join. Joining
the context should be restricted to the second application.

One advantage would be a lower latency between window and overlay changes.

> The good approach should be turning on destination aplha keying/blending (if
> availabe).
> The UI will fill primary layer with key color in places where video should
> be visible.
> This will guarantee that video will be always displayed as "background" and
> will not cover
> any important part of screen. Beside it easilly allows to paint over
> video...

Sure, it should use DLOP_DST_COLORKEY.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to