-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 添加 MFCreateDeviceSource - 添加 MFEnumDeviceSources - 添加 MFCreateAlignedMemoryBuffer - 添加 MFCreateAsyncResult - 添加 MFCreateAttributes - 添加 MFCreateEventQueue - 添加 MFCreateMediaBufferWrapper - 添加 MFCreateMediaEvent - 添加 MFCreateMediaType - 添加 MFCreateMemoryBuffer - 添加 MFCreatePresentationDescriptor - 添加 MFCreateSample - 添加 MFCreateStreamDescriptor - 添加 MFCreateWaveFormatExFromMFMediaType - 添加 MFFrameRateToAverageTimePerFrame - 添加 MFGetSystemTime - 添加 MFInitMediaTypeFromWaveFormatEx - 添加 MFShutdown - 添加 MFStartup - 添加 MFTEnumEx - 添加 MFCreateSourceReaderFromMediaSource
- Loading branch information
1 parent
d1cf4f6
commit bf520c2
Showing
10 changed files
with
677 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#if (YY_Thunks_Support_Version < NTDDI_WIN7) | ||
#include <mfidl.h> | ||
#endif | ||
|
||
namespace YY::Thunks | ||
{ | ||
#if (YY_Thunks_Support_Version < NTDDI_WIN7) | ||
|
||
// Minimum supported client Windows 7 [desktop apps only] | ||
// Minimum supported server Windows Server 2008 R2[desktop apps only] | ||
__DEFINE_THUNK( | ||
mf, | ||
8, | ||
HRESULT, | ||
STDAPICALLTYPE, | ||
MFCreateDeviceSource, | ||
_In_ IMFAttributes* pAttributes, | ||
_Outptr_ IMFMediaSource** ppSource | ||
) | ||
{ | ||
if (const auto _pfnMFCreateDeviceSource = try_get_MFCreateDeviceSource()) | ||
{ | ||
return _pfnMFCreateDeviceSource(pAttributes, ppSource); | ||
} | ||
|
||
if (!ppSource) | ||
return E_POINTER; | ||
|
||
*ppSource = nullptr; | ||
return E_NOTIMPL; | ||
} | ||
#endif | ||
|
||
|
||
#if (YY_Thunks_Support_Version < NTDDI_WIN7) | ||
|
||
// Minimum supported client Windows 7 [desktop apps only] | ||
// Minimum supported server Windows Server 2008 R2[desktop apps only] | ||
__DEFINE_THUNK( | ||
mf, | ||
12, | ||
HRESULT, | ||
STDAPICALLTYPE, | ||
MFEnumDeviceSources, | ||
_In_ IMFAttributes* pAttributes, | ||
_Outptr_result_buffer_(*pcSourceActivate) IMFActivate*** pppSourceActivate, | ||
_Out_ UINT32* pcSourceActivate | ||
) | ||
{ | ||
if (const auto _pfnMFEnumDeviceSources = try_get_MFEnumDeviceSources()) | ||
{ | ||
return _pfnMFEnumDeviceSources(pAttributes, pppSourceActivate, pcSourceActivate); | ||
} | ||
|
||
if (!pcSourceActivate) | ||
return E_POINTER; | ||
*pcSourceActivate = 0; | ||
|
||
if (!pppSourceActivate) | ||
return E_POINTER; | ||
*pppSourceActivate = nullptr; | ||
return E_NOTIMPL; | ||
} | ||
#endif | ||
} |
Oops, something went wrong.