Commit graph

444 commits

Author SHA1 Message Date
Ziqing Hui ff0cd457b4 winegstreamer: Set AvgTimePerFrame in GetOutputType() for WMV decoder.
Krkr2 game engine need AvgTimePerFrame to calculate video frame time.
2024-03-06 19:01:38 +01:00
Ziqing Hui 732ed62819 mf/tests: Test AvgTimePerFrame for WMV decoder DMO. 2024-03-06 19:01:38 +01:00
Zhiyi Zhang 6b853a9354 mf/tests: Test IMFMediaSession::Start().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2024-02-06 22:56:50 +01:00
Zhiyi Zhang c1223d0be0 mf/tests: Add a create_test_topology() helper.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2024-02-06 22:56:50 +01:00
Rémi Bernon 604bc7ccf9 mf/tests: Add some tests with video processor aperture handling. 2024-02-06 16:36:19 +01:00
Rémi Bernon 5a12be3a9a mf/tests: Report more transform current type mismatches. 2024-02-06 16:36:19 +01:00
Rémi Bernon 6aca31f1a1 winegstreamer: Implement H264 decoder GetInputCurrentType. 2024-01-30 11:06:00 +01:00
Rémi Bernon 2d88c57716 mf/topology_loader: Try to connect transform nodes with their current types first.
And only if that fails try again by enumerating types.
2024-01-30 11:05:58 +01:00
Rémi Bernon d95d113230 mf/topology_loader: Initialize transform output type before adding converter.
Otherwise the next topology_branch_connect call will fail when it will
try to lookup the upstream element media type.
2024-01-30 11:05:57 +01:00
Rémi Bernon 2a185126ca mf/topology_loader: Ignore SetOutputType errors when doing indirect connect.
It only succeeds with converters, or if a decoder can directly output
the downstream media type.

