IVMRSurfaceAllocatorNotify9 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 IVMRSurfaceAllocatorNotify9 interface is implemented by the Video Mixing Renderer Filter 9 (VMR-9). Applications use this interface to set a custom allocator-presenter and the allocator-presenter uses this interface to inform the VMR of changes to the system environment that affect the Direct3D surfaces.

Inheritance

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

Methods

The IVMRSurfaceAllocatorNotify9 interface has these methods.

 
IVMRSurfaceAllocatorNotify9::AdviseSurfaceAllocator

The AdviseSurfaceAllocator method is called by an application to instruct the VMR-9 to use a custom allocator-presenter.
IVMRSurfaceAllocatorNotify9::AllocateSurfaceHelper

The AllocateSurfaceHelper method allocates a Direct3D surface based on application-specified parameters.
IVMRSurfaceAllocatorNotify9::ChangeD3DDevice

The ChangeD3DDevice method notifies the VMR that the Direct3D device has changed.
IVMRSurfaceAllocatorNotify9::NotifyEvent

The NotifyEvent method is called by the allocator-presenter to inform the VMR of any significant DirectShow events that it (the allocator presenter) generates during the allocation or presentation processes.
IVMRSurfaceAllocatorNotify9::SetD3DDevice

The SetD3DDevice method sets the Direct3D device.

Remarks

The VMR-9 supports this interface in renderless mode only. Otherwise, QueryInterface returns E_NOINTERFACE. For more information, see VMR Modes of Operation.

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

Video Mixing Renderer Filter 9