mf/tests: Add some H264 decoder GetOutputStreamInfo tests.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
65cb088386
commit
1d99367ed5
|
@ -6535,6 +6535,7 @@ static void test_h264_decoder(void)
|
||||||
|
|
||||||
MFT_REGISTER_TYPE_INFO input_type = {MFMediaType_Video, MFVideoFormat_H264};
|
MFT_REGISTER_TYPE_INFO input_type = {MFMediaType_Video, MFVideoFormat_H264};
|
||||||
MFT_REGISTER_TYPE_INFO output_type = {MFMediaType_Video, MFVideoFormat_NV12};
|
MFT_REGISTER_TYPE_INFO output_type = {MFMediaType_Video, MFVideoFormat_NV12};
|
||||||
|
MFT_OUTPUT_STREAM_INFO output_info;
|
||||||
MFT_INPUT_STREAM_INFO input_info;
|
MFT_INPUT_STREAM_INFO input_info;
|
||||||
IMFMediaType *media_type;
|
IMFMediaType *media_type;
|
||||||
IMFTransform *transform;
|
IMFTransform *transform;
|
||||||
|
@ -6585,6 +6586,18 @@ static void test_h264_decoder(void)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(input_info.cbAlignment == 0, "got cbAlignment %#x\n", input_info.cbAlignment);
|
ok(input_info.cbAlignment == 0, "got cbAlignment %#x\n", input_info.cbAlignment);
|
||||||
|
|
||||||
|
flags = MFT_OUTPUT_STREAM_WHOLE_SAMPLES | MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||||
|
memset(&output_info, 0xcd, sizeof(output_info));
|
||||||
|
hr = IMFTransform_GetOutputStreamInfo(transform, 0, &output_info);
|
||||||
|
todo_wine
|
||||||
|
ok(hr == S_OK, "GetOutputStreamInfo returned %#x\n", hr);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.dwFlags == flags, "got dwFlags %#x\n", output_info.dwFlags);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbSize == 0x3fc000, "got cbSize %#x\n", output_info.cbSize);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbAlignment == 0, "got cbAlignment %#x\n", output_info.cbAlignment);
|
||||||
|
|
||||||
i = -1;
|
i = -1;
|
||||||
while (SUCCEEDED(hr = IMFTransform_GetInputAvailableType(transform, 0, ++i, &media_type)))
|
while (SUCCEEDED(hr = IMFTransform_GetInputAvailableType(transform, 0, ++i, &media_type)))
|
||||||
{
|
{
|
||||||
|
@ -6619,6 +6632,19 @@ static void test_h264_decoder(void)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(ret == 1, "Release returned %u\n", ret);
|
ok(ret == 1, "Release returned %u\n", ret);
|
||||||
|
|
||||||
|
flags = MFT_OUTPUT_STREAM_WHOLE_SAMPLES | MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||||
|
memset(&output_info, 0xcd, sizeof(output_info));
|
||||||
|
hr = IMFTransform_GetOutputStreamInfo(transform, 0, &output_info);
|
||||||
|
todo_wine
|
||||||
|
ok(hr == S_OK, "GetOutputStreamInfo returned %#x\n", hr);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.dwFlags == flags, "got dwFlags %#x\n", output_info.dwFlags);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbSize == 0x3f4800 || broken(output_info.cbSize == 0x3fc000) /* Win7 */,
|
||||||
|
"got cbSize %#x\n", output_info.cbSize);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbAlignment == 0, "got cbAlignment %#x\n", output_info.cbAlignment);
|
||||||
|
|
||||||
/* output types can now be enumerated (though they are actually the same for all input types) */
|
/* output types can now be enumerated (though they are actually the same for all input types) */
|
||||||
|
|
||||||
i = -1;
|
i = -1;
|
||||||
|
@ -6687,6 +6713,19 @@ static void test_h264_decoder(void)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(input_info.cbAlignment == 0, "got cbAlignment %#x\n", input_info.cbAlignment);
|
ok(input_info.cbAlignment == 0, "got cbAlignment %#x\n", input_info.cbAlignment);
|
||||||
|
|
||||||
|
flags = MFT_OUTPUT_STREAM_WHOLE_SAMPLES | MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER | MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE;
|
||||||
|
memset(&output_info, 0xcd, sizeof(output_info));
|
||||||
|
hr = IMFTransform_GetOutputStreamInfo(transform, 0, &output_info);
|
||||||
|
todo_wine
|
||||||
|
ok(hr == S_OK, "GetOutputStreamInfo returned %#x\n", hr);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.dwFlags == flags, "got dwFlags %#x\n", output_info.dwFlags);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbSize == 0x3f4800 || broken(output_info.cbSize == 0x3fc000) /* Win7 */,
|
||||||
|
"got cbSize %#x\n", output_info.cbSize);
|
||||||
|
todo_wine
|
||||||
|
ok(output_info.cbAlignment == 0, "got cbAlignment %#x\n", output_info.cbAlignment);
|
||||||
|
|
||||||
ret = IMFTransform_Release(transform);
|
ret = IMFTransform_Release(transform);
|
||||||
ok(ret == 0, "Release returned %u\n", ret);
|
ok(ret == 0, "Release returned %u\n", ret);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue