36 #include <Image/Camera.hh>
37 #include <VideoSource/DShowVideo.hh>
38 #include <VideoSource/SampleGrabberCallback.hh>
46 STDMETHODIMP SampleCB(
double SampleTime, IMediaSample *pSample)
48 cout <<
"SampleCB called\n";
49 cout <<
"SampleTime: " << SampleTime << endl;
50 cout <<
"pointer to sample: " << pSample << endl;
59 TestSampleGrabberCallback sgcb;
62 if (!vid.Open(
"C:/Dokumente und Einstellungen/buildmaster/Desktop/test.avi"))
64 cout <<
"Error opening the file!" << endl;
69 vid.GetImageSize(w, h, c);
70 cout <<
"width, height, channel count: " << w <<
", " << h <<
", " << c << endl;
72 for (
int i = 0; i < 10; i++)
73 vid.PlaySingleFrame();
Die Klasse ReadAvi ist zentraler Bestandteil der Infrastruktur zum Dekodieren von AVI-Videocontainern...
sample grabber callback class for grabbing single frames only