diff configure @ 27921:327a98d2b55d

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.
author reimar
date Tue, 18 Nov 2008 12:23:42 +0000
parents 305a6ca17117
children 2aaf331731eb
line wrap: on
line diff
--- a/configure	Tue Nov 18 12:23:23 2008 +0000
+++ b/configure	Tue Nov 18 12:23:42 2008 +0000
@@ -369,6 +369,7 @@
   --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 @@
 _xv=auto
 _xvmc=no  #auto when complete
 _sdl=auto
+_direct3d=auto
 _directx=auto
 _win32waveout=auto
 _nas=auto
@@ -867,6 +869,8 @@
   --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 @@
 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_dga
 $_def_dga1
 $_def_dga2
+$_def_direct3d
 $_def_directfb
 $_def_directfb_version
 $_def_directx