DC1394Grabber2 Class Reference

FireWire grabber class based on libdc1394 version 2.x. More...

#include <Devices/DC1394Grabber2.H>

Inheritance diagram for DC1394Grabber2:
Inheritance graph
[legend]
Collaboration diagram for DC1394Grabber2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DC1394Grabber2 (OptionManager &mgr, const std::string &descrName="DC1394 Frame Grabber Driver v2", const std::string &tagName="DC1394Grabber2")
 Constructor.
virtual ~DC1394Grabber2 ()
 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.

Protected Member Functions

VideoFrame grabRaw ()
 Grab raw data.
virtual void start1 ()
 get started
virtual void stop2 ()
 get stopped

Detailed Description

FireWire grabber class based on libdc1394 version 2.x.

Definition at line 59 of file DC1394Grabber2.H.


Constructor & Destructor Documentation

DC1394Grabber2::DC1394Grabber2 ( OptionManager mgr,
const std::string descrName = "DC1394 Frame Grabber Driver v2",
const std::string tagName = "DC1394Grabber2" 
)

Constructor.

Definition at line 240 of file DC1394Grabber2.C.

DC1394Grabber2::~DC1394Grabber2 (  )  [virtual]

Destructor.

Definition at line 435 of file DC1394Grabber2.C.


Member Function Documentation

SimTime DC1394Grabber2::getNaturalFrameTime (  )  const [virtual]

Get the inter-frame time that matches our video mode.

Reimplemented from FrameIstream.

Definition at line 453 of file DC1394Grabber2.C.

References OModelParam< T >::getVal(), and SimTime::HERTZ().

VideoFrame DC1394Grabber2::grabRaw (  )  [protected]

Grab raw data.

Don't call this directly; use readFrame() instead.

Definition at line 465 of file DC1394Grabber2.C.

References OModelParam< T >::getVal().

Referenced by readFrame().

GenericFrameSpec DC1394Grabber2::peekFrameSpec (  )  [virtual]

Return the specifications of the next frame to be returned.

Implements FrameIstream.

Definition at line 439 of file DC1394Grabber2.C.

References OModelParam< T >::getVal().

GenericFrame DC1394Grabber2::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 459 of file DC1394Grabber2.C.

References grabRaw().

void DC1394Grabber2::start1 (  )  [protected, virtual]

get started

Reimplemented from ModelComponent.

Definition at line 275 of file DC1394Grabber2.C.

References ASSERT, OModelParam< T >::getVal(), HUE, and sformat().

void DC1394Grabber2::stop2 (  )  [protected, virtual]

get stopped

Reimplemented from ModelComponent.

Definition at line 413 of file DC1394Grabber2.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:19 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3