MF_SOURCE_READER_D3D_MANAGER attribute
Contains a pointer to the Microsoft Direct3D Device Manager for the Source Reader.
Data type
IDirect3DDeviceManager9* or IMFDXGIDeviceManager* stored as IUnknown*
Get/set
To get this attribute, call IMFAttributes::GetUnknown.
To set this attribute, call IMFAttributes::SetUnknown.
Remarks
The value of this attribute can be a pointer to the IDirect3DDeviceManager9 interface or a IMFDXGIDeviceManager.
Use this attribute to provide a Direct3D device for any video decoders loaded by the source reader. If you set this attribute and the decoder supports Microsoft DirectX Video Acceleration (DXVA), the source reader uses the Direct3D device to allocate video buffers. These buffers are compatible with the DXVA 2 video processor. (See DXVA Video Processing.)
Use this attribute with the following functions:
Typically you would set this attribute if you are using the source reader to get decoded video frames and using Direct3D to display the frames. Setting this attribute enables the decoder to use DXVA.
You would not set this attribute if:
- You are using the source reader to process audio only and not video.
- You are getting compressed video from the source reader. In that case, the source reader does not create a decoder.
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