다음을 통해 공유


IWMPlayerHook interface (wmsdkidl.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.]

The IWMPlayerHook interface can be implemented by a player application that uses DirectX Video Acceleration (DirectX VA). This interface enables application-specific processing to be performed when samples from a video stream are passed to the DirectX VA enabled video card for decompression.

Inheritance

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

Methods

The IWMPlayerHook interface has these methods.

 
IWMPlayerHook::PreDecode

The PreDecode method is called by the reader object before a sample from the output to which the IWMPlayerHook interface is assigned is passed to the video processor for decoding.

Remarks

To assign an implementation of the IWMPlayerHook interface to an output in the reader object, call IWMReaderAdvanced5::SetPlayerHook.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

Enabling DirectX Video Acceleration

Interfaces