Module: wine Branch: master Commit: bc467de573830e38ac3a618fe73fa4cfec935a0e URL: https://gitlab.winehq.org/wine/wine/-/commit/bc467de573830e38ac3a618fe73fa4c...
Author: Ziqing Hui zhui@codeweavers.com Date: Thu Dec 22 10:45:35 2022 +0800
mfplat/tests: Test MFGetStrideForBitmapInfoHeader for NV11.
---
dlls/mfplat/tests/mfplat.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c index 13055d4c5e4..f8bd56698b1 100644 --- a/dlls/mfplat/tests/mfplat.c +++ b/dlls/mfplat/tests/mfplat.c @@ -5739,6 +5739,9 @@ static void test_MFGetStrideForBitmapInfoHeader(void) { &MFVideoFormat_IYUV, 2, 2 }, { &MFVideoFormat_IYUV, 3, 3 }, { &MFVideoFormat_IYUV, 320, 320 }, + { &MFVideoFormat_NV11, 1, 1 }, + { &MFVideoFormat_NV11, 2, 2 }, + { &MFVideoFormat_NV11, 3, 3 }, }; unsigned int i; LONG stride; @@ -5756,7 +5759,9 @@ static void test_MFGetStrideForBitmapInfoHeader(void) for (i = 0; i < ARRAY_SIZE(stride_tests); ++i) { hr = pMFGetStrideForBitmapInfoHeader(stride_tests[i].subtype->Data1, stride_tests[i].width, &stride); + todo_wine_if(IsEqualGUID(stride_tests[i].subtype, &MFVideoFormat_NV11)) ok(hr == S_OK, "%u: failed to get stride, hr %#lx.\n", i, hr); + todo_wine_if(IsEqualGUID(stride_tests[i].subtype, &MFVideoFormat_NV11)) ok(stride == stride_tests[i].stride, "%u: format %s, unexpected stride %ld, expected %ld.\n", i, wine_dbgstr_an((char *)&stride_tests[i].subtype->Data1, 4), stride, stride_tests[i].stride); }