Enables the source reader or sink writer to use hardware-based Media Foundation transforms (MFTs).

Data type



To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.


By default, the source reader and sink writer do not use hardware decoders or encoders. To enable the use of hardware MFTs, set this attribute to TRUE when you create the source reader or sink writer.

Use this attribute with the following functions:

There is one exception to the default behavior. The source reader and sink writer automatically use MFTs that are registered locally in the caller's process. To register an MFT locally, call MFTRegisterLocal or MFTRegisterLocalByCLSID. Hardware MFTs that are registered locally are used even if the MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS attribute is not set.

This attribute does not affect hardware-accelerated video decoding that uses DirectX Video Acceleration (DXVA). To enable DXVA decoding in the source reader, set the MF_SOURCE_READER_D3D_MANAGER attribute.

If this attribute is TRUE, do not set the MF_READWRITE_DISABLE_CONVERTERS attribute.


Requirement Value
Minimum supported client
Windows 7 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 R2 [desktop apps | UWP apps]

See also

Alphabetical List of Media Foundation Attributes

Sink Writer Attributes

Source Reader Attributes