42 #ifndef vpDirectShowSampleGrabberI_hh
43 #define vpDirectShowSampleGrabberI_hh
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 #include <visp/vpConfig.h>
48 #if ( defined(VISP_HAVE_DIRECTSHOW) )
54 #include <visp/vpImage.h>
55 #include <visp/vpRGBa.h>
61 class VISP_EXPORT vpDirectShowSampleGrabberI :
public ISampleGrabberCB
63 vpDirectShowSampleGrabberI();
64 virtual ~vpDirectShowSampleGrabberI();
67 STDMETHODIMP_(ULONG) AddRef() {
return 1; }
68 STDMETHODIMP_(ULONG) Release() {
return 2; }
70 STDMETHODIMP QueryInterface(REFIID riid,
void **ppvObject);
73 STDMETHODIMP SampleCB(
double Time, IMediaSample *pSample)
79 STDMETHODIMP BufferCB(
double Time, BYTE *pBuffer,
long BufferLen);
83 AM_MEDIA_TYPE connectedMediaType;
86 bool specialMediaType;
101 friend class vpDirectShowGrabberImpl;