Condividi tramite


IDirectDrawMediaStream interface (ddstream.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.]

Note  This interface is deprecated. New applications should not use it.
 
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.

Inheritance

The IDirectDrawMediaStream interface inherits from IMediaStream. IDirectDrawMediaStream also has these types of members:

Methods

The IDirectDrawMediaStream interface has these methods.

 
IDirectDrawMediaStream::CreateSample

Note  This interface is deprecated. New applications should not use it. Creates a stream sample using the specified DirectDraw surface object.
IDirectDrawMediaStream::GetDirectDraw

Note  This interface is deprecated. New applications should not use it. Retrieves a pointer to the DirectDraw object used by the current media stream.
IDirectDrawMediaStream::GetFormat

Note  This interface is deprecated. New applications should not use it. Retrieves the current media stream's format and, optionally, its desired format.
IDirectDrawMediaStream::GetTimePerFrame

Note  This interface is deprecated. New applications should not use it. Retrieves the average frames per second from a video stream.
IDirectDrawMediaStream::SetDirectDraw

Note  This interface is deprecated. New applications should not use it. Sets the current media stream's DirectDraw object.
IDirectDrawMediaStream::SetFormat

Note  This interface is deprecated. New applications should not use it. Sets the format of the current media stream.

Requirements

Requirement Value
Target Platform Windows
Header ddstream.h

See also

IMediaStream