39 #ifndef vpDirectShowSampleGrabberI_hh
40 #define vpDirectShowSampleGrabberI_hh
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 #include <visp3/core/vpConfig.h>
45 #if (defined(VISP_HAVE_DIRECTSHOW))
51 #include <visp3/core/vpImage.h>
52 #include <visp3/core/vpRGBa.h>
59 class VISP_EXPORT vpDirectShowSampleGrabberI :
public ISampleGrabberCB
61 vpDirectShowSampleGrabberI();
62 virtual ~vpDirectShowSampleGrabberI();
65 STDMETHODIMP_(ULONG) AddRef() {
return 1; }
66 STDMETHODIMP_(ULONG) Release() {
return 2; }
68 STDMETHODIMP QueryInterface(REFIID riid,
void **ppvObject);
71 STDMETHODIMP SampleCB(
double Time, IMediaSample *pSample) {
return E_NOTIMPL; }
74 STDMETHODIMP BufferCB(
double Time, BYTE *pBuffer,
long BufferLen);
78 AM_MEDIA_TYPE connectedMediaType;
81 bool specialMediaType;
98 friend class vpDirectShowGrabberImpl;