Skip to content

Latest commit

 

History

History
130 lines (101 loc) · 4.2 KB

nf-mftransform-imftransform-getoutputcurrenttype.md

File metadata and controls

130 lines (101 loc) · 4.2 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mftransform.IMFTransform.GetOutputCurrentType
IMFTransform::GetOutputCurrentType (mftransform.h)
Gets the current media type for an output stream on this Media Foundation transform (MFT).
433c1918-4b87-40b1-a32b-db5cdd74d769
GetOutputCurrentType
GetOutputCurrentType method [Media Foundation]
GetOutputCurrentType method [Media Foundation]
IMFTransform interface
IMFTransform interface [Media Foundation]
GetOutputCurrentType method
IMFTransform.GetOutputCurrentType
IMFTransform::GetOutputCurrentType
mf.imftransform_getoutputcurrenttype
mftransform/IMFTransform::GetOutputCurrentType
mf\imftransform_getoutputcurrenttype.htm
mf
433c1918-4b87-40b1-a32b-db5cdd74d769
12/05/2018
433c1918-4b87-40b1-a32b-db5cdd74d769, GetOutputCurrentType, GetOutputCurrentType method [Media Foundation], GetOutputCurrentType method [Media Foundation],IMFTransform interface, IMFTransform interface [Media Foundation],GetOutputCurrentType method, IMFTransform.GetOutputCurrentType, IMFTransform::GetOutputCurrentType, mf.imftransform_getoutputcurrenttype, mftransform/IMFTransform::GetOutputCurrentType
mftransform.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfuuid.lib
Windows
19H1
IMFTransform::GetOutputCurrentType
mftransform/IMFTransform::GetOutputCurrentType
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFTransform.GetOutputCurrentType

IMFTransform::GetOutputCurrentType

-description

Gets the current media type for an output stream on this Media Foundation transform (MFT).

-parameters

-param dwOutputStreamID [in]

Output stream identifier. To get the list of stream identifiers, call IMFTransform::GetStreamIDs.

-param ppType [out]

Receives a pointer to the IMFMediaType interface. The caller must release the interface.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_INVALIDSTREAMNUMBER
Invalid stream identifier.
MF_E_TRANSFORM_TYPE_NOT_SET
The output media type has not been set.

-remarks

If the specified output stream does not yet have a media type, the method returns MF_E_TRANSFORM_TYPE_NOT_SET. Most MFTs do not set any default media types when first created. Instead, the client must set the media type by calling IMFTransform::SetOutputType.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputCurrentType. See Creating Hybrid DMO/MFT Objects.

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.

-see-also

IMFTransform

Media Foundation Transforms