次の方法で共有


IVMRImagePresenter9 interface (vmr9.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IVMRImagePresenter9 interface is implemented by the default allocator-presenter for the Video Mixing Renderer Filter 9 (VMR-9). It must also be implemented by any plug-in allocator-presenter that an application provides for the VMR-9. The VMR-9 uses this interface to inform the allocator-presenter that it should present the video frame contained in the supplied Direct3D surface. Applications do not use this interface.

Inheritance

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

Methods

The IVMRImagePresenter9 interface has these methods.

 
IVMRImagePresenter9::PresentImage

The PresentImage method is called at precisely the moment this video frame should be presented.
IVMRImagePresenter9::StartPresenting

The StartPresenting method is called just before the video starts playing. The allocator-presenter should perform any necessary configuration in this method.
IVMRImagePresenter9::StopPresenting

The StopPresenting method is called just after the video stops playing. The allocator-presenter should perform any necessary cleanup in this method.

Remarks

Include DShow.h and D3d9.h before Vmr9.h.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 R2 [desktop apps only]
Target Platform Windows
Header vmr9.h

See also

Using the Video Mixing Renderer