[MPlayer-dev-eng] [PATCH] reduce flashing on resize with VDPAU
Dan Oscarsson
Dan.Oscarsson at tietoenator.com
Sat Mar 14 17:44:31 CET 2009
Hi
I noticed that my old nvida based patched mplayer was flashing a lot
less then the latest source snapshot.
Attached patch fixes this.
Changes done:
In resize:
- width and height are set to screen width and height.
This results in no resizing of output surfaces are done but once.
I suspect that destroying the active visible surface results in
flashing - this avoids that.
We probably could have smaller surfaces but then need complexer
code to wait for the old currently visible surface to become idle
before destroying it. This is simple.
- Only update output when in pause. When not paused it will be updated
at next picture frame.
In win_x11_init_vdpau_flip_queue:
- set background colour to black for parts outside a surface.
Without this I get yellowish flashing during resize. Black
works better.
In check_events:
- removed the code that requeues the current visible output surface
when paused. vdpau does redisplay the visible output surface by
itself.
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdpaunoflash.diff
Type: text/x-patch
Size: 3825 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090314/ef85693f/attachment.bin>
More information about the MPlayer-dev-eng
mailing list