Microsoft DirectX 8.1 (C++)

GrabberSample 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\Multimedia\DirectShow\Filters\Grabber

Sample Description

The Sample Grabber Example is a transform 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.

This filter has the following limitations:

Ideas for Enhancing the Filter

The following is a list of ideas for enhancing this filter:

Limitations of the Original Sample Grabber Filter

The Sample Grabber that ships with DirectX has some limitations:

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

Recommendations for Use

When you are using either the original Sample Grabber filter, or the new GrabberSample sample, follow these guidelines: