DC1394 Class Reference
[Videosource: Video acquisition abstraction]

#include <dc1394vs.h>

Inheritance diagram for DC1394:

Inheritance graph
[legend]
Collaboration diagram for DC1394:

Collaboration graph
[legend]

List of all members.

Classes

struct  Params

Public Member Functions

virtual bool initialize ()
 initialized the video source.
virtual bool getFrame (IplImage *dst)
 get the next frame and convert it to the format described in "dst".
virtual void getSize (int &width, int &height)
 return width and height of images coming from the video source.
 DC1394 (Params &p)
virtual ~DC1394 ()
virtual void start ()
 Start the video source: getFrame() will provide each time a different image.
virtual void stop ()
 Pause the source.
virtual bool isPlaying ()
 return false if the source is paused.
virtual int getChannels ()
 Get the number of channels the video source provides.
virtual const char * getStreamName () const
 Returns a string describing the stream.
virtual const char * getStreamType () const
 Returns a string describing the type of the stream.
virtual void * getInternalPointer ()


Detailed Description

Linux dc1394 video source

Definition at line 12 of file dc1394vs.h.


Constructor & Destructor Documentation

DC1394::DC1394 ( Params p  ) 

Definition at line 36 of file dc1394vs.cpp.

DC1394::~DC1394 (  )  [virtual]

Definition at line 44 of file dc1394vs.cpp.

References stop().


Member Function Documentation

int DC1394::getChannels (  )  [virtual]

Get the number of channels the video source provides.

Returns:
1 for gray level images, 3 for RGB images.

Reimplemented from VideoSource.

Definition at line 57 of file dc1394vs.cpp.

bool DC1394::getFrame ( IplImage *  dst  )  [virtual]

get the next frame and convert it to the format described in "dst".

The image will be deinterlaced, scaled, and color converted to match dst.

Parameters:
dst the image to copy the frame into.
Returns:
true on success, false on error.

Implements VideoSource.

Definition at line 300 of file dc1394vs.cpp.

virtual void* DC1394::getInternalPointer (  )  [inline, virtual]

Reimplemented from VideoSource.

Definition at line 35 of file dc1394vs.h.

void DC1394::getSize ( int &  width,
int &  height 
) [virtual]

return width and height of images coming from the video source.

Implements VideoSource.

Definition at line 343 of file dc1394vs.cpp.

virtual const char* DC1394::getStreamName (  )  const [inline, virtual]

Returns a string describing the stream.

If the source comes from a file, the filename is returned.

Implements VideoSource.

Definition at line 33 of file dc1394vs.h.

virtual const char* DC1394::getStreamType (  )  const [inline, virtual]

Returns a string describing the type of the stream.

For example: BmpFile, AviFile, DShowCB...

Implements VideoSource.

Definition at line 34 of file dc1394vs.h.

bool DC1394::initialize (  )  [virtual]

initialized the video source.

Has to be called before any other method.

Returns:
true on success, false on error.

Implements VideoSource.

Definition at line 245 of file dc1394vs.cpp.

References CHECK_ERROR, cleanup_and_exit(), and start().

Referenced by DC1394Factory::construct().

virtual bool DC1394::isPlaying (  )  [inline, virtual]

return false if the source is paused.

Implements VideoSource.

Definition at line 31 of file dc1394vs.h.

void DC1394::start (  )  [virtual]

Start the video source: getFrame() will provide each time a different image.

After calling initialize(), the video source is playing.

Implements VideoSource.

Definition at line 349 of file dc1394vs.cpp.

Referenced by initialize().

void DC1394::stop (  )  [virtual]

Pause the source.

The getFrame() method will always provide the current frame.

Implements VideoSource.

Definition at line 362 of file dc1394vs.cpp.

Referenced by ~DC1394().


The documentation for this class was generated from the following files:

Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9