This topic has not yet been rated - Rate this topic

IMediaSample2 interface

Applies to: desktop apps only

The IMediaSample2 interface sets and retrieves properties on media samples.

This interface inherits the IMediaSample interface. Whereas the IMediaSample interface requires separate method calls for each sample property, the IMediaSample2 interface has methods for setting and retrieving multiple properties at once.

Media samples are not guaranteed to support IMediaSample2. However, if an allocator creates samples that support IMediaSample2, all of the samples that it creates must support the interface. For any given media sample, the IMediaSample2::GetProperties method returns the same values as the individual IMediaSample methods. Therefore, you can use whichever version you prefer.

Members

The IMediaSample2 interface inherits from IMediaSample. IMediaSample2 also has these types of members:

Methods

The IMediaSample2 interface has these methods.

MethodDescription
GetProperties

Retrieves the properties of a media sample.

SetProperties

Sets the properties of a media sample.

 

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