MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS attribute
Enables the source reader or sink writer to use hardware-based Media Foundation transforms (MFTs).
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 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:
- MFCreateSourceReaderFromByteStream
- MFCreateSourceReaderFromMediaSource
- MFCreateSourceReaderFromURL
- MFCreateSinkWriterFromMediaSink
- MFCreateSinkWriterFromURL
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps | UWP apps] |
Header |
|
See also