11 #ifndef CARMA_ANTENNA_COMMON_FRAMEGRABBER_H
12 #define CARMA_ANTENNA_COMMON_FRAMEGRABBER_H
14 #include "carma/antenna/common/Image.h"
15 #include "carma/util/PthreadMutex.h"
90 ::std::pair<short, short> getResolution( )
const;
92 static ::std::pair<short, short> getResolution(
ResolutionType res);
98 Image
grabFrame(
int numFrames = 1, std::vector<float>* data=0 );
118 void initializeCaptureBuffer();
119 void createCaptureBuffer();
120 void unmapCaptureBuffer();
122 class FrameGrabberPimpl;
123 ::std::auto_ptr<FrameGrabberPimpl> pimpl_;
125 ::std::pair<short, short> resolution_;
135 std::vector<void*> captureBuffers_;
150 #endif // CARMA_FRAMEGRABBER_H
void setBrightness(short b)
Set brightness.
Encapsulate hardware access to framegrabber device.
void setTestImage(const Image &image)
Set test image when emulating.
void setPixelDepth(short depth)
Set pixel depth.
~FrameGrabber()
Destructor.
void setContrast(short c)
Set contrast.
Simple ASCII Table format, fully memory based.
FrameGrabber(const std::string &fgdev, int fginput, bool emulate, carma::services::Table *table=0)
Constructor.
void setResolution(ResolutionType resolution)
Set resolution.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...
ResolutionType
Supported resolution types.
Image grabFrame(int numFrames=1, std::vector< float > *data=0)
Grab a frame.
Number of supported resolutions.