If it fails we may have to add a converter after the decoder, and we
will call topology_branch_connect on the downstream branch for that.
2024-01-30 11:05:56 +01:00
Rémi Bernon 56b1f80210 mf/tests: Check inserted topology loader transforms explicitly. 2024-01-30 11:05:54 +01:00
Nikolay Sivov 21bbd34d35 mf/tests: Fully cleanup when skipping tests. 2024-01-19 18:01:34 +01:00
Nikolay Sivov 8e82b56a7e mf/tests: Skip tests if video renderer can't be created. 2024-01-17 10:56:47 +01:00
Nikolay Sivov 7e30b44367 mf/tests: Skip tests if D3D9 is unusable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2024-01-08 20:52:27 +01:00
Rémi Bernon d748440ea2 mf/tests: Workaround broken Win7 test_h264_decoder_concat_streams result.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55638
2023-12-12 23:15:03 +01:00
Alfred Agrell 9c78628f14 mf/tests: Test IMediaObject_GetOutputSizeInfo. 2023-11-23 16:17:27 +01:00
Alfred Agrell 33d9310a9f winegstreamer: Implement DMO interface for WMA decoder. 2023-11-23 16:17:27 +01:00
Alfred Agrell f04aeeef9f winegstreamer: Switch WMA decoder to use wg_format internally. 2023-11-23 16:17:27 +01:00
Alexandre Julliard 7ccb5df0fc makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
Nikolay Sivov 882d822900 mf/samplegrabber: Check shutdown state when setting the clock.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-10-31 18:52:08 +01:00
Nikolay Sivov c45ae2c680 mf/samplegrabber: Release current media type on shutdown. 2023-10-31 18:52:08 +01:00
Rémi Bernon d0400e5637 mf/tests: Avoid crashing if MF_BYTESTREAM_EFFECTIVE_URL is missing.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=55588
2023-10-27 10:19:40 -05:00
Paul Gofman deff1303fb winegstreamer: Add AVDecVideoAcceleration_H264 attribute for h264 decoder MFT. 2023-10-17 21:48:20 +02:00
Fabian Maurer df01ef80a0 mf/tests: Increase buffer to prevent stack corruption.
init_dmo_media_type_video uses head + extra bytes memory,
and with MEDIASUBTYPE_RGB8 the extra bytes are already 1024.
This leads to stack corruption.
2023-10-17 18:18:03 +02:00
Paul Gofman 416a273241 winegstreamer: Also return output with 2 channels for multichannel inputs from AAC decoder. 2023-09-27 22:23:12 +02:00
Paul Gofman bb95f8c2f6 winegstreamer: Validate maximum channel count in _SetInputType in AAC decoder. 2023-09-27 22:23:12 +02:00
Paul Gofman 902133b008 winegstreamer: Correct output available types attrs in AAC decoder for channel count > 2. 2023-09-27 22:23:12 +02:00
Paul Gofman 5b0172e161 winegstreamer: Handle missing or zero channel count in _GetOutputAvailableType in AAC decoder. 2023-09-27 22:23:12 +02:00
Paul Gofman 3432ef30c3 mf/tests: Add tests for AAC decoder with different input number of channels. 2023-09-27 22:23:12 +02:00
Ziqing Hui b3edb269ec winegstreamer: Add MFMPEG4SinkClassFactory. 2023-09-05 15:20:38 +02:00
Ziqing Hui f98f36123a mf/tests: Use h264 and aac in mp4 media sink tests. 2023-09-05 15:20:38 +02:00
Ziqing Hui b4be3b1b25 mf/tests: Add tests for h264 encoder. 2023-09-05 15:20:38 +02:00
Ziqing Hui c22b9defe7 mf/tests: Call check_attributes in check_mft_get_output_current_type_. 2023-09-05 15:20:38 +02:00
Rémi Bernon 8143a57500 mf/scheme_handler: Implement http(s):// scheme handler using urlmon. 2023-08-23 17:38:51 +02:00
Rémi Bernon fd3d0113f9 mf/tests: Add some network scheme resolver tests. 2023-08-23 17:38:51 +02:00
Nikolay Sivov 42811d775b mf: Implement MFCreateSequencerSegmentOffset().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-08-17 23:26:13 +02:00
Rémi Bernon f185161235 mf/tests: Add missing line end in test message. 2023-07-24 14:01:40 +02:00
Rémi Bernon 495cf276d0 mf/tests: Shutdown MF if MP4 source isn't supported. 2023-07-24 14:01:40 +02:00
Ziqing Hui 8e3f316cc9 winegstreamer: Implement Flush for WMV decoder DMO. 2023-06-15 10:03:41 +02:00
Ziqing Hui 8310d9cbde mf/tests: Split size info tests from test_wmv_decoder_media_object. 2023-06-09 10:34:25 +02:00
Ziqing Hui 0f71442e9c mf/tests: Split output type tests from test_wmv_decoder_media_object. 2023-06-09 10:34:25 +02:00
Ziqing Hui b2481f6522 mf/tests: Split input type tests from test_wmv_decoder_media_object. 2023-06-09 10:34:24 +02:00
Bernhard Kölbl 07d0f1f0c0 mf/tests: Remove duplicate call to MFStartup().
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-06-07 22:48:27 +02:00
Ziqing Hui 7acaf2511d mf/tests: Test output type for WMA decoder DMO. 2023-06-05 21:48:00 +02:00
Ziqing Hui e0ea1a4f66 mf/tests: Test input type for WMA decoder DMO. 2023-06-05 21:48:00 +02:00
Paul Gofman 4f4ee0e16b winegstreamer: Implement MFT_MESSAGE_COMMAND_FLUSH for the H264 decoder. 2023-06-02 20:47:29 +02:00
Paul Gofman 16347299c1 winegstreamer: Implement MFT_MESSAGE_COMMAND_DRAIN for the H264 decoder. 2023-06-02 20:47:29 +02:00
Paul Gofman 596dfad38b winegstreamer: Don't pre-check sample size in wg_transform_read_mf(). 2023-05-31 22:50:10 +02:00
Rémi Bernon 4d1a331c66 winegstreamer: Use the output wg_format in CAPS sink query.
Instead of constraining the output caps to the current resolution, which
breaks when streams with different resolutions are concatenated.
2023-05-31 22:50:10 +02:00
Rémi Bernon 52387aa1a4 winegstreamer: Generate H264 timestamps using the input type frame rate.
And remove h264parse element requirement.
2023-05-31 22:50:10 +02:00