IMediaSample2Config 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 IMediaSample2Config interface returns a pointer to a Direct3D surface representing a VRAM capture buffer.

Inheritance

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

Methods

The IMediaSample2Config interface has these methods.

 
IMediaSample2Config::GetSurface

The GetSurface method returns a pointer to the Direct3D surface managed by this media sample.

Remarks

If a display driver supports VRAM capture, the KsProxy filter allocates samples that expose this interface. Downstream filters can use this interface to access the video data in video memory, without requiring the data to be copied into system memory. The display driver must support the Windows Vista Display Driver Model (WDDM).

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Using WDDM Capture in DirectShow