40 #ifndef vpDirectShowGrabber_hh 41 #define vpDirectShowGrabber_hh 43 #include <visp3/core/vpConfig.h> 44 #if (defined(VISP_HAVE_DIRECTSHOW)) 46 #include <visp3/core/vpFrameGrabber.h> 47 #include <visp3/core/vpImage.h> 48 #include <visp3/core/vpRGBa.h> 50 class vpDirectShowGrabberImpl;
65 vpDirectShowGrabberImpl *grabber;
84 unsigned int getDeviceNumber();
87 bool setDevice(
unsigned int id);
90 void displayDevices();
93 bool setImageSize(
unsigned int width,
unsigned int height);
96 bool setFramerate(
double framerate);
99 bool setFormat(
unsigned int width,
unsigned int height,
double framerate);
102 void getFormat(
unsigned int &width,
unsigned int &height,
double &framerate);
105 bool getStreamCapabilities();
108 bool setMediaType(
int mediaTypeID);
class for windows direct show devices
virtual void open(vpImage< unsigned char > &I)=0
unsigned int getWidth() const
Return the number of columns in the image.
Base class for all video devices. It is designed to provide a front end to video sources.
virtual void acquire(vpImage< unsigned char > &I)=0
unsigned int getHeight() const
Return the number of rows in the image.