44 #ifndef vpDirectShowGrabber_hh
45 #define vpDirectShowGrabber_hh
47 #include <visp/vpConfig.h>
48 #if ( defined(VISP_HAVE_DIRECTSHOW) )
50 #include <visp/vpImage.h>
51 #include <visp/vpRGBa.h>
52 #include <visp/vpFrameGrabber.h>
54 class vpDirectShowGrabberImpl;
69 vpDirectShowGrabberImpl * grabber;
90 unsigned int getDeviceNumber();
93 bool setDevice(
unsigned int id);
96 void displayDevices();
99 bool setImageSize(
unsigned int width,
unsigned int height);
102 bool setFramerate(
double framerate);
106 bool setFormat(
unsigned int width,
unsigned int height,
double framerate);
109 void getFormat(
unsigned int &width,
unsigned int &height,
double &framerate);
112 bool getStreamCapabilities();
115 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.