Signed-off-by: Nikolay Sivov nsivov@codeweavers.com ---
It's used to compare MF_ATTRIBUTE_BLOB attributes.
dlls/propsys/propvar.c | 13 ++++++- dlls/propsys/tests/propsys.c | 75 +++++++++++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 3 deletions(-)
diff --git a/dlls/propsys/propvar.c b/dlls/propsys/propvar.c index a18d83eabab..977fbebb918 100644 --- a/dlls/propsys/propvar.c +++ b/dlls/propsys/propvar.c @@ -798,7 +798,10 @@ static BOOL isemptyornull(const PROPVARIANT *propvar) if (propvar->vt == VT_CLSID) return !propvar->puuid;
- /* FIXME: vectors, byrefs, errors? */ + if (propvar->vt & VT_VECTOR) + return !propvar->caub.cElems; + + /* FIXME: byrefs, errors? */ return FALSE; }
@@ -807,6 +810,7 @@ INT WINAPI PropVariantCompareEx(REFPROPVARIANT propvar1, REFPROPVARIANT propvar2 { const PROPVARIANT *propvar2_converted; PROPVARIANT propvar2_static; + unsigned int count; HRESULT hr; INT res=-1;
@@ -894,6 +898,13 @@ INT WINAPI PropVariantCompareEx(REFPROPVARIANT propvar1, REFPROPVARIANT propvar2 res = memcmp(propvar1->puuid, propvar2->puuid, sizeof(*propvar1->puuid)); if (res) res = res > 0 ? 1 : -1; break; + case VT_VECTOR | VT_UI1: + count = min(propvar1->caub.cElems, propvar2->caub.cElems); + res = count ? memcmp(propvar1->caub.pElems, propvar2->caub.pElems, sizeof(*propvar1->caub.pElems) * count) : 0; + if (res) res = res > 0 ? 1 : -1; + if (!res && propvar1->caub.cElems != propvar2->caub.cElems) + res = propvar1->caub.cElems > propvar2->caub.cElems ? 1 : -1; + break; default: FIXME("vartype %#x not handled\n", propvar1->vt); res = -1; diff --git a/dlls/propsys/tests/propsys.c b/dlls/propsys/tests/propsys.c index 07d035376d9..9ffa048a8b7 100644 --- a/dlls/propsys/tests/propsys.c +++ b/dlls/propsys/tests/propsys.c @@ -666,15 +666,18 @@ static void test_PropVariantToStringAlloc(void) CoTaskMemFree(str); }
-static void test_PropVariantCompare(void) +static void test_PropVariantCompareEx(void) { PROPVARIANT empty, null, emptyarray, i2_0, i2_2, i4_large, i4_largeneg, i4_2, str_2, str_02, str_b; PROPVARIANT clsid_null, clsid, clsid2, r4_0, r4_2, r8_0, r8_2; + PROPVARIANT var1, var2; INT res; static const WCHAR str_2W[] = {'2', 0}; static const WCHAR str_02W[] = {'0', '2', 0}; static const WCHAR str_bW[] = {'b', 0}; SAFEARRAY emptysafearray; + unsigned char bytevector1[] = {1,2,3}; + unsigned char bytevector2[] = {4,5,6};
PropVariantInit(&empty); PropVariantInit(&null); @@ -847,6 +850,74 @@ todo_wine res = PropVariantCompareEx(&r8_2, &r8_0, 0, 0); ok(res == 1, "res=%i\n", res);
+ /* VT_VECTOR | VT_UI1 */ + var1.vt = VT_VECTOR | VT_UI1; + var1.caub.cElems = 1; + var1.caub.pElems = bytevector1; + var2.vt = VT_VECTOR | VT_UI1; + var2.caub.cElems = 1; + var2.caub.pElems = bytevector2; + + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == -1, "res=%i\n", res); + + res = PropVariantCompareEx(&var2, &var1, 0, 0); + ok(res == 1, "res=%i\n", res); + + /* Vector length mismatch */ + var1.caub.cElems = 2; + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == -1, "res=%i\n", res); + + res = PropVariantCompareEx(&var2, &var1, 0, 0); + ok(res == 1, "res=%i\n", res); + + var1.caub.pElems = bytevector2; + var2.caub.pElems = bytevector1; + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == 1, "res=%i\n", res); + + var1.caub.pElems = bytevector1; + var2.caub.pElems = bytevector2; + + var1.caub.cElems = 1; + var2.caub.cElems = 2; + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == -1, "res=%i\n", res); + + res = PropVariantCompareEx(&var2, &var1, 0, 0); + ok(res == 1, "res=%i\n", res); + + /* Length mismatch over same data */ + var1.caub.pElems = bytevector1; + var2.caub.pElems = bytevector1; + + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == -1, "res=%i\n", res); + + res = PropVariantCompareEx(&var2, &var1, 0, 0); + ok(res == 1, "res=%i\n", res); + + var1.caub.cElems = 1; + var2.caub.cElems = 1; + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == 0, "res=%i\n", res); + + var1.caub.cElems = 0; + res = PropVariantCompareEx(&var1, &var2, 0, PVCF_TREATEMPTYASGREATERTHAN); + ok(res == 1, "res=%i\n", res); + res = PropVariantCompareEx(&var2, &var1, 0, PVCF_TREATEMPTYASGREATERTHAN); + ok(res == -1, "res=%i\n", res); + + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == -1, "res=%i\n", res); + res = PropVariantCompareEx(&var2, &var1, 0, 0); + ok(res == 1, "res=%i\n", res); + + var2.caub.cElems = 0; + res = PropVariantCompareEx(&var1, &var2, 0, 0); + ok(res == 0, "res=%i\n", res); + SysFreeString(str_2.bstrVal); SysFreeString(str_02.bstrVal); SysFreeString(str_b.bstrVal); @@ -1957,7 +2028,7 @@ START_TEST(propsys) test_InitPropVariantFromBuffer(); test_PropVariantToGUID(); test_PropVariantToStringAlloc(); - test_PropVariantCompare(); + test_PropVariantCompareEx(); test_intconversions(); test_PropVariantChangeType_LPWSTR(); test_PropVariantToBoolean();
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/evr/mixer.c | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-)
diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c index c18bf0450bf..187a13be364 100644 --- a/dlls/evr/mixer.c +++ b/dlls/evr/mixer.c @@ -664,6 +664,7 @@ static HRESULT video_mixer_collect_output_types(struct video_mixer *mixer, const unsigned int i, j, format_count, count; struct rt_format *rt_formats = NULL, *ptr; HRESULT hr = MF_E_INVALIDMEDIATYPE; + MFVideoArea aperture; D3DFORMAT *formats; GUID subtype;
@@ -691,29 +692,32 @@ static HRESULT video_mixer_collect_output_types(struct video_mixer *mixer, const
if (count && !(flags & MFT_SET_TYPE_TEST_ONLY)) { + if (!(mixer->output.rt_formats = calloc(count, sizeof(*mixer->output.rt_formats)))) + { + free(rt_formats); + return E_OUTOFMEMORY; + } + memcpy(&subtype, &MFVideoFormat_Base, sizeof(subtype)); - if ((mixer->output.rt_formats = calloc(count, sizeof(*mixer->output.rt_formats)))) + memset(&aperture, 0, sizeof(aperture)); + aperture.Area.cx = video_desc->SampleWidth; + aperture.Area.cy = video_desc->SampleHeight; + for (i = 0; i < count; ++i) { - for (i = 0; i < count; ++i) - { - IMFMediaType *rt_media_type; + IMFMediaType *rt_media_type;
- subtype.Data1 = rt_formats[i].format; - mixer->output.rt_formats[i] = rt_formats[i]; + subtype.Data1 = rt_formats[i].format; + mixer->output.rt_formats[i] = rt_formats[i];
- MFCreateMediaType(&rt_media_type); - IMFMediaType_CopyAllItems(media_type, (IMFAttributes *)rt_media_type); - IMFMediaType_SetGUID(rt_media_type, &MF_MT_SUBTYPE, &subtype); + MFCreateMediaType(&rt_media_type); + IMFMediaType_CopyAllItems(media_type, (IMFAttributes *)rt_media_type); + IMFMediaType_SetGUID(rt_media_type, &MF_MT_SUBTYPE, &subtype); + IMFMediaType_SetBlob(rt_media_type, &MF_MT_GEOMETRIC_APERTURE, (const UINT8 *)&aperture, sizeof(aperture)); + IMFMediaType_SetBlob(rt_media_type, &MF_MT_MINIMUM_DISPLAY_APERTURE, (const UINT8 *)&aperture, sizeof(aperture));
- mixer->output.rt_formats[i].media_type = rt_media_type; - } - mixer->output.rt_formats_count = count; - } - else - { - hr = E_OUTOFMEMORY; - count = 0; + mixer->output.rt_formats[i].media_type = rt_media_type; } + mixer->output.rt_formats_count = count; }
free(rt_formats);
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/evr/presenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/evr/presenter.c b/dlls/evr/presenter.c index 414ba5bcaa0..e9890c9f6e4 100644 --- a/dlls/evr/presenter.c +++ b/dlls/evr/presenter.c @@ -334,7 +334,7 @@ static HRESULT video_presenter_configure_output_type(struct video_presenter *pre if (SUCCEEDED(hr)) hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, stride); if (SUCCEEDED(hr)) - hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, stride); + hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, size); }
return hr;
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/evr/presenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/evr/presenter.c b/dlls/evr/presenter.c index e9890c9f6e4..fa116c18ccc 100644 --- a/dlls/evr/presenter.c +++ b/dlls/evr/presenter.c @@ -332,7 +332,7 @@ static HRESULT video_presenter_configure_output_type(struct video_presenter *pre if (SUCCEEDED(hr)) hr = MFGetPlaneSize(subtype.Data1, aperture->Area.cx, aperture->Area.cy, &size); if (SUCCEEDED(hr)) - hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, stride); + hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, abs(stride)); if (SUCCEEDED(hr)) hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, size); }
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/evr/evr.spec | 2 +- dlls/mfplat/mediatype.c | 52 ++++++++++++++++++ dlls/mfplat/mfplat.spec | 2 +- dlls/mfplat/tests/mfplat.c | 106 +++++++++++++++++++++++++++++++++++++ include/mfapi.h | 1 + 5 files changed, 161 insertions(+), 2 deletions(-)
diff --git a/dlls/evr/evr.spec b/dlls/evr/evr.spec index 67eee3122cf..a655e1cdd07 100644 --- a/dlls/evr/evr.spec +++ b/dlls/evr/evr.spec @@ -24,5 +24,5 @@ @ stub MFGetStrideForBitmapInfoHeader @ stub MFGetUncompressedVideoFormat @ stub MFInitVideoFormat -@ stub MFInitVideoFormat_RGB +@ stdcall -import MFInitVideoFormat_RGB(ptr long long long) @ stub MFIsFormatYUV diff --git a/dlls/mfplat/mediatype.c b/dlls/mfplat/mediatype.c index 61f1a75d90b..4f24ccbd237 100644 --- a/dlls/mfplat/mediatype.c +++ b/dlls/mfplat/mediatype.c @@ -3443,3 +3443,55 @@ DXGI_FORMAT WINAPI MFMapDX9FormatToDXGIFormat(DWORD format) return DXGI_FORMAT_UNKNOWN; } } + +/*********************************************************************** + * MFInitVideoFormat_RGB (mfplat.@) + */ +HRESULT WINAPI MFInitVideoFormat_RGB(MFVIDEOFORMAT *format, DWORD width, DWORD height, DWORD d3dformat) +{ + unsigned int transfer_function; + + TRACE("%p, %u, %u, %#x.\n", format, width, height, d3dformat); + + if (!format) + return E_INVALIDARG; + + if (!d3dformat) d3dformat = D3DFMT_X8R8G8B8; + + switch (d3dformat) + { + case D3DFMT_X8R8G8B8: + case D3DFMT_R8G8B8: + case D3DFMT_A8R8G8B8: + case D3DFMT_R5G6B5: + case D3DFMT_X1R5G5B5: + case D3DFMT_A2B10G10R10: + case D3DFMT_P8: + transfer_function = MFVideoTransFunc_sRGB; + break; + default: + transfer_function = MFVideoTransFunc_10; + } + + memset(format, 0, sizeof(*format)); + format->dwSize = sizeof(*format); + format->videoInfo.dwWidth = width; + format->videoInfo.dwHeight = height; + format->videoInfo.PixelAspectRatio.Numerator = 1; + format->videoInfo.PixelAspectRatio.Denominator = 1; + format->videoInfo.InterlaceMode = MFVideoInterlace_Progressive; + format->videoInfo.TransferFunction = transfer_function; + format->videoInfo.ColorPrimaries = MFVideoPrimaries_BT709; + format->videoInfo.SourceLighting = MFVideoLighting_office; + format->videoInfo.FramesPerSecond.Numerator = 60; + format->videoInfo.FramesPerSecond.Denominator = 1; + format->videoInfo.NominalRange = MFNominalRange_Normal; + format->videoInfo.GeometricAperture.Area.cx = width; + format->videoInfo.GeometricAperture.Area.cy = height; + format->videoInfo.MinimumDisplayAperture = format->videoInfo.GeometricAperture; + memcpy(&format->guidFormat, &MFVideoFormat_Base, sizeof(format->guidFormat)); + format->guidFormat.Data1 = d3dformat; + format->surfaceInfo.Format = d3dformat; + + return S_OK; +} diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec index 9a78c2fb0bc..6cc3fb07105 100644 --- a/dlls/mfplat/mfplat.spec +++ b/dlls/mfplat/mfplat.spec @@ -127,7 +127,7 @@ @ stub MFInitMediaTypeFromVideoInfoHeader @ stdcall MFInitMediaTypeFromWaveFormatEx(ptr ptr long) @ stub MFInitVideoFormat -@ stub MFInitVideoFormat_RGB +@ stdcall MFInitVideoFormat_RGB(ptr long long long) @ stdcall MFInvokeCallback(ptr) @ stub MFJoinIoPort @ stdcall MFJoinWorkQueue(long long ptr) rtworkq.RtwqJoinWorkQueue diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c index 65ab72bd57b..ae9bd60c6df 100644 --- a/dlls/mfplat/tests/mfplat.c +++ b/dlls/mfplat/tests/mfplat.c @@ -264,6 +264,7 @@ static HRESULT (WINAPI *pMFCreateVideoMediaTypeFromSubtype)(const GUID *subtype, static HRESULT (WINAPI *pMFLockSharedWorkQueue)(const WCHAR *name, LONG base_priority, DWORD *taskid, DWORD *queue); static HRESULT (WINAPI *pMFLockDXGIDeviceManager)(UINT *token, IMFDXGIDeviceManager **manager); static HRESULT (WINAPI *pMFUnlockDXGIDeviceManager)(void); +static HRESULT (WINAPI *pMFInitVideoFormat_RGB)(MFVIDEOFORMAT *format, DWORD width, DWORD height, DWORD d3dformat);
static HWND create_window(void) { @@ -937,6 +938,7 @@ static void init_functions(void) X(MFCreateVideoSampleAllocatorEx); X(MFGetPlaneSize); X(MFGetStrideForBitmapInfoHeader); + X(MFInitVideoFormat_RGB); X(MFLockDXGIDeviceManager); X(MFLockSharedWorkQueue); X(MFMapDX9FormatToDXGIFormat); @@ -7206,6 +7208,109 @@ static void test_shared_dxgi_device_manager(void) ok(hr == S_OK, "Unexpected hr %#x.\n", hr); }
+static void check_video_format(const MFVIDEOFORMAT *format, unsigned int width, unsigned int height, + DWORD d3dformat) +{ + unsigned int transfer_function; + GUID guid; + + if (!d3dformat) d3dformat = D3DFMT_X8R8G8B8; + + switch (d3dformat) + { + case D3DFMT_X8R8G8B8: + case D3DFMT_R8G8B8: + case D3DFMT_A8R8G8B8: + case D3DFMT_R5G6B5: + case D3DFMT_X1R5G5B5: + case D3DFMT_A2B10G10R10: + case D3DFMT_P8: + transfer_function = MFVideoTransFunc_sRGB; + break; + default: + transfer_function = MFVideoTransFunc_10; + } + + memcpy(&guid, &MFVideoFormat_Base, sizeof(guid)); + guid.Data1 = d3dformat; + + ok(format->dwSize == sizeof(*format), "Unexpected format size.\n"); + ok(format->videoInfo.dwWidth == width, "Unexpected width %u.\n", format->videoInfo.dwWidth); + ok(format->videoInfo.dwHeight == height, "Unexpected height %u.\n", format->videoInfo.dwHeight); + ok(format->videoInfo.PixelAspectRatio.Numerator == 1 && + format->videoInfo.PixelAspectRatio.Denominator == 1, "Unexpected PAR.\n"); + ok(format->videoInfo.SourceChromaSubsampling == MFVideoChromaSubsampling_Unknown, "Unexpected chroma subsampling.\n"); + ok(format->videoInfo.InterlaceMode == MFVideoInterlace_Progressive, "Unexpected interlace mode %u.\n", + format->videoInfo.InterlaceMode); + ok(format->videoInfo.TransferFunction == transfer_function, "Unexpected transfer function %u.\n", + format->videoInfo.TransferFunction); + ok(format->videoInfo.ColorPrimaries == MFVideoPrimaries_BT709, "Unexpected color primaries %u.\n", + format->videoInfo.ColorPrimaries); + ok(format->videoInfo.TransferMatrix == MFVideoTransferMatrix_Unknown, "Unexpected transfer matrix.\n"); + ok(format->videoInfo.SourceLighting == MFVideoLighting_office, "Unexpected source lighting %u.\n", + format->videoInfo.SourceLighting); + ok(format->videoInfo.FramesPerSecond.Numerator == 60 && + format->videoInfo.FramesPerSecond.Denominator == 1, "Unexpected frame rate %u/%u.\n", + format->videoInfo.FramesPerSecond.Numerator, format->videoInfo.FramesPerSecond.Denominator); + ok(format->videoInfo.NominalRange == MFNominalRange_Normal, "Unexpected nominal range %u.\n", + format->videoInfo.NominalRange); + ok(format->videoInfo.GeometricAperture.Area.cx == width && format->videoInfo.GeometricAperture.Area.cy == height, + "Unexpected geometric aperture.\n"); + ok(!memcmp(&format->videoInfo.GeometricAperture, &format->videoInfo.MinimumDisplayAperture, sizeof(MFVideoArea)), + "Unexpected minimum display aperture.\n"); + ok(format->videoInfo.PanScanAperture.Area.cx == 0 && format->videoInfo.PanScanAperture.Area.cy == 0, + "Unexpected geometric aperture.\n"); + ok(format->videoInfo.VideoFlags == 0, "Unexpected video flags.\n"); + ok(IsEqualGUID(&format->guidFormat, &guid), "Unexpected format guid %s.\n", wine_dbgstr_guid(&format->guidFormat)); + ok(format->compressedInfo.AvgBitrate == 0, "Unexpected bitrate.\n"); + ok(format->compressedInfo.AvgBitErrorRate == 0, "Unexpected error bitrate.\n"); + ok(format->compressedInfo.MaxKeyFrameSpacing == 0, "Unexpected MaxKeyFrameSpacing.\n"); + ok(format->surfaceInfo.Format == d3dformat, "Unexpected format %u.\n", format->surfaceInfo.Format); + ok(format->surfaceInfo.PaletteEntries == 0, "Unexpected palette size %u.\n", format->surfaceInfo.PaletteEntries); +} + +static void test_MFInitVideoFormat_RGB(void) +{ + static const DWORD formats[] = + { + 0, /* same D3DFMT_X8R8G8B8 */ + D3DFMT_X8R8G8B8, + D3DFMT_R8G8B8, + D3DFMT_A8R8G8B8, + D3DFMT_R5G6B5, + D3DFMT_X1R5G5B5, + D3DFMT_A2B10G10R10, + D3DFMT_P8, + D3DFMT_L8, + D3DFMT_YUY2, + D3DFMT_DXT1, + D3DFMT_D16, + D3DFMT_L16, + D3DFMT_A16B16G16R16F, + }; + MFVIDEOFORMAT format; + unsigned int i; + HRESULT hr; + + if (!pMFInitVideoFormat_RGB) + { + win_skip("MFInitVideoFormat_RGB is not available.\n"); + return; + } + + hr = pMFInitVideoFormat_RGB(NULL, 64, 32, 0); + ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr); + + for (i = 0; i < ARRAY_SIZE(formats); ++i) + { + memset(&format, 0, sizeof(format)); + hr = pMFInitVideoFormat_RGB(&format, 64, 32, formats[i]); + ok(hr == S_OK, "Unexpected hr %#x.\n", hr); + if (SUCCEEDED(hr)) + check_video_format(&format, 64, 32, formats[i]); + } +} + START_TEST(mfplat) { char **argv; @@ -7272,6 +7377,7 @@ START_TEST(mfplat) test_MFMapDX9FormatToDXGIFormat(); test_MFllMulDiv(); test_shared_dxgi_device_manager(); + test_MFInitVideoFormat_RGB();
CoUninitialize(); } diff --git a/include/mfapi.h b/include/mfapi.h index a3945bd3a7d..e4a1f6a3dc0 100644 --- a/include/mfapi.h +++ b/include/mfapi.h @@ -552,6 +552,7 @@ HRESULT WINAPI MFTEnumEx(GUID category, UINT32 flags, const MFT_REGISTER_TYPE_IN UINT32 *pcount); HRESULT WINAPI MFInitAttributesFromBlob(IMFAttributes *attributes, const UINT8 *buffer, UINT size); HRESULT WINAPI MFInitMediaTypeFromWaveFormatEx(IMFMediaType *mediatype, const WAVEFORMATEX *format, UINT32 size); +HRESULT WINAPI MFInitVideoFormat_RGB(MFVIDEOFORMAT *format, DWORD width, DWORD height, DWORD d3dformat); HRESULT WINAPI MFInvokeCallback(IMFAsyncResult *result); LONGLONG WINAPI MFllMulDiv(LONGLONG val, LONGLONG num, LONGLONG denom, LONGLONG factor); HRESULT WINAPI MFLockDXGIDeviceManager(UINT *token, IMFDXGIDeviceManager **manager);
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/evr/evr.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/evr/evr.spec b/dlls/evr/evr.spec index a655e1cdd07..8aea0a607a8 100644 --- a/dlls/evr/evr.spec +++ b/dlls/evr/evr.spec @@ -21,7 +21,7 @@ @ stdcall MFCreateVideoSampleAllocator(ptr ptr) @ stdcall MFCreateVideoSampleFromSurface(ptr ptr) @ stdcall -import MFGetPlaneSize(long long long ptr) -@ stub MFGetStrideForBitmapInfoHeader +@ stdcall -import MFGetStrideForBitmapInfoHeader(long long ptr) @ stub MFGetUncompressedVideoFormat @ stub MFInitVideoFormat @ stdcall -import MFInitVideoFormat_RGB(ptr long long long)