Microsoft DirectX 9.0

IAMMediaTypeSample Interface

This interface contains methods for manipulating stream samples with arbitrary media types. Call the IAMMediaTypeStream::CreateSample method to create a sample that exposes this interface.

This interface inherits from the IStreamSample interface.

The methods in this interface parallel those of the IMediaSample interface, although IAMMediaTypeSample contains a SetPointer method in addition to the GetPointer method.

In addition to the methods inherited from IStreamSample, the IAMMediaTypeSample interface exposes the following methods.

Method Description
GetActualDataLength Retrieves the data length of the sample, in bytes.
GetMediaTime Retrieves the media time stamps for this sample.
GetMediaType Retrieves the media type of the sample.
GetPointer Retrieves a read/write pointer to the buffer's memory.
GetSize Retrieves the size of the buffer data area, in bytes.
GetTime Retrieves the stream times at which this sample should start and stop.
IsDiscontinuity Determines if this sample represents a discontinuity in the data stream.
IsPreroll Determines if this sample is part of the preroll.
IsSyncPoint Determines if the beginning of a sample is a synchronization point.
SetActualDataLength Sets the sample's data length.
SetDiscontinuity Sets the discontinuity property.
SetMediaTime Sets the media time stamps for this sample.
SetMediaType Sets the media type for the sample.
SetPointer Sets the pointer to the media sample's memory buffer.
SetPreroll Specifies whether this is a preroll sample.
SetSyncPoint Specifies whether the beginning of this sample is a synchronization point.
SetTime Sets the stream times at which this sample should start and stop.