summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-18 12:23:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-18 12:23:42 +0000
commitaf366bff51545bd096935272384cd8a5653575ee (patch)
treeaac01fea94025558a5bda1b8ee20febb4e0c7fba /configure
parent04d6de5ee2429bf8a6b6c1004559d5c36e32d69b (diff)
downloadmpv-af366bff51545bd096935272384cd8a5653575ee.tar.bz2
mpv-af366bff51545bd096935272384cd8a5653575ee.tar.xz
Direct3D based video_out module.
Patch by Georgi Petrov (gogothebee gmail com) Panscan handling is still disabled and needs to be fixed for negative -panscan. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27955 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure b/configure
index b70dd5a40e..547369c485 100755
--- a/configure
+++ b/configure
@@ -369,6 +369,7 @@ Video output:
--enable-caca enable CACA video output [autodetect]
--enable-ggi enable GGI video output [autodetect]
--enable-ggiwmh enable GGI libggiwmh extension [autodetect]
+ --enable-direct3d enable Direct3D video output [autodetect]
--enable-directx enable DirectX video output [autodetect]
--enable-dxr2 enable DXR2 video output [autodetect]
--enable-dxr3 enable DXR3/H+ video output [autodetect]
@@ -547,6 +548,7 @@ _dga2=auto
_xv=auto
_xvmc=no #auto when complete
_sdl=auto
+_direct3d=auto
_directx=auto
_win32waveout=auto
_nas=auto
@@ -867,6 +869,8 @@ for ac_option do
--disable-xvmc) _xvmc=no ;;
--enable-sdl) _sdl=yes ;;
--disable-sdl) _sdl=no ;;
+ --enable-direct3d) _direct3d=yes ;;
+ --disable-direct3d) _direct3d=no ;;
--enable-directx) _directx=yes ;;
--disable-directx) _directx=no ;;
--enable-win32waveout) _win32waveout=yes ;;
@@ -4900,6 +4904,27 @@ else
fi
echores "$_win32waveout"
+echocheck "Direct3D"
+if test "$_direct3d" = auto ; then
+ cat > $TMPC << EOF
+#include <windows.h>
+#include <d3d9.h>
+int main(void) { return 0; }
+EOF
+ _direct3d=no
+ cc_check -ld3d9 && _direct3d=yes
+fi
+if test "$_direct3d" = yes ; then
+ _def_direct3d='#define CONFIG_DIRECT3D 1'
+ _libs_mplayer="$_libs_mplayer -ld3d9"
+ _vosrc="$_vosrc vo_direct3d.c"
+ _vomodules="direct3d $_vomodules"
+else
+ _def_direct3d='#undef CONFIG_DIRECT3D'
+ _novomodules="direct3d $_novomodules"
+fi
+echores "$_direct3d"
+
echocheck "Directx"
if test "$_directx" = auto ; then
cat > $TMPC << EOF
@@ -8377,6 +8402,7 @@ $_def_dfbmga
$_def_dga
$_def_dga1
$_def_dga2
+$_def_direct3d
$_def_directfb
$_def_directfb_version
$_def_directx