IMFSinkWriterEx::GetTransformForStream method (mfreadwrite.h)
Gets a pointer to a Media Foundation transform (MFT) for a specified stream.
Syntax
HRESULT GetTransformForStream(
[in] DWORD dwStreamIndex,
[in] DWORD dwTransformIndex,
[out] GUID *pGuidCategory,
[out] IMFTransform **ppTransform
);
Parameters
[in] dwStreamIndex
The zero-based index of a stream.
[in] dwTransformIndex
The zero-based index of the MFT to retrieve.
[out] pGuidCategory
Receives a pointer to a GUID that specifies the category of the MFT. For a list of possible values, see MFT_CATEGORY.
[out] ppTransform
Receives a pointer to the IMFTransform interface of the MFT. The caller must release the interface.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfreadwrite.h |