Public Member Functions | |
RTSPGrabber (OptionManager &mgr, const std::string &descrName="RTSP Frame Grabber Driver", const std::string &tagName="RTSPFrameGrabber", const ParamFlag flags=USE_MY_VAL, unsigned int bufferSize=200000) | |
Constructor. | |
virtual | ~RTSPGrabber () |
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. | |
virtual GenericFrame | readFrame () |
Get the next frame from the frame-grabber. | |
virtual void | setConfigInfo (const std::string &url) |
Override from FrameIstream; just set the url. | |
unsigned int | getFrameBufferSize () |
get the size of the buffer | |
void | run () |
the capture thread | |
Public Attributes | |
char | blockingFlag |
do not use!! used to implement synchronus reads | |
unsigned int | itsFrameSize |
set the frame size | |
Protected Member Functions | |
VideoFrame | grabRaw () |
Grab raw data (the raw bayer format data). | |
virtual void | start1 () |
get started | |
virtual void | stop2 () |
get stopped | |
void | createDecoder () |
Create a decoder. |
Definition at line 78 of file RTSPGrabber.H.
RTSPGrabber::RTSPGrabber | ( | OptionManager & | mgr, | |
const std::string & | descrName = "RTSP Frame Grabber Driver" , |
|||
const std::string & | tagName = "RTSPFrameGrabber" , |
|||
const ParamFlag | flags = USE_MY_VAL , |
|||
unsigned int | bufferSize = 200000 | |||
) |
Constructor.
Definition at line 97 of file RTSPGrabber.C.
References OModelParam< T >::getVal(), and NO_INIT.
RTSPGrabber::~RTSPGrabber | ( | ) | [virtual] |
Destructor.
Definition at line 366 of file RTSPGrabber.C.
void RTSPGrabber::createDecoder | ( | ) | [protected] |
Create a decoder.
Definition at line 433 of file RTSPGrabber.C.
unsigned int RTSPGrabber::getFrameBufferSize | ( | ) | [inline] |
get the size of the buffer
Definition at line 106 of file RTSPGrabber.H.
SimTime RTSPGrabber::getNaturalFrameTime | ( | ) | const [virtual] |
Get the inter-frame time that matches our video mode.
Reimplemented from FrameIstream.
Definition at line 392 of file RTSPGrabber.C.
References OModelParam< T >::getVal(), and SimTime::HERTZ().
VideoFrame RTSPGrabber::grabRaw | ( | ) | [protected] |
Grab raw data (the raw bayer format data).
Don't call this directly; use readFrame() instead.
Definition at line 406 of file RTSPGrabber.C.
Referenced by readFrame().
GenericFrameSpec RTSPGrabber::peekFrameSpec | ( | ) | [virtual] |
Return the specifications of the next frame to be returned.
Implements FrameIstream.
Definition at line 378 of file RTSPGrabber.C.
References OModelParam< T >::getVal().
GenericFrame RTSPGrabber::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.
Implements FrameIstream.
Definition at line 400 of file RTSPGrabber.C.
References grabRaw().
void RTSPGrabber::run | ( | ) |
the capture thread
Definition at line 269 of file RTSPGrabber.C.
References blockingFlag, convertAVFrameToVideoFrame(), OModelParam< T >::getVal(), and itsFrameSize.
void RTSPGrabber::setConfigInfo | ( | const std::string & | url | ) | [virtual] |
Override from FrameIstream; just set the url.
Reimplemented from FrameIstream.
Definition at line 320 of file RTSPGrabber.C.
void RTSPGrabber::start1 | ( | ) | [protected, virtual] |
void RTSPGrabber::stop2 | ( | ) | [protected, virtual] |
do not use!! used to implement synchronus reads
Definition at line 109 of file RTSPGrabber.H.
Referenced by run().
unsigned int RTSPGrabber::itsFrameSize |