Microsoft DirectX 8.1 (C++)

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.

Requirements

Requires Qedit.h.

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 Sample Grabber's input pin.
GetConnectedMediaType Retrieves the media type for the connection on the Sample Grabber's input pin.
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.

See Also