次の方法で共有


IAMParse interface (amparse.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.]

The IAMParse interface sets and retrieves the parse time for an MPEG-2 stream. The parse time is a notional time associated with the current position in the stream of bytes supplied to the parser filter. This time is also tied to the origin of the time stamps in that time stamp zero corresponds to parse time zero.

The MPEG-2 Splitter filter implements this interface. Use this interface to retrieve or set the current stream parse time or to clear the data buffer of its current data.

Inheritance

The IAMParse interface inherits from the IUnknown interface. IAMParse also has these types of members:

Methods

The IAMParse interface has these methods.

 
IAMParse::Flush

The Flush method clears the current file data to allow for a more rapid switch to a new file.
IAMParse::GetParseTime

The GetParseTime method retrieves the current stream parse time. For MPEG-2, this corresponds to the system clock time computed for the current stream position.
IAMParse::SetParseTime

The SetParseTime method sets the current stream parse time. For MPEG-2, this corresponds to the system clock time computed for the current stream position.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header amparse.h