po: Update German translation.
[wine.git] / dlls / dxva2 / main.c
blobb4704f0f8d3feccfd3cacdd5e1456689425b1d70
1 /*
2 * Copyright 2014 Michael Müller for Pipelight
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <stdarg.h>
20 #include "windef.h"
21 #include "winbase.h"
22 #include "d3d9.h"
23 #include "dxva2api.h"
24 #include "physicalmonitorenumerationapi.h"
25 #include "lowlevelmonitorconfigurationapi.h"
26 #include "highlevelmonitorconfigurationapi.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(dxva2);
32 BOOL WINAPI CapabilitiesRequestAndCapabilitiesReply( HMONITOR monitor, LPSTR buffer, DWORD length )
34 FIXME("(%p, %p, %d): stub\n", monitor, buffer, length);
36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
37 return FALSE;
40 HRESULT WINAPI DXVA2CreateDirect3DDeviceManager9( UINT *resetToken, IDirect3DDeviceManager9 **dxvManager )
42 FIXME("(%p, %p): stub\n", resetToken, dxvManager);
44 return E_NOTIMPL;
47 HRESULT WINAPI DXVA2CreateVideoService( IDirect3DDevice9 *device, REFIID riid, void **ppv )
49 FIXME("(%p, %s, %p): stub\n", device, debugstr_guid(riid), ppv);
51 return E_NOTIMPL;
54 BOOL WINAPI DegaussMonitor( HMONITOR monitor )
56 FIXME("(%p): stub\n", monitor);
58 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
59 return FALSE;
62 BOOL WINAPI DestroyPhysicalMonitor( HMONITOR monitor )
64 FIXME("(%p): stub\n", monitor);
66 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67 return FALSE;
70 BOOL WINAPI DestroyPhysicalMonitors( DWORD arraySize, LPPHYSICAL_MONITOR array )
72 FIXME("(0x%x, %p): stub\n", arraySize, array);
74 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
75 return FALSE;
78 BOOL WINAPI GetCapabilitiesStringLength( HMONITOR monitor, LPDWORD length )
80 FIXME("(%p, %p): stub\n", monitor, length);
82 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
83 return FALSE;
86 BOOL WINAPI GetMonitorBrightness( HMONITOR monitor, LPDWORD minimum, LPDWORD current, LPDWORD maximum )
88 FIXME("(%p, %p, %p, %p): stub\n", monitor, minimum, current, maximum);
90 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
91 return FALSE;
94 BOOL WINAPI GetMonitorCapabilities( HMONITOR monitor, LPDWORD capabilities, LPDWORD temperatures )
96 FIXME("(%p, %p, %p): stub\n", monitor, capabilities, temperatures);
98 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
99 return FALSE;
103 BOOL WINAPI GetMonitorColorTemperature( HMONITOR monitor, LPMC_COLOR_TEMPERATURE temperature )
105 FIXME("(%p, %p): stub\n", monitor, temperature);
107 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
108 return FALSE;
111 BOOL WINAPI GetMonitorContrast( HMONITOR monitor, LPDWORD minimum, LPDWORD current, LPDWORD maximum )
113 FIXME("(%p, %p, %p, %p): stub\n", monitor, minimum, current, maximum);
115 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
116 return FALSE;
119 BOOL WINAPI GetMonitorDisplayAreaPosition( HMONITOR monitor, MC_POSITION_TYPE type, LPDWORD minimum,
120 LPDWORD current, LPDWORD maximum )
122 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor, type, minimum, current, maximum);
124 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
125 return FALSE;
128 BOOL WINAPI GetMonitorDisplayAreaSize( HMONITOR monitor, MC_SIZE_TYPE type, LPDWORD minimum,
129 LPDWORD current, LPDWORD maximum )
131 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor, type, minimum, current, maximum);
133 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
134 return FALSE;
137 BOOL WINAPI GetMonitorRedGreenOrBlueDrive( HMONITOR monitor, MC_DRIVE_TYPE type, LPDWORD minimum,
138 LPDWORD current, LPDWORD maximum )
140 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor, type, minimum, current, maximum);
142 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
143 return FALSE;
146 BOOL WINAPI GetMonitorRedGreenOrBlueGain( HMONITOR monitor, MC_GAIN_TYPE type, LPDWORD minimum,
147 LPDWORD current, LPDWORD maximum )
149 FIXME("(%p, 0x%x, %p, %p, %p): stub\n", monitor, type, minimum, current, maximum);
151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
152 return FALSE;
155 BOOL WINAPI GetMonitorTechnologyType( HMONITOR monitor, LPMC_DISPLAY_TECHNOLOGY_TYPE type )
157 FIXME("(%p, %p): stub\n", monitor, type);
159 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
160 return FALSE;
163 BOOL WINAPI GetNumberOfPhysicalMonitorsFromHMONITOR( HMONITOR monitor, LPDWORD number )
165 FIXME("(%p, %p): stub\n", monitor, number);
167 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
168 return FALSE;
171 HRESULT WINAPI GetNumberOfPhysicalMonitorsFromIDirect3DDevice9( IDirect3DDevice9 *device, LPDWORD number )
173 FIXME("(%p, %p): stub\n", device, number);
175 return E_NOTIMPL;
178 BOOL WINAPI GetPhysicalMonitorsFromHMONITOR( HMONITOR monitor, DWORD arraySize, LPPHYSICAL_MONITOR array )
180 FIXME("(%p, 0x%x, %p): stub\n", monitor, arraySize, array);
182 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
183 return FALSE;
186 HRESULT WINAPI GetPhysicalMonitorsFromIDirect3DDevice9( IDirect3DDevice9 *device, DWORD arraySize, LPPHYSICAL_MONITOR array )
188 FIXME("(%p, 0x%x, %p): stub\n", device, arraySize, array);
190 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
191 return FALSE;
194 BOOL WINAPI GetTimingReport( HMONITOR monitor, LPMC_TIMING_REPORT timingReport )
196 FIXME("(%p, %p): stub\n", monitor, timingReport);
198 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
199 return FALSE;
202 BOOL WINAPI GetVCPFeatureAndVCPFeatureReply( HMONITOR monitor, BYTE vcpCode, LPMC_VCP_CODE_TYPE pvct,
203 LPDWORD current, LPDWORD maximum )
205 FIXME("(%p, 0x%02x, %p, %p, %p): stub\n", monitor, vcpCode, pvct, current, maximum);
207 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
208 return FALSE;
211 HRESULT WINAPI OPMGetVideoOutputsFromHMONITOR( HMONITOR monitor, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos,
212 ULONG *numVideoOutputs, /* IOPMVideoOutput */ void ***videoOutputs )
214 FIXME("(%p, 0x%x, %p, %p): stub\n", monitor, vos, numVideoOutputs, videoOutputs);
216 return E_NOTIMPL;
219 HRESULT WINAPI OPMGetVideoOutputsFromIDirect3DDevice9Object( IDirect3DDevice9 *device, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos,
220 ULONG *numVideoOutputs, /* IOPMVideoOutput */ void ***videoOutputs )
222 FIXME("(%p, 0x%x, %p, %p): stub\n", device, vos, numVideoOutputs, videoOutputs);
224 return E_NOTIMPL;
227 BOOL WINAPI RestoreMonitorFactoryColorDefaults( HMONITOR monitor )
229 FIXME("(%p): stub\n", monitor);
231 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
232 return FALSE;
235 BOOL WINAPI RestoreMonitorFactoryDefaults( HMONITOR monitor )
237 FIXME("(%p): stub\n", monitor);
239 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
240 return FALSE;
243 BOOL WINAPI SaveCurrentMonitorSettings( HMONITOR monitor )
245 FIXME("(%p): stub\n", monitor);
247 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
248 return FALSE;
251 BOOL WINAPI SaveCurrentSettings( HMONITOR monitor )
253 FIXME("(%p): stub\n", monitor);
255 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
256 return FALSE;
259 BOOL WINAPI SetMonitorBrightness( HMONITOR monitor, DWORD brightness )
261 FIXME("(%p, 0x%x): stub\n", monitor, brightness);
263 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
264 return FALSE;
267 BOOL WINAPI SetMonitorColorTemperature( HMONITOR monitor, MC_COLOR_TEMPERATURE temperature )
269 FIXME("(%p, 0x%x): stub\n", monitor, temperature);
271 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
272 return FALSE;
275 BOOL WINAPI SetMonitorContrast( HMONITOR monitor, DWORD contrast )
277 FIXME("(%p, 0x%x): stub\n", monitor, contrast);
279 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
280 return FALSE;
283 BOOL WINAPI SetMonitorDisplayAreaPosition( HMONITOR monitor, MC_POSITION_TYPE type, DWORD position )
285 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, position);
287 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
288 return FALSE;
291 BOOL WINAPI SetMonitorDisplayAreaSize( HMONITOR monitor, MC_SIZE_TYPE type, DWORD size )
293 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, size);
295 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
296 return FALSE;
299 BOOL WINAPI SetMonitorRedGreenOrBlueDrive( HMONITOR monitor, MC_DRIVE_TYPE type, DWORD drive )
301 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, drive);
303 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
304 return FALSE;
307 BOOL WINAPI SetMonitorRedGreenOrBlueGain( HMONITOR monitor, MC_GAIN_TYPE type, DWORD gain )
309 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, gain);
311 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
312 return FALSE;
315 BOOL WINAPI SetVCPFeature( HMONITOR monitor, BYTE vcpCode, DWORD value )
317 FIXME("(%p, 0x%02x, 0x%x): stub\n", monitor, vcpCode, value);
319 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
320 return FALSE;
323 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
325 TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
327 switch (fdwReason) {
328 case DLL_WINE_PREATTACH:
329 return FALSE; /* prefer native version */
330 case DLL_PROCESS_ATTACH:
331 DisableThreadLibraryCalls(hinstDLL);
332 break;
335 return TRUE;