Commit Graph

37 Commits

Author SHA1 Message Date
Nikolay Sivov 601137d43e dxva2: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-01 12:54:36 +02:00
Nikolay Sivov f22b55b749 dxva2/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 12:32:07 +01:00
Nikolay Sivov 7868f1b918 dxva2: Fix long types warnings in traces.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 09:49:04 +01:00
Fabian Maurer ab76f35595 dxva2/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 21:09:19 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Nikolay Sivov 8a43d0808a dxva2/tests: Fix some test failures on HW devices.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52106
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-29 23:25:46 +01:00
Nikolay Sivov 12a1b4b360 dxva2: Introduce progressive processor device.
The point is to provide a device, with similar caps and NV12 support,
while keeping software device on its own, the way it should be.

This is based on research by Derek Lesho.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-23 13:39:19 +01:00
Nikolay Sivov d9957dd227 dxva2: Handle specified background color in VideoProcessBlt().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-05 17:10:09 +01:00
Nikolay Sivov 8c9418fb40 dxva2: Limit allowed number of substreams in CreateVideoProcessor().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 20:32:52 +01:00
Nikolay Sivov ef5846794c dxva2: Add GetVideoProcessorCaps() for software device.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 20:32:52 +01:00
Nikolay Sivov 2095a4132f dxva2: Remove AYUV from accepted input formats.
It was added for completeness only, and it appears to be not universally
support on Windows via regular d3d9 API. DXVA might be using different path
to present video frames, but we don't make such distinction at the moment.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 15:20:11 +02:00
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Nikolay Sivov 37c6790fb7 dxva2/tests: Remove a test failing on system with hw dxva devices support.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-09 08:56:56 +02:00
Nikolay Sivov b7c48c898c dxva2: Check input stream format in GetVideoProcessorDeviceGuids().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-07 21:24:54 +02:00
Nikolay Sivov 0070a00cc1 dxva2: Accept AYUV as input format.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-07 21:24:48 +02:00
Nikolay Sivov 0cd91a522e dxva2: Check content formats for software device in GetVideoProcessorRenderTargets().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-08 12:14:31 +02:00
Alexandre Julliard f24ac09ae6 dxva2: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-22 14:42:08 +01:00
Nikolay Sivov ef7e9d126f dxva2: Add IDirectXVideoDecoderService stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50349
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-18 22:46:37 +01:00
Nikolay Sivov 0824d408ba dxva2: Add a semi-stub for VideoProcessBlt().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-13 21:55:33 +01:00
Nikolay Sivov 2b04143e6d dxva2: Fix valid handle range test.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-21 10:51:04 +02:00
Nikolay Sivov 16430c45cd dxva2: Add GetCreationParameters().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 22:18:14 +02:00
Nikolay Sivov 6194f50672 dxva2: Add video processor stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 22:18:10 +02:00
Nikolay Sivov 0a3a2e7dcb dxva2: Fix new handle flags initialization.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-19 22:18:04 +02:00
Nikolay Sivov 1829c19687 dxva2/tests: Add a test for GetVideoProcessorDeviceGuids().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:19 +02:00
Nikolay Sivov 97136a8707 dxva2: Return some static render target formats.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-18 22:07:56 +02:00
Nikolay Sivov 88f47823e1 dxva2: Return single software device for GetVideoProcessorDeviceGuids().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-17 20:54:16 +02:00
Nikolay Sivov 574fd3d3ef dxva2: Implement CreateSurface().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-17 20:54:16 +02:00
Nikolay Sivov 431324ba63 dxva2: Implement locking functionality in device manager.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-30 17:50:46 +02:00
Nikolay Sivov 84acd2f47e dxva2: Add missing processor service method stubs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-26 20:59:19 +02:00
Nikolay Sivov e0b5edf896 dxva2: Implement DXVA2CreateVideoService().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-23 19:31:18 +02:00
Nikolay Sivov 3b4738bb20 dxva2: Add IDirectXVideoProcessorService stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-22 18:37:07 +02:00
Nikolay Sivov 24aaf0d535 dxva2: Implement handle management for device manager.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-22 18:37:07 +02:00
Nikolay Sivov fd72999bd6 dxva2: Add device manager stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-22 18:37:07 +02:00
Alexandre Julliard 63cb594f01 dxva2: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 09:05:45 +02:00
Sebastian Lackner 69e49122ec dxva2: Return E_NOTIMPL from GetPhysicalMonitorsFromIDirect3DDevice9 stub.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 11:51:06 +09:00
Michael Müller 5d173f90f7 dxva2: Add implementation for stub functions. 2014-04-04 16:58:05 +02:00
Michael Müller b1f2e33cc2 dxva2: Added stub dll. 2014-03-25 19:01:29 +01:00