Microsoft DirectX 9.0

IDirectDrawMediaSample Interface

The IDirectDrawMediaSample interface is supported by media samples that use Microsoft® DirectDraw® surfaces. 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

In addition to the methods inherited from IUnknown, the IDirectDrawMediaSample interface exposes the following methods.

Method Description
GetSurfaceAndReleaseLock Retrieves and unlocks the surface that the sample represents.
LockMediaSamplePointer Locks the surface that the sample represents.