wined3d: Handle 3D textures in wined3d_device_copy_sub_resource_region().
[wine.git] / dlls / dxva2 / main.c
blob782f0dfa3d486a3af2911b3ec86040e59129683f
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 return E_NOTIMPL;
193 BOOL WINAPI GetTimingReport( HMONITOR monitor, LPMC_TIMING_REPORT timingReport )
195 FIXME("(%p, %p): stub\n", monitor, timingReport);
197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
198 return FALSE;
201 BOOL WINAPI GetVCPFeatureAndVCPFeatureReply( HMONITOR monitor, BYTE vcpCode, LPMC_VCP_CODE_TYPE pvct,
202 LPDWORD current, LPDWORD maximum )
204 FIXME("(%p, 0x%02x, %p, %p, %p): stub\n", monitor, vcpCode, pvct, current, maximum);
206 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
207 return FALSE;
210 HRESULT WINAPI OPMGetVideoOutputsFromHMONITOR( HMONITOR monitor, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos,
211 ULONG *numVideoOutputs, /* IOPMVideoOutput */ void ***videoOutputs )
213 FIXME("(%p, 0x%x, %p, %p): stub\n", monitor, vos, numVideoOutputs, videoOutputs);
215 return E_NOTIMPL;
218 HRESULT WINAPI OPMGetVideoOutputsFromIDirect3DDevice9Object( IDirect3DDevice9 *device, /* OPM_VIDEO_OUTPUT_SEMANTICS */ int vos,
219 ULONG *numVideoOutputs, /* IOPMVideoOutput */ void ***videoOutputs )
221 FIXME("(%p, 0x%x, %p, %p): stub\n", device, vos, numVideoOutputs, videoOutputs);
223 return E_NOTIMPL;
226 BOOL WINAPI RestoreMonitorFactoryColorDefaults( HMONITOR monitor )
228 FIXME("(%p): stub\n", monitor);
230 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
231 return FALSE;
234 BOOL WINAPI RestoreMonitorFactoryDefaults( HMONITOR monitor )
236 FIXME("(%p): stub\n", monitor);
238 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
239 return FALSE;
242 BOOL WINAPI SaveCurrentMonitorSettings( HMONITOR monitor )
244 FIXME("(%p): stub\n", monitor);
246 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
247 return FALSE;
250 BOOL WINAPI SaveCurrentSettings( HMONITOR monitor )
252 FIXME("(%p): stub\n", monitor);
254 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
255 return FALSE;
258 BOOL WINAPI SetMonitorBrightness( HMONITOR monitor, DWORD brightness )
260 FIXME("(%p, 0x%x): stub\n", monitor, brightness);
262 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
263 return FALSE;
266 BOOL WINAPI SetMonitorColorTemperature( HMONITOR monitor, MC_COLOR_TEMPERATURE temperature )
268 FIXME("(%p, 0x%x): stub\n", monitor, temperature);
270 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
271 return FALSE;
274 BOOL WINAPI SetMonitorContrast( HMONITOR monitor, DWORD contrast )
276 FIXME("(%p, 0x%x): stub\n", monitor, contrast);
278 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
279 return FALSE;
282 BOOL WINAPI SetMonitorDisplayAreaPosition( HMONITOR monitor, MC_POSITION_TYPE type, DWORD position )
284 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, position);
286 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
287 return FALSE;
290 BOOL WINAPI SetMonitorDisplayAreaSize( HMONITOR monitor, MC_SIZE_TYPE type, DWORD size )
292 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, size);
294 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
295 return FALSE;
298 BOOL WINAPI SetMonitorRedGreenOrBlueDrive( HMONITOR monitor, MC_DRIVE_TYPE type, DWORD drive )
300 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, drive);
302 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
303 return FALSE;
306 BOOL WINAPI SetMonitorRedGreenOrBlueGain( HMONITOR monitor, MC_GAIN_TYPE type, DWORD gain )
308 FIXME("(%p, 0x%x, 0x%x): stub\n", monitor, type, gain);
310 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
311 return FALSE;
314 BOOL WINAPI SetVCPFeature( HMONITOR monitor, BYTE vcpCode, DWORD value )
316 FIXME("(%p, 0x%02x, 0x%x): stub\n", monitor, vcpCode, value);
318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
319 return FALSE;
322 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
324 TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
326 switch (fdwReason) {
327 case DLL_WINE_PREATTACH:
328 return FALSE; /* prefer native version */
329 case DLL_PROCESS_ATTACH:
330 DisableThreadLibraryCalls(hinstDLL);
331 break;
334 return TRUE;