44 #include <visp/vpConfig.h>
45 #if ( defined(VISP_HAVE_DIRECTSHOW) )
47 #include <visp/vpDirectShowGrabber.h>
48 #include <visp/vpDirectShowGrabberImpl.h>
67 grabber =
new vpDirectShowGrabberImpl();
143 return grabber->getDeviceNumber();
154 return grabber->setDevice(
id);
162 grabber->displayDevices();
173 return grabber->setImageSize(width, height);
183 return grabber->setFramerate(framerate);
195 return grabber->setFormat(width, height, framerate);
205 grabber->getFormat(width, height, framerate);
215 return grabber->getStreamCapabilities();
226 return grabber->setMediaType(mediaTypeID);
236 return grabber->getMediaType();
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()