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


ISampleGrabber Interface

 
Microsoft DirectShow 9.0

ISampleGrabber Interface

The ISampleGrabber interface is exposed by the Sample Grabber Filter. It enables an application to retrieve individual media samples as they move through the filter graph.

In addition to the methods inherited from IUnknown, the ISampleGrabber interface exposes the following methods.

Method Description
SetOneShot Specifies whether the filter should stop the graph after receiving one sample.
SetMediaType Specifies the media type for the connection on the input pin of the Sample Grabber.
GetConnectedMediaType Retrieves the media type for the connection on the input pin of Sample Grabber.
SetBufferSamples Specifies whether to copy sample data into a buffer as it goes through the filter.
GetCurrentBuffer Retrieves a copy of the sample that the filter received most recently.
GetCurrentSample Not currently implemented.
SetCallback Specifies a callback method to call on incoming samples.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also