Поделиться через


IAMMediaTypeStream 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.]

Note  This interface is deprecated. New applications should not use it.
 
This interface contains methods for creating multimedia streams with arbitrary media types. Use this interface if you need to create a multimedia stream with a format that is not supported by the other Microsoft DirectShow multimedia streaming interfaces.
Note  For video streams, use the IDirectDrawMediaStream interface instead of this interface. For audio streams, use the IAudioMediaStream interface.
 

Inheritance

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

Methods

The IAMMediaTypeStream interface has these methods.

 
IAMMediaTypeStream::CreateSample

Note  This interface is deprecated. New applications should not use it. The CreateSample method creates a stream sample and optionally specifies the sample buffer.
IAMMediaTypeStream::GetFormat

Note  This interface is deprecated. New applications should not use it. The GetFormat method retrieves the format of the stream.
IAMMediaTypeStream::GetStreamAllocatorRequirements

Note  This interface is deprecated. New applications should not use it. The GetStreamAllocatorRequirements retrieves the allocator requirements for the stream. This method is not currently implemented.
IAMMediaTypeStream::SetFormat

Note  This interface is deprecated. New applications should not use it. The SetFormat method sets the format of the stream.
IAMMediaTypeStream::SetStreamAllocatorRequirements

Note  This interface is deprecated. New applications should not use it. The SetStreamAllocatorRequirements sets the allocator requirements for the stream. This method is not currently implemented.

Requirements

Requirement Value
Target Platform Windows
Header amstream.h

See also

IMediaStream