Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
- MFCreateSourceReaderFromByteStream
- MFCreateSourceReaderFromMediaSource
- MFCreateSourceReaderFromURL
- MFCreateSinkWriterFromMediaSink
- MFCreateSinkWriterFromURL
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 Version 25H2 |
Minimum supported server | Windows Server Version 25H2 |
Header | Mfreadwrite.h |