[MPlayer-dev-eng] [PATCH] vo_directx

Felix Buenemann atmosfear at users.sourceforge.net
Sun Sep 29 03:44:23 CEST 2002


On Saturday 28 September 2002 19:54, Sascha Sommer wrote:
> Hi,
> this patch makes it possible to use directx for video output on cygwin.
> It requires windows and directx headers installed.
> Basically it should work with all versions of directx >=2
> Get Directx 7 headers from http://www.videolan.org/vlc/dx7headers.tgz
> and extract into your /usr/include dir
> It works for me, but might not work for you.
> Some stuff might for sure be done simpler, but this is my first real code
> I did in C. Therefore I'm not very experienced in this.
> Known bugs limitation:
> colorkeying doesn't work, because CreateSolidBrush results
> in undefined references. I'll fix this later when we have a
> better, maybe mingw32, port. For the same reason the
> window background is your desktop color.

Did you try adding -L/lib/w32api -lgdi32 _before_ directx libs when linking?
At least I needed to do that with my cygwin dx experiments. The GDI lib should 
resolve your CreateSolidBrush dependancy.

> If you get bluish faces change swap to 0, I'm not sure but I think my
> nvidia card swaps uv planes. So maybe this should be 0 by default.
> Some others I don't remember for now
> Please test and fix bugs ;)
I'll do as soon as I find some time, nice work!

> Sascha Sommer

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-dev-eng mailing list