|Microsoft DirectX 9.0|
The SampGrabCB displays information about media samples as they move through the filter graph.
Source: (SDK root)\Samples\C++\DirectShow\Editing\SampGrabCB
This console application uses the IMediaDet interface to create a filter graph that contains the Sample Grabber filter. The application uses a callback function to retrieve samples from the video file.
From the command line, type:
Grabbing samples from c:\Example.avi.Sample received = 00000 Clock = 158153069 Length=129600Sample received = 00001 Clock = 158153076 Length=129600Sample received = 00002 Clock = 158153076 Length=129600Sample received = 00003 Clock = 158153076 Length=129600Sample received = 00004 Clock = 158153077 Length=129600