次の方法で共有


IVMRSurface9 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 IVMRSurface9 interface is implemented on the media samples used by the Video Mixing Renderer Filter 9. Filters can use this interface to access the underlying Direct3D 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 Direct3D surface interface returned from the GetSurface method. Applications do not use this interface.

Inheritance

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

Methods

The IVMRSurface9 interface has these methods.

 
IVMRSurface9::GetSurface

The GetSurface method retrieves the attached Direct3D surface.
IVMRSurface9::IsSurfaceLocked

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

The LockSurface method locks the attached Direct3D surface.
IVMRSurface9::UnlockSurface

The UnlockSurface method unlocks the attached Direct3D surface.

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