40 #include <visp3/core/vpConfig.h>
41 #if ( defined(VISP_HAVE_DIRECTSHOW) )
43 #include <visp3/sensor/vpDirectShowGrabber.h>
44 #include <visp3/sensor/vpDirectShowGrabberImpl.h>
63 grabber =
new vpDirectShowGrabberImpl();
139 return grabber->getDeviceNumber();
150 return grabber->setDevice(
id);
158 grabber->displayDevices();
169 return grabber->setImageSize(width, height);
179 return grabber->setFramerate(framerate);
191 return grabber->setFormat(width, height, framerate);
201 grabber->getFormat(width, height, framerate);
211 return grabber->getStreamCapabilities();
222 return grabber->setMediaType(mediaTypeID);
232 return grabber->getMediaType();
235 #elif !defined(VISP_BUILD_SHARED_LIBS)
237 void dummy_vpDirectShowGrabber() {};
void getFormat(unsigned int &width, unsigned int &height, double &framerate)
bool setMediaType(int mediaTypeID)
bool setFramerate(double framerate)
bool setDevice(unsigned int id)
bool setFormat(unsigned int width, unsigned int height, double framerate)
void acquire(vpImage< unsigned char > &I)
virtual ~vpDirectShowGrabber()
bool setImageSize(unsigned int width, unsigned int height)
bool getStreamCapabilities()
unsigned int getDeviceNumber()