Public Member Functions | |
XCgrabberFlex (OptionManager &mgr, const std::string &descrName="XC Frame Grabber Driver", const std::string &tagName="XCFrameGrabber", const ParamFlag flags=USE_MY_VAL) | |
Constructor. | |
virtual | ~XCgrabberFlex () |
Destructor. | |
virtual GenericFrameSpec | peekFrameSpec () |
Return the specifications of the next frame to be returned. | |
virtual SimTime | getNaturalFrameTime () const |
Get the inter-frame time that matches our video mode. | |
void | WhiteBalance () |
White balance. | |
virtual GenericFrame | readFrame () |
Get the next frame from the frame-grabber. | |
xclib::pxbuffer_t | getCurrBufID () |
Protected Member Functions | |
VideoFrame | grabRaw () |
Grab raw data (the raw bayer format data). | |
virtual void | start1 () |
get started | |
virtual void | stop2 () |
get stopped |
Definition at line 68 of file XCgrabberFlex.H.
XCgrabberFlex::XCgrabberFlex | ( | OptionManager & | mgr, | |
const std::string & | descrName = "XC Frame Grabber Driver" , |
|||
const std::string & | tagName = "XCFrameGrabber" , |
|||
const ParamFlag | flags = USE_MY_VAL | |||
) |
Constructor.
Definition at line 62 of file XCgrabberFlex.C.
XCgrabberFlex::~XCgrabberFlex | ( | ) | [virtual] |
Destructor.
Definition at line 271 of file XCgrabberFlex.C.
SimTime XCgrabberFlex::getNaturalFrameTime | ( | ) | const [virtual] |
Get the inter-frame time that matches our video mode.
Reimplemented from FrameIstream.
Definition at line 344 of file XCgrabberFlex.C.
References OModelParam< T >::getVal(), and SimTime::HERTZ().
VideoFrame XCgrabberFlex::grabRaw | ( | ) | [protected] |
Grab raw data (the raw bayer format data).
Don't call this directly; use readFrame() instead.
define the image from frame buffer
Definition at line 358 of file XCgrabberFlex.C.
References ASSERT, OModelParam< T >::getVal(), Dims::h(), Dims::sz(), and Dims::w().
Referenced by readFrame().
GenericFrameSpec XCgrabberFlex::peekFrameSpec | ( | ) | [virtual] |
Return the specifications of the next frame to be returned.
Implements FrameIstream.
Definition at line 330 of file XCgrabberFlex.C.
References OModelParam< T >::getVal().
GenericFrame XCgrabberFlex::readFrame | ( | ) | [virtual] |
Get the next frame from the frame-grabber.
Returns grabbed frame. This call will block until a frame is ready and has been grabbed.
Beware that the integrity of the GenericFrame object may not last "very long"; basically, try to be finished using the GenericFrame object before you attempt to grab the next frame in the stream. If you need it for longer than that, then you should use GenericFrame::deepCopyOf() to make a copy of the frame that can be safely held indefinitely.
Implements FrameIstream.
Definition at line 352 of file XCgrabberFlex.C.
References grabRaw().
void XCgrabberFlex::start1 | ( | ) | [protected, virtual] |
get started
show some info of pxvidstate structure
Reimplemented from ModelComponent.
Definition at line 95 of file XCgrabberFlex.C.
References rutz::format(), OModelParam< T >::getVal(), Dims::sz(), and WhiteBalance().
void XCgrabberFlex::stop2 | ( | ) | [protected, virtual] |
void XCgrabberFlex::WhiteBalance | ( | ) |