Thanks, Nils, that's what I thought. And there are indeed many things to
consider like what to do if you run out of memory when while in the
middle of switching modes this way etc...

Cheers,
Andre'

On Thu, 2010-01-28 at 19:35 +0100, Niels Roest wrote:
> Hi André.
> 
> I am guessing this will require quite some changes in DirectFB.
> My thought would be, that you will need some kind of function to replace 
> the surface coupled to a layer, so you can prepare your new scene in an 
> off-screen surface, before you "swap" or "replace" it with the layer 
> surface, followed by a Flip to show it (I would guess the layer would be 
> FROZEN at first, when swapping in).
> You also might need a dynamic way to alter the number of buffers of a 
> surface if 2 surfaces at one time will be too much for your memory 
> budget, but I feel that that will be somewhat easier, or at least 
> touching less files.
> 
> Not an easy thing to do.
> 
> Greets
> Niels
> 
> Andre DRASZIK wrote:
> > Hi,
> >
> > maybe I am missing out something... here's my use case and I can't see
> > how I would achieve that:
> >
> > Say I have a layer's surface, containing a scene rendered with the
> > width/height of the layer and the scene is currently visible, i.e. in
> > the front buffer.
> >
> > Now I want to change the layer's width & height and redraw my scene in
> > the new resolution. Once redrawn, I want that surface to be the contents
> > of the layer.
> >
> > I.e. let's say my output is 1920x1080, the current layer surface's front
> > buffer is 720x576 (stretched by the hardware/mixer to match the output
> > resolution) and the layer surface's back buffer 1280x720; then I want to
> > do a flip and also the flip shouldn't cause any visible glitches.
> > Obviously this is not possible the way I described it, so how would one
> > do that with DirectFB?
> >
> > Of course I could render into an additional surface and stretchblit
> > things, but I want to avoid additional blitting... Also, doing it like
> > this will still give a visible glitch on screen while reconfiguring the
> > layer.
> >
> > Hope my description is somewhat clear :-)
> >
> >
> > Cheers,
> > Andre'
> >
> >
> > _______________________________________________
> > directfb-users mailing list
> > [email protected]
> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
> >
> >   
> 
> 


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

Reply via email to