Microsoft DirectX 9.0

Grabber Filter Sample

This sample provides modified source code for the Sample Grabber filter. To prevent conflicts with the existing Sample Grabber, the following changes have been made:

Path

Source: (SDK root)\Samples\C++\DirectShow\Filters\Grabber

Sample Description

The Grabber is a trans-in-place filter that captures data traveling through a stream and notifies the application through a callback. It performs an in-place transform, so it does not require additional buffers or copying. However, if your callback function takes a long time to process, this benefit will be greatly reduced.

Limitations of the Original Sample Grabber Filter

The Sample Grabber that ships with DirectX has some limitations:

The Grabber filter source code provides an opportunity for developers to make improvements and modifications suited for their own needs.

Recommendations for Use

When you are using the Grabber sample filter, follow these guidelines:

For more information, see How To Get Data from a Microsoft DirectShow Filter Graph at the MSDN Web site.

See Also