共用方式為


IWMCodecAMVideoAccelerator interface (wmdxva.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

This interface is exposed by the Windows Media Decoder DMO and is called by a media player source filter to set up the various connections required to enable DirectX® video acceleration (VA) for decoding of Windows Media-based video content. A player obtains this interface by calling the IWMReaderAccelerator::GetCodecInterface method, which is exposed on the reader object.

Inheritance

The IWMCodecAMVideoAccelerator interface inherits from the IUnknown interface. IWMCodecAMVideoAccelerator also has these types of members:

Methods

The IWMCodecAMVideoAccelerator interface has these methods.

 
IWMCodecAMVideoAccelerator::NegotiateConnection

The NegotiateConnection method is called by the output pin on the player's source filter during the connection process when it has been given a DirectX VA media type.
IWMCodecAMVideoAccelerator::SetAcceleratorInterface

The SetAcceleratorInterface method is called by the output pin on the player's source filter to pass the IAMVideoAccelerator interface on the Video Mixing Renderer (VMR) to the decoder DMO.
IWMCodecAMVideoAccelerator::SetPlayerNotify

The SetPlayerNotify method is called by the output pin on the source filter to provide the decoder DMO with the source filter's IWMPlayerTimestampHook interface to enable the source filter to update the time stamps on the samples before they are delivered to the renderer.

Requirements

Requirement Value
Target Platform Windows
Header wmdxva.h

See also

Enabling DirectX Video Acceleration

Interfaces

Reader Object