I made some improvements to dfbmga window patch. I added crtc1 option. With this mplayer can play accelerated video on first head. Unlike bes, primary layer supports stretch blitting so picture can be viewed in fullscreen. Also support for windows in enabled for crtc1. Primary layer doesn't support YV12 surface so you must add "-vf yuy2". This new patch is for clean (not previously patched vo_dfbmga.c).
I also changed my test app. Run it with "test layer video_file1 [video_file2]". Instead of layer you must put crtc1 or crtc2. Be sure that there isn't primary-layer=X in /etc/directfbrc. video_file2 is file the will be played in a small window (picture in picture). Test app creates three windows. One is fullscreen video_file1, one is for PIP and third for osd. Osd is transparent (ARGB surface). CPU usage is small, I got 35% for playing two mpeg2 videos and around 65% for playing two xvid videos on PIII 800.
Exit from app with ESC or Q.

Attachment: mplayer_PIP_customOSD.tar.bz2
Description: Binary data

Reply via email to