MF_SOURCE_READER_DISABLE_DXVA attribute

Specifies whether the Source Reader enables DirectX Video Acceleration (DXVA) on the video decoder.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Remarks

This attribute applies if the following conditions are true:

This attribute enables the application to disable DXVA while still decoding to Direct3D surfaces.

By default, the source reader uses the Direct3D Device Manager for two purposes:

  • To enable DXVA decoding in the video decoder.
  • To allocate Direct3D surfaces for the video samples.

If the value of the MF_SOURCE_READER_DISABLE_DXVA attribute is TRUE, the source reader does disables DXVA decoding, although it still uses the Direct3D Device Manager to allocate Direct3D surfaces.

If the MF_SOURCE_READER_D3D_MANAGER attribute is not set, the MF_SOURCE_READER_DISABLE_DXVA attribute is ignored.

The default value of this attribute is FALSE, meaning that DXVA decoding is enabled when available.

Requirements

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

See also

Alphabetical List of Media Foundation Attributes

Source Reader

Source Reader Attributes