IVMRSurface interface (strmif.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 IVMRSurface interface is implemented on the media samples used by the Video Mixing Renderer Filter 7 (VMR-7). Filters can use this interface to access the underlying DirectDraw surface on which the media sample is based. Filters must always lock and unlock the surface using the methods available on this interface. Filters must never call lock or unlock directly on the DirectDraw surface interface returned from the GetSurface method. Applications do not use this interface.

Inheritance

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

Methods

The IVMRSurface interface has these methods.

 
IVMRSurface::GetSurface

The GetSurface method retrieves the attached DirectDraw surface interface.
IVMRSurface::IsSurfaceLocked

The IsSurfaceLocked method indicates whether the DirectDraw surface attached to this media sample is locked.
IVMRSurface::LockSurface

The LockSurface method locks the attached DirectDraw surface.
IVMRSurface::UnlockSurface

The UnlockSurface method unlocks the attached DirectDraw surface.

Requirements

Requirement Value
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Using the Video Mixing Renderer