IMFDeviceTransform::GetOutputCurrentType method (mftransform.h)
The GetOutputCurrentType method gets the current media type for an output stream on this Media Foundation transform (MFT).
Syntax
HRESULT GetOutputCurrentType(
[in] DWORD dwOutputStreamID,
[out] IMFMediaType **pMediaType
);
Parameters
[in] dwOutputStreamID
Output stream identifier. To get the list of stream identifiers, call IMFDeviceTransform::GetStreamIDs.
[out] pMediaType
Receives a pointer to the IMFMediaType interface that represents the current type used by that stream.
Return value
The method returns an HRESULT. Possible values include but not limited to values given in the following table.
Return code | Description |
---|---|
|
Initialization succeeded |
|
Device MFT could not support the request at this time. |
|
The stream ID is not valid. |
|
There is no media type available with the specified index. |
|
No media type has been set yet. |
Remarks
If the specified output stream does not yet have a media type, the method returns MF_E_TRANSFORM_TYPE_NOT_SET.
Implementation notes
The MFT should return a clone of the media type, not a pointer to the original type. Otherwise, the caller might modify the type and alter the internal state of the MFT.Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1703 |
Target Platform | Windows |
Header | mftransform.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for