共用方式為


IAMWMBufferPass interface (dshowasf.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 IAMWMBufferPass interface is implemented on the output pins of the WM ASF Reader and the input pins of the WM ASF Writer. Applications use it to give the pin a pointer to the IAMWMBufferPassCallback interface on an application-defined object that gets and sets properties and data unit extensions on individual samples in a stream. One common use for this interface is to force key-frame insertion in a variable bit rate video stream during file writing. To do this, you must set the cleanpoint property on individual INSSBuffer3 samples.

Inheritance

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

Methods

The IAMWMBufferPass interface has these methods.

 
IAMWMBufferPass::SetNotify

The SetNotify method is used by applications to provide the WM ASF Writer or WM ASF Reader filter with a pointer to the application's IAMWMBufferPassCallback interface.

Requirements

Requirement Value
Minimum supported client Requires Dshowasf.h, Windows Media Format 9 Series SDK, or later.
Target Platform Windows
Header dshowasf.h

See also

DirectShow QASF Reference