Commit d0d64608 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

configure: enhance the D3D9/DxVA2 filters functions detection

Notably, check IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
presence.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2a646d27
......@@ -3293,13 +3293,18 @@ AS_IF([test "${enable_directx}" != "no"], [
VLC_ADD_PLUGIN([direct3d9])
AC_CHECK_HEADERS(d3dx9effect.h)
AC_CHECK_FUNCS([IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids],
[
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#define COBJMACROS
#include <d3d9.h>
#include <dxva2api.h>
#ifndef IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids
# error dxva2 too old
#endif
]],[[;]])
],[
VLC_ADD_PLUGIN([direct3d9_deinterlace direct3d9_adjust])
],
[AC_MSG_WARN([Could not find required IDirectXVideoDecoder in dxva2api.h])],
[#include <d3d9.h>
#include <dxva2api.h>])
[AC_MSG_WARN([Could not find required IDirectXVideoDecoder in dxva2api.h])])
])
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment