MFCreateTranscodeTopologyFromByteStream function
Creates a topology for transcoding to a byte stream.
Syntax
HRESULT MFCreateTranscodeTopologyFromByteStream( _In_ IMFMediaSource *pSrc, _In_ IMFByteStream *pOutputStream, _In_ IMFTranscodeProfile *pProfile, _Out_ IMFTopology **ppTranscodeTopo );
Parameters
- pSrc [in]
-
A pointer to the IMFMediaSource interface of a media source. The media source provides that source content for transcoding.
- pOutputStream [in]
-
A pointer to the IMFByteStream interface of a byte stream. The transcoded output will be written to this byte stream.
- pProfile [in]
-
A pointer to the IMFTranscodeProfile interface of a transcoding profile.
- ppTranscodeTopo [out]
-
Receives a pointer to the IMFTopology interface. The caller must release the interface.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This function creates a partial topology that contains the media source, the encoder, and the media sink.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also