Microsoft DirectX 8.1 (C++)

IVMRSurfaceAllocator Interface

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The IVMRSurfaceAllocator interface is implemented by the default allocator-presenter, and it must also be implemented by any plug-in allocator-presenter object that is provided by an application. The VMR uses the methods on this interface to allocate, prepare and free DirectDraw surfaces. Applications do not use this interface.

In addition to the methods inherited from IUnknown, the IVMRSurfaceAllocator interface exposes the following methods:

Method Description
AdviseNotify Called by the VMR to provide the allocator-presenter with an interface pointer for notification callbacks.
AllocateSurface Allocates a DirectDraw surface.
FreeSurface Frees the allocated DirectDraw surface.
PrepareSurface Prepares the DirectDraw surface to have the next video frame decoded into it.