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>
51 class vpDirectShowGrabberImpl;
66 vpDirectShowGrabberImpl *grabber;
85 unsigned int getDeviceNumber();
88 bool setDevice(
unsigned int id);
91 void displayDevices();
94 bool setImageSize(
unsigned int width,
unsigned int height);
97 bool setFramerate(
double framerate);
100 bool setFormat(
unsigned int width,
unsigned int height,
double framerate);
103 void getFormat(
unsigned int &width,
unsigned int &height,
double &framerate);
106 bool getStreamCapabilities();
109 bool setMediaType(
int mediaTypeID);
class for windows direct show devices
Base class for all video devices. It is designed to provide a front end to video sources.
virtual void open(vpImage< unsigned char > &I)=0
unsigned int getWidth() const
Return the number of columns in the image.
virtual void acquire(vpImage< unsigned char > &I)=0
unsigned int getHeight() const
Return the number of rows in the image.