Share via


IDirectDrawMediaSample interface (amstream.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 IDirectDrawMediaSample interface provides access to DirectDraw surfaces allocated by the Overlay Mixer filter.

The allocator for the Overlay Mixer filter creates samples that expose this interface. These samples are used for connections between the Overlay Mixer and upstream decoder filters. Decoder filters can use this interface to unlock the DirectDraw surface while still holding it, so that other components can access the surface.

Samples that support this interface also support the IMediaSample interface.

The Overlay Mixer's allocator exposes the IDirectDrawMediaSampleAllocator.

Inheritance

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

Methods

The IDirectDrawMediaSample interface has these methods.

 
IDirectDrawMediaSample::GetSurfaceAndReleaseLock

The GetSurfaceAndReleaseLock method retrieves and unlocks the surface that the sample represents.
IDirectDrawMediaSample::LockMediaSamplePointer

The LockMediaSamplePointer method locks the surface that the sample represents.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header amstream.h