diff --git a/configure b/configure index d2700711e30..4d039705b6a 100755 --- a/configure +++ b/configure @@ -1024,6 +1024,7 @@ enable_dwmapi enable_dwrite enable_dxdiagn enable_dxgi +enable_dxva2 enable_explorerframe enable_ext_ms_win_gdi_devcaps_l1_1_0 enable_faultrep @@ -16851,6 +16852,7 @@ wine_fn_config_lib dxerr9 wine_fn_config_dll dxgi enable_dxgi implib wine_fn_config_test dlls/dxgi/tests dxgi_test wine_fn_config_lib dxguid +wine_fn_config_dll dxva2 enable_dxva2 wine_fn_config_dll explorerframe enable_explorerframe clean wine_fn_config_test dlls/explorerframe/tests explorerframe_test wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0 diff --git a/configure.ac b/configure.ac index e493cd02f16..97874c48f25 100644 --- a/configure.ac +++ b/configure.ac @@ -2855,6 +2855,7 @@ WINE_CONFIG_LIB(dxerr9) WINE_CONFIG_DLL(dxgi,,[implib]) WINE_CONFIG_TEST(dlls/dxgi/tests) WINE_CONFIG_LIB(dxguid) +WINE_CONFIG_DLL(dxva2) WINE_CONFIG_DLL(explorerframe,,[clean]) WINE_CONFIG_TEST(dlls/explorerframe/tests) WINE_CONFIG_DLL(ext-ms-win-gdi-devcaps-l1-1-0) diff --git a/dlls/dxva2/Makefile.in b/dlls/dxva2/Makefile.in new file mode 100644 index 00000000000..7b9ef6fe7c0 --- /dev/null +++ b/dlls/dxva2/Makefile.in @@ -0,0 +1,4 @@ +MODULE = dxva2.dll + +C_SRCS = \ + main.c diff --git a/dlls/dxva2/dxva2.spec b/dlls/dxva2/dxva2.spec new file mode 100644 index 00000000000..da94df34088 --- /dev/null +++ b/dlls/dxva2/dxva2.spec @@ -0,0 +1,37 @@ +@ stub CapabilitiesRequestAndCapabilitiesReply +@ stub DXVA2CreateDirect3DDeviceManager9 +@ stub DXVA2CreateVideoService +@ stub DegaussMonitor +@ stub DestroyPhysicalMonitor +@ stub DestroyPhysicalMonitors +@ stub GetCapabilitiesStringLength +@ stub GetMonitorBrightness +@ stub GetMonitorCapabilities +@ stub GetMonitorColorTemperature +@ stub GetMonitorContrast +@ stub GetMonitorDisplayAreaPosition +@ stub GetMonitorDisplayAreaSize +@ stub GetMonitorRedGreenOrBlueDrive +@ stub GetMonitorRedGreenOrBlueGain +@ stub GetMonitorTechnologyType +@ stub GetNumberOfPhysicalMonitorsFromHMONITOR +@ stub GetNumberOfPhysicalMonitorsFromIDirect3DDevice9 +@ stub GetPhysicalMonitorsFromHMONITOR +@ stub GetPhysicalMonitorsFromIDirect3DDevice9 +@ stub GetTimingReport +@ stub GetVCPFeatureAndVCPFeatureReply +@ stub OPMGetVideoOutputsFromHMONITOR +@ stub OPMGetVideoOutputsFromIDirect3DDevice9Object +@ stub RestoreMonitorFactoryColorDefaults +@ stub RestoreMonitorFactoryDefaults +@ stub SaveCurrentMonitorSettings +@ stub SaveCurrentSettings +@ stub SetMonitorBrightness +@ stub SetMonitorColorTemperature +@ stub SetMonitorContrast +@ stub SetMonitorDisplayAreaPosition +@ stub SetMonitorDisplayAreaSize +@ stub SetMonitorRedGreenOrBlueDrive +@ stub SetMonitorRedGreenOrBlueGain +@ stub SetVCPFeature +@ stub UABGetCertificate diff --git a/dlls/dxva2/main.c b/dlls/dxva2/main.c new file mode 100644 index 00000000000..d16320faa80 --- /dev/null +++ b/dlls/dxva2/main.c @@ -0,0 +1,40 @@ +/* + * Copyright 2014 Michael Müller for Pipelight + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include +#include "windef.h" +#include "winbase.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(dxva2); + +BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + } + + return TRUE; +}