40 #ifndef vpDirectShowGrabber_hh
41 #define vpDirectShowGrabber_hh
43 #include <visp3/core/vpConfig.h>
44 #if ( defined(VISP_HAVE_DIRECTSHOW) )
46 #include <visp3/core/vpImage.h>
47 #include <visp3/core/vpRGBa.h>
48 #include <visp3/core/vpFrameGrabber.h>
50 class vpDirectShowGrabberImpl;
65 vpDirectShowGrabberImpl * grabber;
86 unsigned int getDeviceNumber();
89 bool setDevice(
unsigned int id);
92 void displayDevices();
95 bool setImageSize(
unsigned int width,
unsigned int height);
98 bool setFramerate(
double framerate);
102 bool setFormat(
unsigned int width,
unsigned int height,
double framerate);
105 void getFormat(
unsigned int &width,
unsigned int &height,
double &framerate);
108 bool getStreamCapabilities();
111 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.