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> 58 class VISP_EXPORT vpDirectShowSampleGrabberI :
public ISampleGrabberCB
60 vpDirectShowSampleGrabberI();
61 virtual ~vpDirectShowSampleGrabberI();
64 STDMETHODIMP_(ULONG) AddRef() {
return 1; }
65 STDMETHODIMP_(ULONG) Release() {
return 2; }
67 STDMETHODIMP QueryInterface(REFIID riid,
void **ppvObject);
70 STDMETHODIMP SampleCB(
double Time, IMediaSample *pSample) {
return E_NOTIMPL; }
73 STDMETHODIMP BufferCB(
double Time, BYTE *pBuffer,
long BufferLen);
77 AM_MEDIA_TYPE connectedMediaType;
80 bool specialMediaType;
97 friend class vpDirectShowGrabberImpl;