Microsoft DirectX 9.0

IDirectDrawMediaStream Interface

The IDirectDrawMediaStream interface controls media streams that appear on Microsoft DirectDraw surfaces. To stream to a DirectDraw surface, DirectDraw must support the video stream format.

For sample code that implements the multimedia streaming interfaces, see Multimedia Streaming Sample Code.

This interface isn't intended for implementation by application developers. It is exposed on DirectDraw media streams that can be added to a DirectShow multimedia stream.

Use this interface when you want to send a video stream to a DirectDraw surface.

In addition to the methods inherited from IMediaStream, the IDirectDrawMediaStream interface exposes the following methods.

Method Description
CreateSample Creates a stream sample using the specified DirectDraw surface object.
GetDirectDraw Retrieves a pointer to the DirectDraw object used by the current media stream.
GetFormat Retrieves the current media stream's format and, optionally, its desired format.
GetTimePerFrame Retrieves the average frames per second from a video stream.
SetDirectDraw Sets the current media stream's DirectDraw object.
SetFormat Sets the current media stream's format. If the stream already has allocated samples and the sample format doesn't match the specified format, this method fails.