Edit

Share via


MF_READWRITE_USE_ONLY_HARDWARE_TRANSFORMS attribute

Specifies that the Source Reader or Sink Writer should load only hardware-based Media Foundation transforms (MFTs) that match the passed-in D3D device manager.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Remarks

By default, the Source Reader and Sink Writer will use any transform that matches the media type, including software decoders and encoders. Set this attribute to TRUE to ensure that the Source Reader or Sink Writer use only hardware MFTs that match the passed in D3D device manager through the MF_SOURCE_READER_D3D_MANAGER or MF_SINK_WRITER_D3D_MANAGER attributes. If a matching hardware MFT is not found, then the Source Reader or Sink Writer API attempting to create the transform chain will fail with an appropriate error code.

If the D3D device manager is not passed in or if the MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS attribute is not set, this attribute has no effect.

Use this attribute with the following functions:

Requirements

Requirement Value
Minimum supported client Windows 11 Version 25H2
Minimum supported server Windows Server Version 25H2
Header Mfreadwrite.h

See also

Alphabetical List of Media Foundation Attributes

Sink Writer Attributes

Source Reader Attributes